Posted: Thu Jun 24, 2004 2:08 am Post subject:
New TMP editor
Olaf wrote:
The normal graphics of a tile are horizontal. The (optional) extra graphics of a tile are vertical. If cx_extra is between 0 and 256, the extra graphics are present.
The normal graphics can be found directly after the TMP TS image header. It's a 576 byte block. Because TS uses an isometric grid, the tile is not rectangular. The first line has 4 pixels, the second line has eight pixels. Line 12 has 48 pixels, line 13 has 44 pixels and line 22 has 4 pixels.
After the normal graphics, there's another 576 byte block. This block probably contains height data.
Then you have the extra graphics (if present). They're rectangular, so it's a block of cx_extra * cy_extra bytes. They should be drawn at x_extra,y_extra.
Banshee here are some file to get you started.
It has a blank.tem file from TS. An image showing the two sets of the primary image (the image and z-data or shadow info). Also has a txt file laying out the hex code in a more understandable format.
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Thu Jun 24, 2004 2:49 am Post subject:
Thanks, I've downloaded the file and a lot of thing really clarified here. But... there are still a lot of thing to understand, but it's a good start. I'll need to take a look at the XCC code. But first I need to finish some personal stuff. I'll reply soon with more stuff. Thanks a lot. _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Thu Jun 24, 2004 3:19 am Post subject:
Yea, of course. I'm still wondering that 5th value. And it would also be interesting to make a table of values of the type of tmp files. XCC Tmp Editor doesnt make it very clear... _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
Directly after that, there is an index of the tiles. This index consists of c_files __int32 entries. When such an entry is zero, there is no tile. Otherwise, it's an offset from the start of the file and points to a TMP TS image header.
That one and the others that follow look like off set to the start of each (primary and extra image) sections. QUICK_EDIT
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Fri Jun 25, 2004 2:22 am Post subject:
weird, if that's the objective of that value, then the value is set wrongly in the sample you sent me. It's set to 20, however, the picture starts in the byte 73. _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Sat Jun 26, 2004 11:08 pm Post subject:
Oh... I've confused that a bit... I thought there was a value between the header and the image header.... my bad. But I still dont understand what is this 14 00 00 00. _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
Oh... I've confused that a bit... I thought there was a value between the header and the image header.....
Yes there are a group of code.
Banshee wrote:
my bad. But I still don’t understand what is this 14 00 00 00.
14 is in hex. If you change it to decimal it will = 20, this give you the location of where each data location starts. In this case it is at decimal 20 or hex 14.
Now find dec. 20 or hex 14 in the blank01.tem. It will be four bytes down the code.
It may be easer to make the hex editor read 00000000 (4bytes) instead of 00 00 00 00 one byte each.
Note this file uses one byte to four byte depending on the info.
like
All image color/ z-data = 2 bytes 0000
Most of the header info = 4 bytes 00000000
The property part = 1 byte each 00 Last edited by DJB on Sun Jun 27, 2004 6:37 pm; edited 1 time in total QUICK_EDIT
Sorry for the long wait. if you start up on the tmp editor again.
No a shp editor and a temp editor are different.
Yes you will need the z-data to work. When you get around to this again send me an e-mail at DJBREIT@ptd.net and I will dig up the info you need. QUICK_EDIT
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Mon Mar 07, 2005 4:06 am Post subject:
I already know how this works... I just have other priorities before implement TMP editing in the SHP Builder or OS Modding Studio. The format is different, TMP has some settings that SHP doesn't have and also the graphical format is different as well, however, you can make everything in one program if you adapt it to edit different kinds of files. _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum