Modding Tool

From Nexus Mods Wiki
Revision as of 16:55, 24 September 2019 by WarhorseStudios (talk | contribs)
Jump to: navigation, search

Modding Tool

The Modding tool creates data PAKs for the mod. The tool is started from editor menu.

409x396px

This opens dialog window:

A screenshot of a cell phone Description automatically generated

Paks are created for the mod selected in the combo box. Mod folder must exist already.

Normalized mod name is filesystem friendly name. It is used as part of pak name. The normalized name is set by:

  • Tag "modid" in mod manifest (it can contain lowercase letters and underscore)
  • Mod name in mod manifest (the name is converted to suitable format)
  • Mod folder name (the name is converted to suitable format)

Tables

The tables are in 'Data/Libs/Tables' (or 'Libs/Tables inside the PAK'). The Modding Tool can store just modified parts of tables to mod PAKs. This allows to use several mods in one time. Name of patch table is ORIGINAL_TABLE_NAME__NORMALIZED_MOD_NAME, e.g. 'poi_type__my_first_mod' is created for 'poi_type'. Suffix of table file is XML (human readable format) and TBL (quick binary format).

Steps to create mod tables pak:

  1. Ensure no mod is active (otherwise the mod would contain modifications from other mods)
  2. Extract and modify table files (by editor or manually)
  3. You can test the your modification now in the editor or in the game (in this case you must set sys_pakpriority to 0)
  4. Ensure you have PAK with reference tables 'Tables_reference.pak' in folder 'Data'
  5. <o:wrapblock>A screenshot of a cell phone Description automatically generated <w:wrap type="topAndBottom">
 
  A screenshot of a cell phone Description automatically generated

</w:wrap></o:wrapblock>
Create diff tables for you mod by pressing button 'Create mod tables'. In few seconds it compares current tables to reference ones and created diff table files (in case there is a difference). Result dialog should look like this one:

Details you can see in editor console or in 'editor.log'

  1. Again - you can test the your modification now in the editor or in the game (in this case you must set sys_pakpriority to 0)
  2. Pack the diff files by pressing button 'Pack tables'. All table files (*.TBL, *.XML) are packed into file 'mods/MOD_FOLDER/data/tables_patch.pak'. Result dialog should look like this one:[[File:|410x172px|A screenshot of a cell phone Description automatically generated]]

Details you can see in editor console or in 'editor.log'

 

Other files (not tables, not localization)

The non-table files in folder 'Data' should be packed into file 'mods/MOD_FOLDER/data/data.pak'. Modding tool disables data compression for some files and excludes the tables folder.

Steps to create the pak:

1.            Extract and modify files (by editor or manually)

2.            You can test the your modification now in the editor or in the game (in this case you must set sys_pakpriority to 0)

3.            Pak the diff files by pressing button 'Pack other files'. Result dialog should look like this one: [[File:|368x172px|A screenshot of a cell phone Description automatically generated]]

Details you can see in editor console or in 'editor.log'

Localization - text

The localization texts are packed into 'mods/MOD_FOLDER/Localization/LANGUAGE_xml.pak'

Steps to create text localization pak:

  1. Modify or add the texts in the database
  2. Select language in the combo box
  3. <o:wrapblock>A screenshot of a cell phone Description automatically generated <w:wrap type="topAndBottom">
 
  A screenshot of a cell phone Description automatically generated

</w:wrap></o:wrapblock>
Push button 'Create and pack mod texts'. It starts external tool – this tool finds differences in text database and stores the diffwrences into mod pak. This needs several minutes. You should see new window like this one:

In case of error the error message is written to this window and messagebox is displayed after external tool ends.

Localization - voiceover

The voiceover files are packed into 'mods/MOD_FOLDER/Localization/LANGUAGE.pak'. Only *.ogg files are supported.

Steps to create text localization pak:

  1. Put your files into folder Localization/Dialog
  2. Select language in the combo box

Push button 'Pack voiceovers'. Result dialog should look like this one:A screenshot of a cell phone Description automatically generated

Details you can see in editor console or in 'editor.log'