How it should work=
This is an example header of one of the game's TGA files after it's made readable=
Code: Select all
00 00 02 00 00 00 00 00 00 00 00 00 00 01 00 01 20 00
And this is the result after making it unreadable and fitting into the game.
Code: Select all
00 01 00 00 00 01 00 00 20 00 00 00
To convert it making it unreadable, you need to remove the first 12 bytes of the header
Code: Select all
'00 00 02 00 00 00 00 00 00 00 00 00' 00 01 00 01 20 00
That will leave you with 6 bytes=
Code: Select all
00 01 00 01 20 00
Now, you need to add after the second byte, the fourth byte, and the sixth byte (in this case) the 00 byte=
Code: Select all
00 01 '00 00' 00 01 '00 00' 20 00 '00 00'
To get a tga file to try the script on, click here.
Basically, the script I need should do the exact opposite of the one created on this topic. so, if you're struggling in making this, just check that script and make its opposite.
I'd like to leave a side note and thank @EmeraldPlay for designing the .tga script and @Acewell for actually making it.