Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
<add sel="/themes">
<theme id="painttheme_player_custom_9" default="error_theme" name="{20114,10011}">
<group faction="player" paintmod="paintmod_0001" />
</theme>
</add>
To add a new paint, make a similar block in your own themes.xml file, and change the various parameters. I don't think these need to be individual add blocks, you can merge them into a single one, the multiple blocks is a left over bug fixing attempt as in previous X games errors could occur if there was more than one inner block (ie the theme block) per operation block.
- The id parameter is up to you, it does not need to match anything in your mod, but it must be unique.
- The default parameter does not need changing, this is what the game defaults to if the paint mod specified cannot be loaded.
- The name parameter needs changing to the display name of your paint job. This can either be a link to a translation string, as in the example above, or can be a text string.
- The faction parameter does not need changing, "player" tells the game that this is for a default player skin, not for an AI faction.
- The paintmod parameter must match the id of your paint mod as it is in your wares.xml file
Add a theme block for each paint mod you want to have available in the default skin list, making sure to change the parameters accordingly.There are a few lines in this file that also need changing.
At the start of the file are the lines:
<mdscript name="Addthemestoplayer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
<cues>
<cue name="Addthemesonload">
Change the name parameters to something unique in the mdscript block and the cue block to something unique
Further down the file is a block like:
<set_value name="$paintmods" exact="[
ware.paintmod_0001,
ware.paintmod_0002,
ware.paintmod_0003,
...
]"/>
This is a list of all the paint mod wares that you have created in wares.xml (that you have also included in the themes.xml group blocks). Between the [ and ] place a comma separated list of all your paint mod ware ids, prefixed with "ware." without the quotes.
I have created a python script that automates this process, but it's pretty rough. I basically just point it at the extracted mod files, it then loops over the paintmods.xml file to get a list of paint mods added by the mod, links them to names from the wares.xml, then uses a loop of string operations to build up the xml files needed for these default paint mods.
If you have any questions about making these mods feel free to ask them in this discussion thread. This isn't the most beginner friendly tutorial, the best place for tutorials on X4 mod making in general is the Egosoft forums.
(sorry for asking hear, steam won't let you post in the comment section unless you buy the steam version)