Since our favourite dev @bitvenom has come up for air I thought I might air this issue again. STCR has been at the top of the most popular list for HwRM since it came out on the 50th anniversary of Star Trek and I am givin’ it all I got
The story so far
In my frustration I actually learned how to do animations in Max and have successfully brought some doors and other things to life
The warp animations, specifically the “warp out” part, just doesn’t play. If you tell the game to use the one animation for both warp in and out, neither animations are played. If you invert the animations, the “warp_in” will play when the “warp out” would have happened. So both animations work, just never together.
The animations are called via a script, here is the lines from the *.madstate file:
MadState
FED_TNG_INTREPID_NIS00_OnSet = function(ship)
startAnim(ship, "warp_in")
end
FED_TNG_INTREPID_NIS01_OnSet = function(ship)
startAnim(ship, "warp_out")
end
I dimly recall that BitVenom said animating the root joint was a no-no. At this point most of the *.mad files in the STC mod are the original ones from HW2C, and the same section of the warp animation is played for both the old and new games.
Current thinking is to use frames (30 FPS) and to space out the animations. Also to have a JNT[Root_Anim] directly below the ROOT_LOD[0] position, and then have everything else on that. The new Root_Anim is what’s animated for the warp sequence
The goods
I have prepared a sample file (car_TNG_brinok.zip) and put it in My Public OneDrive folder. Please let me know if you need any more information.
I re-built the warp animation (although my example was just a linear graph, not a exponential one like the STC Warp is, but the premise is still there).
I re-coded the hyperspace check code that STC already had, and
a. put it in a custom code file (mostly because I didn’t want to mess with SobGroup splitting, game rules, and other such stuff).
I don’t know what that looked like and how it worked, but I think I can get it there.
Well, at the very least: the mad files for each ship (I could probably write a quick utility to process them in a batch all at once – unless they are all exactly (or mostly) the same), and the warp check script.
This might be self-evident in an example, and if it’s ok with the STC team I’d love to get my hands on it, but how are you running separate “warp in” and “warp out” animations? B5 and Star Wars could use this as well.