Jump to content

Craft Name


hatfarm

Recommended Posts

English.dat and english2.dat is really just a big file filled with strings.

 

Spaces are 0x20 (or 32 in decimal) and the terminator for the string MUST be 0x00 ( 0 in decimal). You have to make sure this convention is met for every string.

 

I tinkered with it last night. Just loaded every individual string into an array. Then, if you look at the files like facil.dat in the savegame directories, the very first byte for each base facility entry points to a string in english.dat. The first byte for the living quarters for example has value of 73. So when I printed out the string stored at index 73 of the array, I got the name of the facility.

 

For fun: You can do silly things like point the name of a facility to a ufopaedia entry if you wanted. :P

 

I might be +1 or -1 on the index number for the living quarters in this example.

 

- NKF

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...