hatfarm Posted August 11, 2004 Share Posted August 11, 2004 Anyone have any idea where the craft names are in ufo.exe? I'd like to be able to rename them but haven't been able to find them yet. Thanks. -hatfarm Link to comment Share on other sites More sharing options...
daishiva Posted August 11, 2004 Share Posted August 11, 2004 I believe they are in the respective language file found in the GEODATA directory. Havent directly tried this, but it looks like all the game text is there. Link to comment Share on other sites More sharing options...
hatfarm Posted August 12, 2004 Author Share Posted August 12, 2004 Yeah, I found it but when I edited the file it crashed. I did edit it with a text editor so I'll try with my hex editor later. I'll let you know what happens. Thanks. -hatfarm Link to comment Share on other sites More sharing options...
NKF Posted August 12, 2004 Share Posted August 12, 2004 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. 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 More sharing options...
hatfarm Posted August 12, 2004 Author Share Posted August 12, 2004 Awesome, that helps a LOT. Thanks much. -hatfarm Link to comment Share on other sites More sharing options...
Munkeylord Posted August 14, 2004 Share Posted August 14, 2004 use word pad, you'll just have to dig around and find the names though but it should work well...don't delete the squares or it will crash Link to comment Share on other sites More sharing options...
Solarius Scorch Posted May 20, 2006 Share Posted May 20, 2006 Yes, I use MS Word and it works okay, too. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now