General > User modifications

Modding Application

<< < (10/15) > >>

geever:

--- Quote from: evilhamburger on May 13, 2010, 09:24:30 am ---Awesome...
What PO files?

--- End quote ---

The installer doesn't contain them, but the compiled MO files. Btw long texts like research descriptions should be edited on the wiki. We copy them into the PO files via scripts.

-geever

evilhamburger:
Thanks, found it now :)

Is there anywhere I can find a file descriptor for this? Or do I have do download source to extract it from there?
Or does one of the included executables include a switch to do this via command line?

geever:

--- Quote from: evilhamburger on May 13, 2010, 09:42:51 am ---Thanks, found it now :)

Is there anywhere I can find a file descriptor for this? Or do I have do download source to extract it from there?
Or does one of the included executables include a switch to do this via command line?

--- End quote ---

We use gettext for translations.

-geever

evilhamburger:
Have read up on all that, so if I want my application to support changing in-game texts I have to find a MO decompiler (or make one myself)? (I don't need to worry about finding one if I can find out the hashing algorithm)

Next, does UFO:AI support modded language files? (IE can they be placed in a PK3 or do I have to overwrite existing files?)

Would UFO:AI mind me excluding a hash table from the MO files? What kind of performance hit would this produce?

Note: I'm a very DIY guy when it comes to programming.

geever:

--- Quote from: evilhamburger on May 13, 2010, 10:29:10 am ---Have read up on all that, so if I want my application to support changing in-game texts I have to find a MO decompiler (or make one myself)? (I don't need to worry about finding one if I can find out the hashing algorithm)

--- End quote ---

Po files are downloadable from SVN web interface, then you only need a po/mo compiler which is shipped with gettext (msgfmt.exe).


--- Quote from: evilhamburger on May 13, 2010, 10:29:10 am ---Next, does UFO:AI support modded language files? (IE can they be placed in a PK3 or do I have to overwrite existing files?)

--- End quote ---

gettext doesn't support compressed languagefiles they must be individual files in the directory tree supplied. However you can create new languages, just add definitions for them into languages.ufo scriptfile.

Btw if anyone creates a real new translation should be sent us as a patch to include into the official game. Modded, hacked language files are another category ofc.


--- Quote from: evilhamburger on May 13, 2010, 10:29:10 am ---Would UFO:AI mind me excluding a hash table from the MO files? What kind of performance hit would this produce?

--- End quote ---

IDK. I would suggest using the standard msgfmt.

-geever

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version