Jump to content


Photo

Armor Values


  • Please log in to reply
5 replies to this topic

#1 Pi Masta

Pi Masta

    Sergeant

  • Xenocide Recruit
  • 68 posts

Posted 28 January 2007 - 06:29 PM

I've been looking into the save files for the original XCOM and I haven't seen where the values for the armor (personal, powered, flying) are stored. I know the soldier is assigned a number that states what type of armor s/he is wearing (SOLDIER.DAT[63]), but I've never seen where the values for the armor (front, left, etc.) are stored for that armor. I suppose you could hack UNITREF to increase the amount of current/starting armor on a per soldier basis. But wouldn't it reset on every combat?

Anyone know where this is stored? Mainly a curiousity (sp?).

I don't think it would be stored in the executable since both Geoscape (UFOpaedia) and Tactical have the values, thus it would make more sense to put it in one of the DAT files.

#2 Zombie

Zombie

    Colonel

  • Xenocide Creative-Text Departmen
  • 2,947 posts

Posted 28 January 2007 - 06:45 PM

Armor values are stored in the executable. See this topic for the particulars. ;)

Edit: right, I'll move this to the game file editing forum.

- Zombie

Edited by Zombie, 28 January 2007 - 06:47 PM.

The Mr. Grognard of X-COM

Zombie: Empirical data's your only man, when formulating a research plan.
A soldier's death is never in vain if it makes the formula more plain.
A few dozen make a better case for refining that third decimal place.
They call me Zombie because I don't sleep, as I slowly struggle to climb this heap,
of corpses, data points, and trials, but from the top - I'll see for miles!


#3 Pi Masta

Pi Masta

    Sergeant

  • Xenocide Recruit
  • 68 posts

Posted 28 January 2007 - 07:09 PM

Thanks!

I didn't know about this little subforum tucked away. (Or maybe I just forgot). I figured where I originally placed it was a bad place.

Somehow I knew you would have the answer Zombie. Maybe I should just harass... err PM you instead when I got a question. :D

#4 Zombie

Zombie

    Colonel

  • Xenocide Creative-Text Departmen
  • 2,947 posts

Posted 28 January 2007 - 07:24 PM

Sure, go ahead. I'm always happy to help. (This goes for everyone). And if I don't know the answer outright, I know where to look. :)

- Zombie
The Mr. Grognard of X-COM

Zombie: Empirical data's your only man, when formulating a research plan.
A soldier's death is never in vain if it makes the formula more plain.
A few dozen make a better case for refining that third decimal place.
They call me Zombie because I don't sleep, as I slowly struggle to climb this heap,
of corpses, data points, and trials, but from the top - I'll see for miles!


#5 NKF

NKF

    Commander

  • [Global Moderators]
  • PipPipPipPipPipPip
  • 4,798 posts

Posted 28 January 2007 - 09:38 PM

In discussion, we've actually dug up a fair number of offsets that are buried in the CE executable (and finding similar values in the Dos executables) - such as the damage modifiers, the built-in turrets to the starting stats and so on an so forth. We just haven't had them documented.

We found them, we'll certainly be able to find them again.

- NKF

Edited by NKF, 28 January 2007 - 09:38 PM.

Lord High Generalissimo Ruler Supreme of Norm's Anti Pedant Society (NAPS).

Number of members: 1

#6 Pi Masta

Pi Masta

    Sergeant

  • Xenocide Recruit
  • 68 posts

Posted 28 January 2007 - 10:28 PM

well, then another question, (which might need another thread). What about the XBASES.DAT file.

I haven't found much information on it, other than it contains information about alien bases. I did a few searches on strategy core and a general google search but to no avail.

I guess I could take a look at the file myself and see what I can come up with.


EDIT:
:huh:

Well all of my saves and MISSDAT folders have completely blank XBASES.DAT (all values are 0). I looked into my old saves from when I was beating the game (on beginner though) and noticed that byte 16 was set to 1 on the saves when aliens were retaliating against my first base (didn't know at the time you didn't get points or stop the aliens from attacking using base defences, so I just let them come I had around 15 retals in a month).

Could this be a flag as to what XCom bases the aliens know about? It would surely need to be saved but I would have figured that would be put in BASE.DAT or LOC.DAT.

(Gonna go on a limb here and presume that is what this file is for)
The file is always 48 bytes long. Since you can only have a total of 8 bases that would leave 8 bytes per base. From what I've read its on a per race basis, but there's only 5 races right? What would the other 3 bytes be used for?

EDIT 2:
There any knowledge of what AKNOW.DAT does?

Edited by Pi Masta, 29 January 2007 - 12:22 AM.