Displacer Posted December 9, 2007 Share Posted December 9, 2007 The death variable in a .cre file is listed as a 32 char array, I think its a ASCIIz string. 7 bytes for the name and 1 byte for the zero terminator. The remaining 24 bytes looks like they're used internally, perhaps at runtime for scratch space. At one point in the code (for PST) it compares strength against a value, and depending on the outcome places either a zero, or a one at offset 0x33C in the .cre file. Link to comment
Avenger Posted December 9, 2007 Share Posted December 9, 2007 The 0x33c offset in code isn't the same as the 0x33c offset in the .cre file. It is surely not a 7 long asciiz string, because "nameless" is 8 characters. Link to comment
Displacer Posted December 9, 2007 Author Share Posted December 9, 2007 The 0x33c offset in code isn't the same as the 0x33c offset in the .cre file. It is surely not a 7 long asciiz string, because "nameless" is 8 characters. Ugg, I got the wrong address for the death var. I thought a 7 char string was a bit odd... I do know that the offset is different in code than in the file, the offset was adjusted for the 0x33C so it is valid, which puts it in the middle of the 32 char array. Link to comment
Displacer Posted December 9, 2007 Author Share Posted December 9, 2007 My bad, apparently the cre file is broken up in memory into pieces. I'll have to find out where the breaks are. I'll double check my findings before I post from now on... Link to comment
Avenger Posted December 9, 2007 Share Posted December 9, 2007 No problem at all, at least someone else too DOES take a peek at the code in a debugger. So don't get too upset Link to comment
Displacer Posted December 9, 2007 Author Share Posted December 9, 2007 Yea, debugger and a disassembly. I'll see what I can find after I get all the breaks sorted out. The first break is at 0x310, so 0x00 - 0x30F is in one piece in memory, death variable is in its own little chunk, and is indeed 32 bytes. Since that break is at 0x310 (yes I did verify this ) that unknown starting at 0x2FC may be 2 or more separate things. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.