Mods: Difference between revisions

From The Colonists
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
=Codex=
=Codex=


==Resources==
==[[ModResources|Resources]]==
==[[ModBuildings|Buildings]]==
==[[ModStructures|Structures]]==
==[[ModResearch|Research]]==
==[[ModNatural Resources|Natural Resources]]==
==[[ModAnimals|Animals]]==
==[[ModMarket|Market]]==


==Buildings==
==Boats==
==Structures==
==Research==
==Natural Resources==
==Animals==
==Market==


=Interface=
=Interface=


==UI==
==[[ModUI]]==


=Scripting (C#)=
=Scripting (C#)=


==Basics==
==[[ModSCriptBasics|Basics]]==


=Text/Localisation=
=Text/Localisation=


==Text Content==
==[[ModTextContent|Text Content]]==


==Bot Names==
==[[Bot Names]]==

Revision as of 20:05, 14 April 2021

Mods are in development! This section is a work in progress!

Setup

Creating a mod

  1. If it doesn't already exist, create a Mods folder inside %userprofile%\appdata\LocalLow\Codebyfire Ltd\The Colonists\
  2. Create a folder for your mod inside the Mods folder, e.g. codebyfireTestMod
  3. Everything then goes inside codebyfireTestMod. You can use subfolders to organise content or keep it all in the main directory, the mod loader in the game will just look at the name of the file to determine what it is.

Enabling a mod

  1. When you run the game, open the Mod Manager window and you should see an entry for codebyfireTestMod as well as any other folders in the Mods directory.
  2. To enable a mod, tick the entry in the list. At this point any DLLs will be initialised.
  3. Create a sandbox game and the game will process all other content in your mod, i.e. json files, images etc.
  4. You can update your mod and reload the codex mid-game using the button in the top left info panel.
   Some things may go wrong when reloading the codex mid-game, depending on the changes you make! For example, removing a building or resource may not go down well.

Codex

Interface

Scripting (C#)

Text/Localisation