Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Problem with new vehicle shadows. (SOLVED!)
Problem with new vehicle shadows.[message #366148] Fri, 07 June 2024 16:39 Go to previous message
Marcus is currently offline Marcus

 
Messages:109
Registered:November 2014
I want to add a few vehicles but apparently I cannot get a single job right..

I opened other .sti files that are in game and I'm trying to do the same:
Shadows are simple .sti.
I gave all my .sti the same background colour, red in this case.
Shadows are blue, this is what I found in other shadow .STIs.
I made .sti for vehicles, their shadows and then the small counterparts for the T folder.
I added the new vehicle to a custom tileset that reads 90% of the material from the generic one. This was made to avoid glitches due to an "overstuffed" tileset.

The current situation:

TRACTOR1: The .sti works and I centered the sprites on the grid.
TRACTOR1S: The editor totally ignores it. It adds the shadow of something else instead.
TRACTOR1 (T folder): The editor ignores it, when generating the radar map the huge sprite is used instead, and the palette is basically corrupted.
TRACTOR1S (T folder): The editor totally ignores it.

EDIT: I tested an AIMNAS vehicle .STI in the editor. It does not work, just like my own.

Now, any leads?

As a sidenote, I just started playing with the JSD Editor. A bit of documentation would help, so prepare for more inane questions..

Solved: It's a matter of registration in the mod Ja2Set.dat XML file. The STI containing the shadows MUST be registered. You never end learning I guess..

I followed Smeagle's doing: Vehicle sti is set to 89 in the xml file, shadow sti is set to 91.
The sprite size in the smaller sti in the T folder is roughly 1/5th of the regular one.
Do add a small sti for shadows, or the game will add a random shadow to the vehicle, when looking at the radar map.

[Updated on: Sun, 09 June 2024 06:57]

Report message to a moderator

Sergeant
 
Read Message
Read Message
Previous Topic: Editing tileset .STI crashes the mapper.
Next Topic: Background image holder for Resolution scaling
Goto Forum:
  


Current Time: Sun Oct 13 04:06:32 GMT+3 2024

Total time taken to generate the page: 0.00636 seconds