Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Tue Apr 15, 2025 3:21 am Post subject:
Mig Eater wrote:
SHP Builder can edit tmp files?
I'm working on it. At the moment, I made it open these files on my internal version here. Saving them will be a kind of challenge because it will have to detect the filled tiles and their extra data.
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Tue Apr 15, 2025 5:49 am Post subject:
And a final addition!
TD TMPs are more complicated to render correctly because the height and width of the tiles is hard-coded into the source code of the game (!!!). At least they have fixed that problem in RA1.
My height/width guess algorithm seems to be doing a good job. Here are some samples:
All TMP editors that have been made thus far can only copy and paste the image in to another image editor, it will be nice to finally have a program that can directly edit the image _________________
A variable Allocated, for instance, is only supposed to change in game. So, I don't know why in the hell someone decided to save it in a file. In XCC it became zero1, because it is always zero. Moving forward, skipping some bits, you have an offset for a Palette.... except that someone noticed that this kind of file isn't supposed to store palettes, so it is always zero. For XCC? zero2. And then, the funniest thing: an offset for remaps is in a memory space far, far away. XCC called it unknown1. It is not wrong. That variable makes no sense at all. Moving next, we have a transparency flag that points to a list in the end of the file where 99% of the times the value is zero and few times it is 1. Here is Vladan Bato's words on it:
Quote:
Index2 is an array of NumImages bytes where NumImages is the real
number of images in the file. However it's always filled with zeros
(sometimes there's a 1 somewhere but I don't know it's meaning).
Following the TransFlag, we have a ColorMap.... It points to a real address in memory. If you look at Iconset.bak, it was really supposed to be something.... but back to iconset.cpp, it doesn't even care for whatever is in the list that is in that address.
In short, it is funny and bizarre to figure out this kind of thing! 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