New animation
-
off topic question
whats so special about that new utfeditor?
and where to get it?Yeah good question
-
The new UTF editor, v4, is God. It allows you to open multiple files, and you can click and drag nodes from one UTF file to another, no more having to add it manually. Change around a CMP? Now you donāt have to readd the hardpoints, you just drag it from the old to the new and voila! It still has a few bugs (such as the aformentioned inability to change names on the Rev and Pris nodes), which is why it hasnāt been released to the public. BJ sent me a copy, although Iām not sure if Iām supposed to send it to others. BJ?
MK
-
Know itās a bit late, but Wolfie? Any chance you want to help me break into M$ Headquarters and get the FL Source Code? I want the stuff in that trailer. XD
Anyway, Good work guysā¦ Iād never even thought about this function of FL. Now I come to think about it, it makes sense to have had it. Why they didnāt have folding stuff in cruise for the Original thing I donāt know. Any chance thisāll be released as a standalone thing? Iād play the campaign again if all the ships did that. -
Just an update / side note on this: If youāāā're making new Animation scripts, be sure to drag-copy over the related āHeaderā section from a similar vanilla animation. Using the simple data editor āfloat arrayā will corrupt the data in this section otherwise. Frames, Parent, and Child can still be edited as usual though.
Animated parts can also be āchainedā off each other; a rotating part can have another rotating part moving around it, or a sliding part. This opens up some fun prospects for looped animations -extend arm, ācollectorā dish swivels out of arm, then dish pieces rotate to fully form the dish. Conveyor belts, etc. Just have to offset the start times of each animation sequence properly
Alternatively, you can edit the Header data as an integer array (edit only the 1st value to change frame count -which is the pair of time and radians).
Note; Header consists of three 4 byte sections:
- a Long INT value for frame count
- animation type as IEEE single (float)
- a Long INT value of 1 (every one Iāve looked at is 1, and thatās it)
If you really feel like it, you can edit #2 as a float array, click update, then go back and edit #1 and #3 as int array back to their previous values.
-
this is very cool!! we are looking at this at freeworlds and thinking of implementing it for the s-foils on the star wars ships!!!
-
Only downer is so far thereās only been one ātriggerā available for ships; jettison cargo. And for stations, the docking animation. Both can still have constant animations attached via the methods listed in this thread (select_equip.ini), but it would be nice to be able to tie animations to other state changes like Cruise Charge, strafe right / left, etc. Just have yet to find a way to accomplish that
-
that would be cool, hopefully someone will be able to figure that out. i would love to see it linked to the cruise function or even the docking function.
-
Thing is though without a trigger, the ship would look a bit more like a bird trying to take flight, or would only spread the wings when dropping cargo.
Let us know if adding an Sc_open dock script works on a ship though if you do try that Zaxx Workin on a SUR for my lil habitat, otherwise Iād give it a run a couple different ways to try it.
Oh, forgot about the Sc_fire on the Liberty Cruiser. Thatās one more, though I canāt remember if it was triggered in its weapon entry or the ship. That part may be mentioned somewhere in this thread.
-
<winces>Oh dear, I forgot about the SUR file. Assuming youāre making a custom SUR (and if you arenāt, for shame ;D), well, having the wing SURs move with the model might be a wee bit more difficult. I didnāt do it for the bay doors on my ships because the doors are so small, but the wings make up a significant portion of the ship. That certainly changes things a bit.
I wonder if somebody could look into the DLLs, seeā¦. you know what, Iāll take a looksie myself.
MK
edit
Hmm, interesting. I find it odd that nobody put this together before, or looked in common.dll before now, but Iāve found a few interesting things that should be brought up. First of all, there is another type of animation, one that plays even in Vanilla. That would be the jump gate/docking ring opening up (actually, that might be the same as for docking bay doors opening, not sure). Common.dll contains three promising entries: anim, bay_door_anim, and open_anim. It might beā¦ try adding the anim to engine_equip.ini, set it equal to an animation in a CMPā¦ you know what, Iāll test this too.
edit2
Well, that did jack-diddly. Iām out of ideas :(</winces>
-
assuming that the animated component has the same name in both CMP & SUR, then the SUR component should follow the movement of the CMP component.
Creating the trigger to start the animation is the only stumbling block as I have no idea how to do that.
-
is there any way to make a dummy command, like for instance one that is linked to the cruise or the jumpgate and then dummies the cargo drop without actually dropping anything? the default for us would be wings open, then closed during jumps and cruise, if that idea has any merit.
-
well maybe if the hook is part of the mod client side it may be possible, but for freeworlds its mainly online players, so that wouldnt really matter as long as it was smooth animation and worked without crashes. but there could be another solution, it would have to be heavily coded but i was thinking earlier and thought what if.
say you link the animation to the cruise button or dock button like this: the button activates the code for the sequence in question (dock or cruise) and there is a line added that tells the game that the ship is releasing cargo. the cargo is a null cargo, the cargo never depeletes or takes up any space and is invisible to the player. the cargo is also linked to the cruise or the dock function so that unless the ship is clear of the cruise or the dock the wings wont return to their normal configuration. im not sure if that can all be done in code or it actually needs an object that tis invisible and coded in to be non depleteable and weightless.
im not an expert coder and im not even sure that will work, but its an idea.
-
Ideally this should have nothing to do with cargo drop, as thatās a relatively short ā¦ state change, a few seconds and 'tis done. Hopefully more something linked to ā¦ āin_cruiseā or āin_formationā etc, as a toggled thing so it could be of an indefinite length but still represented as a 1 / 0 or true / false which the game engine already checks regularly. That would let modders play with lots of fun stuff and ensure many more hours of developing on each model lol
Perhaps a parse of the CMP file on player loading, for Animation node elements, resulting in a short list of hex coded flags. If a nice standardized list of useful states can be formulated, then we can all name our scripts to adhere to that from the get-go.
Docking
Landing (baseside landing sequence)
In_Cruise
Engine_kill
In_TradeLane
Tractoring (loot)
In_Formation
Is_Cloaked (since this seems to be making a comeback, lets not re-open the topic tho eh? )
Hailing_ship (for all those instances some turd scans your cargo- their āsirensā could go off)bout all I can think of at the moment.
-
I havenāt read through all 6 pages yet, so I dunno if this was mentioned, but for fun you can use an InternalFX item to force the animation to play. Look at the āsmallstation_animate1ā item in select_equip.ini for an example. However, the problem is that itāll loop the animation, causing the wings on the Valkyrie to flap up and down instead of just lowering and locking, which looks rather amusing.
-
@Ruppetthemuppet:
Know itās a bit late, but Wolfie? Any chance you want to help me break into M$ Headquarters and get the FL Source Code? I want the stuff in that trailer. XD
Anyway, Good work guysā¦ Iād never even thought about this function of FL. Now I come to think about it, it makes sense to have had it. Why they didnāt have folding stuff in cruise for the Original thing I donāt know. Any chance thisāll be released as a standalone thing? Iād play the campaign again if all the ships did that.hmmā¦yea im in
-
@ Mk Note āanim, bay_door_anim, and open_animā are put in the shiparch, you simply put in the animation name that is declared inside of the cmp for it to activate.