Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Maps, Mods and Editors » Animated Sti's
Animated Sti's[message #295399] Sun, 18 December 2011 06:48 Go to next message
Hawkeye

 
Messages:1633
Registered:October 2005
Location: Australia
Does anybody know how the game reads or uses animated sprites?

I have recently been required to change the colour of the the water fountains (fount1.sti) which include a 3 frame cycling animation for the water itself. Nothing has been changed apart from the colour of the water, which I have saved as a new sti and editing the tileset to make use this new file. However when it comes to using in the map editor the fountains no longer animate.

Anybody know why?


Re: Animated Sti's[message #295413] Sun, 18 December 2011 16:58 Go to previous messageGo to next message
Kazuya

 
Messages:222
Registered:January 2009
I just did a quick test. So far I am unable to recreate the effect that you describe. I have recoloured the water animation black and it just plays fine in the map editor. Can you upload your fount1.sti somewhere, so I can check the file?
Re: Animated Sti's[message #295452] Mon, 19 December 2011 15:15 Go to previous messageGo to next message
Kazuya

 
Messages:222
Registered:January 2009
I just used your file. The animation is playing fine.
I changed the tileset for the first map to tileset number 37 and renamed your file to FOUNT1.sti. The Editor plays your animation without any problems.
http://www.youtube.com/watch?v=Dy8ODkoUNM8
Re: Animated Sti's[message #295467] Mon, 19 December 2011 19:07 Go to previous messageGo to next message
smeagol

 
Messages:2713
Registered:June 2008
Location: Bremen, Germany
Animation of the fountain is probably stored in the jsd file. But how it actually works... no idea. Haven't worked with jsd edit in quite a while.


Re: Animated Sti's[message #295476] Mon, 19 December 2011 21:03 Go to previous messageGo to next message
Kazuya

 
Messages:222
Registered:January 2009
smeagol
Animation of the fountain is probably stored in the jsd file. But how it actually works... no idea. Haven't worked with jsd edit in quite a while.

No, the animation is stored in the sti. How should the animation be stored in a jsd file? That file contains the information about its pseudo 3D Layout. Hawkeyes animation works fine, I just tested it myself. There must be something wrong with his Editor or Game.
Re: Animated Sti's[message #295488] Tue, 20 December 2011 01:28 Go to previous messageGo to next message
Hawkeye

 
Messages:1633
Registered:October 2005
Location: Australia
Okay cheers, maybe it's a naming convention thing. Which is why I was suspecting there might be some code somewhere that handles these files differently? I'll really need to use a new filename otherwise it will conflict with the original fountains. Hmm maybe time to give Scorpion a call.

*edit*
Scratch that, Scorp came through pretty quick. I'm pretty sure the JSD does contain the animation info, though I haven't edited any. Maybe I have some Christmas Gremlins. Currently my new brown fountains work on a map for M10 but they crash my map in B1. Time for a bug hunt.

[Updated on: Fri, 23 January 2015 02:43]



Re: Animated Sti's[message #295492] Tue, 20 December 2011 02:18 Go to previous messageGo to next message
BirdFlu

 
Messages:451
Registered:September 2007
Location: Lampukistan
The animation is in the JSD file. If you look into the file for tilesets/37/fount1.jsd you will see that that the two flags STRUCTURE_FILE_CONTAINS_AUXIMAGEDATA and STRUCTURE_FILE_CONTAINS_STRUCTUREDATA are set. For regular structures you have only the flag STRUCTURE_FILE_CONTAINS_STRUCTUREDATA which means that the file contains the 3D layout. Animated have the second flag set too.

As far as i know the usual JSD editors only allow to change the 3D layout but not the animation info, but then i'm not very familiar with these tools, so maybe they actually can. Anyway, it should be possible to create an XML file that replaces the JSD file. I'm pretty sure i implemented it quite some time ago, but i'm not sure how much of it is in the trunk.



	
J2SD 5 5 2 0 1056
0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 255 100 0 -5 0 0 0 16 0 0 0 0 0,0,0,0,0 0,0,0,0,0 0,0,0,0,0 1,0,0,0,0 1,1,0,0,0 0 -1 0 0 0,0,0,0,0 1,0,0,0,0 1,1,1,0,0 1,1,1,1,1 1,1,1,1,1 0 -2 0 0 0,0,0,0,0 0,0,0,0,1 0,0,1,1,1 1,1,1,1,1 1,1,1,1,1 0 -3 0 0 0,0,0,0,0 0,0,0,0,0 0,0,0,0,0 0,0,0,0,1 0,0,0,1,1 -1 0 0 0 1,1,1,0,0 1,1,1,0,0 1,1,1,1,0 1,1,1,1,0 1,1,1,1,0 -1 -1 0 0 1,1,1,1,1 1,1,1,1,1 3,1,1,1,1 3,3,1,1,1 3,3,3,1,1 -1 -2 0 0 1,1,1,1,1 1,1,1,1,1 1,1,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1 0,0,1,1,1 0,0,1,1,1 0,0,1,1,1 -2 0 0 0 1,1,1,1,0 1,1,1,1,0 1,1,1,1,0 1,1,1,1,0 1,1,1,0,0 -2 -1 0 0 3,3,3,1,1 3,3,1,1,1 3,1,1,1,1 1,1,1,1,1 1,1,1,1,1 -2 -2 0 0 1,1,3,3,3 1,1,1,3,3 1,1,1,1,3 1,1,1,1,1 1,1,1,1,1 -2 -3 0 0 0,1,1,1,1 0,1,1,1,1 0,1,1,1,1 0,0,1,1,1 0,0,1,1,1 -3 0 0 0 1,1,0,0,0 1,0,0,0,0 0,0,0,0,0 0,0,0,0,0 0,0,0,0,0 -3 -1 0 0 1,1,1,1,1 1,1,1,1,1 1,1,1,0,0 1,1,0,0,0 0,0,0,0,0 -3 -2 0 0 1,1,1,1,1 0,1,1,1,1 0,0,1,1,1 0,0,0,0,1 0,0,0,0,0 -3 -3 0 0 0,0,0,0,0 0,0,0,0,0 0,0,0,0,0 0,0,0,0,0 0,0,0,0,0

Re: Animated Sti's[message #295496] Tue, 20 December 2011 06:00 Go to previous message
Hawkeye

 
Messages:1633
Registered:October 2005
Location: Australia
Thanks Birdflu, that's probably too techie for me (I'm no coder) but it's good to know that's where indeed the information sits.


Previous Topic: JA2 Tools and Editors Help and Manuals
Next Topic: JA2 vanilla weapons and items mods
Goto Forum:
  


Current Time: Tue Sep 19 23:38:27 EEST 2017

Total time taken to generate the page: 0.00941 seconds