Quote
Originally posted by Macavenger:
**I might do that if I knew the separation sequence and such. Could you elaborate a bit? Is it just 0000, 0004, or something trickier? I would also presume that the values would be entered in the same order in which you tab through them in the templates, correct?
Hmm, now I'll need to memorize the order they come up in, not just what to do with them all...
**
Hehe, I wasn't entirely serious. I've only actually spent about 30 minutes on it or so. It depends what kind of resource it is. between every ship resource there's a set of zeroes and a 00F1 or something like that. you can figure out the individual resource themselves by looking at the resource w/ a TMPL, then opening it in hex editor. All the values go in the same order they appear in the TMPL, one right after the other, most are 1 set of zeroes with a max value of 8000 which is -32,768 in the TMPL (This relates to how the TMPL uses various bits and ranges to represent sign or something) and 16,384 in the game (like in the case of ship shields) biggish variables like cost are two sets and so on.
I don't have a hexeditor on the computer I'm currently using and I can't remember what they are, but the seperation sequence is different for each resource type (It's like an 0000 001H sort of thing) and whats more, for each additional resource there's a varying bunch of crap after the lot of them- some kind of end sequence- that I haven't figured out yet, which has the all resources' names in it and perhaps the IDs and the various flags and whatnot. make a plugin with 3 ships or whatnot and then duplicate it and start making small changes to one file in resedit (option return opens a resource in hex instead of TMPL btw), then open both in a hexeditor and see how they're different.
What would be easier than all that is just using resedit w/ TMPLs to make a bunch of resources with only zeroes in it, then just typing a bunch of hex into a text editor including seperation sequences and then past it into the hex of the plugin at the correct spot, then you wouldn't need to bother with figuring out the end sequence which changes so easily anyway. Its kind of problomatic you know because if you have one character too many or one to few then everything gets offset and every single subsequent value in your plugin is wrong and it won't work.