sumthinelse
civ investigator
I am writing a program (using SUN java) to look at some of the flags in the UNIT structure in an uncompressed saved game. I can find the first structure by searching in the uncompressed game for ASCII "UNIT" but that wastes a lot of time because there is a lot of data that comes before that in the file. How do you find where the first "UNIT" structure is in an uncompressed saved game without searching through anywhere from 500K to multiple megs of data?
The reason I need to look at these flags: after an elite unit creates an elite, a flag gets turned on in that unit's structure so that it will never create another leader. Thus some elite units can create leaders and others can't but they look exactly the same unless you look at the internal flags.
It would be easier if you could add a field to display the flags at offset 0x30 after the start of the "UNIT" string, but I'll take any help I can get....
The reason I need to look at these flags: after an elite unit creates an elite, a flag gets turned on in that unit's structure so that it will never create another leader. Thus some elite units can create leaders and others can't but they look exactly the same unless you look at the internal flags.
It would be easier if you could add a field to display the flags at offset 0x30 after the start of the "UNIT" string, but I'll take any help I can get....