General > User modifications

Couple of questions

<< < (2/4) > >>

Neonin:

--- Quote from: geever on July 06, 2012, 01:31:08 pm --- If you only want to rename them on the UI you can probably do it by translating (translate skill_sniper to Pistols).
--- End quote ---

That sounds like what I was trying to do. Is that possible in a script file? I need to find the UI one that calls up that information too in that case!

geever:

--- Quote from: Neonin on July 06, 2012, 02:23:51 pm ---That sounds like what I was trying to do. Is that possible in a script file? I need to find the UI one that calls up that information too in that case!

--- End quote ---

By translating, I mean using the translation system to convert the names, for that:

* download the po file: English
* get a poedit
* edit the po file and ask poedit to compile it to a mo (it may does it automatically by default)
* replace the mo file in the game
-geever

Neonin:
Oh I see! Sorry, feeling a bit dense today...

If that process will let me edit the text in the game without recompiling the whole thing that'll be exactly what I need for the skill and the tech descriptions because I can just distribute the .mo file with the mod, assuming that putting it in the mod directory (so mod/neotweaks/i18n/uk/LC_MESSAGES/ufoai.mo) will work. That'll certainly be better than a load of techs and items with "No description" in the UFOpaedia. Thanks geever! :)

Neonin:
Ok, after looking at the base defence buildings a bit more and playing around with the scripts for a bit I've discovered it IS possible to add new batteries to existing buildings, so for example I can make the Laser Battery building pick from a bunch of different possible weapons and each one has its own characteristics. The inability to add a "type" other than laser or missile stops you from creating a building specifically for a certain type of weapon though, but at least it's possible to add some of what I wanted! :)

Neonin:

--- Quote from: H-Hour on July 06, 2012, 12:27:02 pm ---This is something we've been working on improving, but I'm not sure if it's there yet. Currently, all text is uncompiled .po files which are then compiled into .mo files used by the game. You can edit the .po files but you would have to distribute new, compiled .mo files with your mod -- and these contain all the translations as well, so could limit your mod to just English.
--- End quote ---

While I'm not too concerned with limiting the mod to English (at least with regards to the descriptions etc) I've had a look at editing the .po file to make a.mo file and while it's possible, you have to overwrite the one in the base/i18n folder because the game ignores anything in the mod/neotweaks/i18n folder. As this takes the mod beyond the scope of script changes and would mean the descriptions took effect even with an unmodded game, I shall be leaving them out for now. Hopefully some smart person will figure out a way to let modders edit it without overwriting unmodded game files at some point :)

Also, editing the .po file only allows you to change the current strings, not add new ones as far as I can see, so no new tech descriptions etc as it currently stands.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version