Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Maps, Mods and Editors » *.sti editing / creating new graphics
Re: *.sti editing / creating new graphics[message #224476] Tue, 30 June 2009 23:19 Go to previous messageGo to previous message
Shanga is currently offline Shanga

 
Messages:3480
Registered:January 2000
Location: Danubia
1. You said with a random name the STI looks fine in game, right?
2. Once you "borrow" the name from a generic STI you get wierd pallete, right?
3. Hence it's not a color problem, it's a name conflict.

PS: I opened your truck.jsd in dotnet editor and it's quite way off, check it yourself.

TEST 1. Initial load test

http://www.ja-galaxy-forum.com/shanga/truck.jpg

1. I opened truck.sti from 0
2. I pasted your bmp at the end of the browish truck (twice since original file has 2 frames)
3. I put the edited sti in /tilesets/0 and fired up editor
4. I changed tileset to 16 (!!! watch this...check what follows now...)
5. ...although truck.sti is in 0, it shows up as debris in all tilesets.
6. Hence i was able to place the edited image.

Background is bad cause your image had it green lime, truck had it black. Direct Paste convered the colors and it resulted in green turning to grey. But that's beside the point, the rest of the image looks ok.

TEST 2. Making a mess

What happens when game/sti images are done in Truck pallete and you apply a new pallete over them files? Like yours, with lime green bg. I replicated the process using STIedit, don't even need the game. Looks familiar?

http://www.ja-galaxy-forum.com/shanga/truck_bad.jpg

1. I opened the edited TRUCK.sti (it has the original Truck pallete, as I said)
2. I loaded and applied YOUR pallete (exported from the STI you uploaded)
3. Total messup.
4. This is exactly what happens in game.

I will reproduce exactly now the steps needed to get YOUR image in truck.sti with YOUR pallete. I'll be done in 5 min, brb.


TEST 3. How it's done safely

http://www.ja-galaxy-forum.com/shanga/truck_good.jpg

1. I already had YOUR pallete exported from STIedit as Sirtech Pallete (new.stp)
2. I fired up STIedit and picked New STI option.
3. It asked me if I want a multipage STI, yes (JSD has 2 slots)
4. It also asked me if I want to pick a pallete, I said yes, and pointed to your pallete (new.stp)
5. I copied your vase from your STI and pasted it in my file (twice, to make 2 frames)
6. I saved the new TRUCK.STI and put it in Tilesets/0
7. I fired up editor, changed to tileset 16, picked rocks (2), placed your vase
8. Shadow is all wrong cause of truck, but colors seem perfect to me.

Next... testing your original sti.

TEST 4. Laughing my arse and smacking my head against the table

http://www.ja-galaxy-forum.com/shanga/truck_lex.jpg

1. Took your original unaltered truck.sti
2. Placed it in /0 (not /16!!)
3. Fired up editor, changed Tileset to Lawless (16)
4. Placed both your vases.
5. They look perfect

Next..conclusions...

5. What you did wrong

All you did wrong was to leave a Truck.sti in 0 and place your new file in /16. This caused a conflict between the two palletes, since both STI files were loaded at once.

So remember always to check for a primary file in /0. If it's there it WILL be loaded. Your options are:

A) you edit that file and take the risk of ALL tilesets where the edited object is placed to have a vase instead of a truck
B) you create a new STI and a new JSD from scratch
C) you edit files specific to each tileset and not present in 0.

NOTE: Be carefull with the number of frames if the file is an object with JSD. You need to replicate the exact number of frames. You also need to know what you're replacing. If you're replacing a door with a vase, it's obviously a bad thing, cause the JSD for door is more complex.

So you did it all right when editing the file. I recommend you study the JSD editor and write a detailed documentation of your experiments. If you manage to use it to create a good pair of STI+JSD you'll be helping a lot of aspiring modders.

[Updated on: Wed, 01 July 2009 05:36] by Moderator

Report message to a moderator

Captain
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wedit 2.41 on 64bit OS's
Next Topic: Whatever happpened to 1.13 urban chaos?
Goto Forum:
  


Current Time: Tue Feb 11 12:05:48 GMT+2 2025

Total time taken to generate the page: 0.01400 seconds