Craft Name


  • Please log in to reply
6 replies to this topic

#1 hatfarm

hatfarm

    Lieutenant

  • Members
  • PipPipPipPip
  • 172 posts
  • Gender:Male
  • Location:Normal, IL, USA

Posted 11 August 2004 - 05:07 PM

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

#2 daishiva

daishiva

    .net modder

  • Members
  • PipPipPip
  • 93 posts

Posted 11 August 2004 - 11:32 PM

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.
Author of MapEdit.net and PckView.net - http://www.daishiva.com
Member 2^8

#3 hatfarm

hatfarm

    Lieutenant

  • Members
  • PipPipPipPip
  • 172 posts
  • Gender:Male
  • Location:Normal, IL, USA

Posted 12 August 2004 - 03:50 AM

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

#4 NKF

NKF

    Mr. Badger in disguise

  • Site Staff
  • PipPipPipPipPip
  • 4,449 posts
  • Gender:Male
  • Location:In my mind

Posted 12 August 2004 - 04:41 AM

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
NKF - finally built a gaming PC in 2020 (though not any of that RGB nonsense). Can now play games up to '89!

#5 hatfarm

hatfarm

    Lieutenant

  • Members
  • PipPipPipPip
  • 172 posts
  • Gender:Male
  • Location:Normal, IL, USA

Posted 12 August 2004 - 03:38 PM

Awesome, that helps a LOT. Thanks much.

-hatfarm

#6 Munkeylord

Munkeylord

    Am I back? possibly.

  • Members
  • PipPipPipPip
  • 261 posts
  • Gender:Male

Posted 14 August 2004 - 06:59 PM

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

#7 Solarius Scorch

Solarius Scorch

    I just love the color red...

  • Members
  • PipPipPip
  • 75 posts
  • Gender:Male
  • Location:Poland

Posted 20 May 2006 - 12:18 AM

Yes, I use MS Word and it works okay, too.
Look at you hacker...
A pathetic creature of meat and bone, panting and sweating as you run through my corridors.
How can you challenge a perfect immortal machine?

-- Shodan, System Shock 2




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users