Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » find two vehicles in data/anims.slf
find two vehicles in data/anims.slf[message #359689] Wed, 22 April 2020 15:37 Go to next message
Zaphod

 
Messages:18
Registered:April 2017
Location: Hessen Germany
looking for files in which the bodytypes, animations and everything else that has to do with vehicles are stored, i found the file anims.slf in data by accident via the JSD editor. It contains two vehicle.JSD files. One of them is an incomplete APC and a finished red car with 8 directions.

Does anyone have any idea what this is all about?
Can you do anything with it?

I wanted to create and integrate a new tank simulation. Does anyone have a tip where the bodytypes are generaly defined?
Re: find two vehicles in data/anims.slf[message #359713 is a reply to message #359689] Thu, 23 April 2020 09:29 Go to previous messageGo to next message
Hawkeye

 
Messages:2222
Registered:October 2005
Location: Australia
You can find the other vehicles in the same sort of file, in the parent data folder (not Data-1.13) there's an anims.slf which includes Tanks, Ice Cream trucks, Vans and Hummers etc. these files can be extracted using a package like Dragon Unpacker. Once extracting these you can edit them, and then put them in an externalised 1.13 folder which will have priority over any of the Vanilla files.


Re: find two vehicles in data/anims.slf[message #359723 is a reply to message #359713] Thu, 23 April 2020 17:30 Go to previous messageGo to next message
Zaphod

 
Messages:18
Registered:April 2017
Location: Hessen Germany
Hi Hawkeye.
That's a completely new information for me. Thank's for that.
Actually i'm playing the original JA2-german-installation with the updates 1.05 and 1.13 with the last Revision_8776_GameDir_2525.
I'm not sure if that's important. There seem to be several versions of this game.
I knew that in data/anims/ three vehicles are stored directly as jsd files. Eldorado, hummer and icecream truck. And now in data/anims.slf the both new one's that i've never seen in game before.
I have no idea where find the files from the tank.

The only thing i could find in the anims.slf file under tank as a jsd file is stored there as a structure. Could it be that?
The files tank_nw.sti and tank_ne.sti are nowhere to be found.

[Updated on: Thu, 23 April 2020 18:37]

Re: find two vehicles in data/anims.slf[message #359736 is a reply to message #359723] Fri, 24 April 2020 06:11 Go to previous messageGo to next message
Hawkeye

 
Messages:2222
Registered:October 2005
Location: Australia
I'm not sure, the Vanilla files should be pretty much all the same regardless of what version you have. Vanilla's (1.12) SLF's contain assets that never made it into the final game as well, which some mods have put to good use.

JSD's have structure/collision box data, but not anims. I thought I saw tank files in the anims.slf but didn't unpack them to look. Maybe the nw and ne frames are in the other sti's?


Re: find two vehicles in data/anims.slf[message #359739 is a reply to message #359736] Fri, 24 April 2020 10:26 Go to previous messageGo to next message
Zaphod

 
Messages:18
Registered:April 2017
Location: Hessen Germany
The look via jsd-editor don't shows everything. After useing the dragon unpacker (Many thanks for the tipp) a crazy light goes on. There are really all and much more vehicle sti's next to the jsd files. The APC-tank is interesting because his chassis has picture's for every direction. That helps more to understand.

After a thorough look through the vehicles.cpp and the header the question remains which role the bodytype no. plays. I can't see the link between the code and the animation?

I am currently planning to build a photo box with fixed cameraposition, a rotating plate and a fixed LED-spotlight and to photograph small vehicle models from different angles. Then, according to the plan, to edit the pictures with photoshop and convert them into sti files. Should I be aware of anything important before I start?

[Updated on: Fri, 24 April 2020 10:32]

Re: find two vehicles in data/anims.slf[message #359763 is a reply to message #359739] Sun, 26 April 2020 06:34 Go to previous messageGo to next message
Hawkeye

 
Messages:2222
Registered:October 2005
Location: Australia
JSD's just reference those animation frames from the Sti. I'm not sure why some frames aren't showing up in the JSD editor but weird things happen especially for vehicles that you can drive.

If you are talking about rendering your own animations there's a few people who have done it on here, including some of the guys on Discord more recently who are using Blender and they may have a rendering/light set up you can borrow.

If you're using some other 3D package this document may interest you;

http://ja2v113.pbworks.com/w/page/28015925/Anatomy%20of%20a%20sprite

There's also some general art tips that could be applicable in my tileset editing guidelines here;

http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=17774&goto=269120#msg_269120

[Updated on: Sun, 26 April 2020 06:35]



Re: find two vehicles in data/anims.slf[message #359782 is a reply to message #359763] Mon, 27 April 2020 09:34 Go to previous message
Zaphod

 
Messages:18
Registered:April 2017
Location: Hessen Germany
Thanks, I have already read about several of your articles on jsd-editor and sti-files. They were all very helpful in understanding how the two parts are related.

The first link is very informative and helps me to save time for calculating the angles.

By chance I found the source code of dariusk from JA2 at github and looked at some promising files with Eclipse. In the animation Data.c I discovered the link to the STI files. And in Animation Data.h I mean the bodytype no. to have found. I'm not 100% sure about that.
I also don't know how the code matches the latest developments at 1.13. I still have to find out. If possible, I will try to register in the discord.
Previous Topic: Hex editing save games
Next Topic: A new quest
Goto Forum:
  


Current Time: Fri Jan 22 23:21:51 EET 2021

Total time taken to generate the page: 0.02314 seconds