Mods: Difference between revisions
Codebyfire (talk | contribs) |
Codebyfire (talk | contribs) No edit summary |
||
| Line 9: | Line 9: | ||
==Steam Workshop Integration== | ==Steam Workshop Integration== | ||
# With a new mod placed in the folder ''%userprofile%\appdata\LocalLow\Codebyfire Ltd\The Colonists\Mods'' start The Colonists | # With a new mod placed in the folder ''%userprofile%\appdata\LocalLow\Codebyfire Ltd\The Colonists\Mods'' start The Colonists | ||
## Selecting | ## Selecting Mods from the main menu will show 2 options: | ||
###'''Workshop''' Subscribed and unsubscribed Mods on the Steam Workshop - Subscribe/Unsubscribe to Mods here | ###'''Workshop''' Subscribed and unsubscribed Mods on the Steam Workshop - Subscribe/Unsubscribe to Mods here | ||
###'''My Mods''' Published and unpublished Mods in your local folder - Publish/Unpublish and | ###'''My Mods''' Published and unpublished Mods in your local folder - Publish/Unpublish your mods and Workshop visibility here | ||
# There should now be 2 files within the ''%userprofile%\appdata\LocalLow\Codebyfire Ltd\The Colonists\Mods'' folder of your mods | # There should now be 2 files within the ''%userprofile%\appdata\LocalLow\Codebyfire Ltd\The Colonists\Mods'' folder of your mods | ||
##[[meta|meta.json]] - enter the Mod Title and Description for Steam Workshop in this file | ##[[meta|meta.json]] - enter the Mod Title and Description for Steam Workshop in this file | ||
| Line 21: | Line 21: | ||
### In the link to the mod on the workshop from the Mod Manager interface. e.g. "/filedetails/?id=0123456789" | ### In the link to the mod on the workshop from the Mod Manager interface. e.g. "/filedetails/?id=0123456789" | ||
==Enabling | ==Enabling mods== | ||
# Enable mods in either Sandbox, Random Map, or | # Enable mods in either Sandbox, Random Map, or when creating a new Custom Map | ||
## '''Sandbox''' - "Active Mods" will open Mod Manager with Available and Workshop tabs for activating mods. | ## '''Sandbox''' - "Active Mods" will open Mod Manager with Available and Workshop tabs for activating mods. | ||
## '''Random Map''' - "Active Mods" will open Mod Manager with Available and Workshop tabs for activating mods. | ## '''Random Map''' - "Active Mods" will open Mod Manager with Available and Workshop tabs for activating mods. | ||
## '''Custom Map''' - "Active Mods" | ## '''Custom Map''' - "Active Mods" available when creating a new Custom Map, will open Mod Manager with Available and Workshop tabs for activating mods. Note that you cannot change active mods once the map has been created. Also note that while local mods can be selected for testing, maps containing local mods can not be published to the Steam Workshop. Published Custom Maps with mods will include the mod(s) for subscribers. | ||
# When a game is started all selected mods will be activated and their content processed, i.e. json files, images etc. | # When a game is started all selected mods will be activated and their content processed, i.e. json files, images etc. | ||
# All activated mods for the current game are listed in the Info panel which accessed in the top left of the screen | # All activated mods for the current game are listed in the Info panel which accessed in the top left of the screen. | ||
==In-game reloading== | |||
If you're using a local mod, you can update your mod and reload the mod mid-game using the 'Reload' button. This is intended as a mod development tool to quickly iterate on certain changes. Be careful though! 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= | =Codex= | ||
Revision as of 22:36, 6 January 2023
This section is a work in progress!
Setup
Creating a mod
- If it doesn't already exist, create a Mods folder inside %userprofile%\appdata\LocalLow\Codebyfire Ltd\The Colonists\
- Create a folder for your mod inside the Mods folder, e.g. MyAmazingMod
- Everything then goes inside MyAmazingMod. 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.
Steam Workshop Integration
- With a new mod placed in the folder %userprofile%\appdata\LocalLow\Codebyfire Ltd\The Colonists\Mods start The Colonists
- Selecting Mods from the main menu will show 2 options:
- Workshop Subscribed and unsubscribed Mods on the Steam Workshop - Subscribe/Unsubscribe to Mods here
- My Mods Published and unpublished Mods in your local folder - Publish/Unpublish your mods and Workshop visibility here
- Selecting Mods from the main menu will show 2 options:
- There should now be 2 files within the %userprofile%\appdata\LocalLow\Codebyfire Ltd\The Colonists\Mods folder of your mods
- meta.json - enter the Mod Title and Description for Steam Workshop in this file
- thumbnail.jpg - the image file for the mod on Steam Workshop and Mod Panel (a default will be provided if omitted).
- When a Mod is published the file PublishedFileId.txt containing the Mod ID will be created
- Subscribed mods will be in the folder ``C:\Program Files (x86)\Steam\steamapps\workshop\content\677340\0123456789`` `where 0123456789` is the Mod ID
- The Mod ID can be found in 2 places:
- In the Published FileId.txt file in the local mod folder
- In the link to the mod on the workshop from the Mod Manager interface. e.g. "/filedetails/?id=0123456789"
- The Mod ID can be found in 2 places:
Enabling mods
- Enable mods in either Sandbox, Random Map, or when creating a new Custom Map
- Sandbox - "Active Mods" will open Mod Manager with Available and Workshop tabs for activating mods.
- Random Map - "Active Mods" will open Mod Manager with Available and Workshop tabs for activating mods.
- Custom Map - "Active Mods" available when creating a new Custom Map, will open Mod Manager with Available and Workshop tabs for activating mods. Note that you cannot change active mods once the map has been created. Also note that while local mods can be selected for testing, maps containing local mods can not be published to the Steam Workshop. Published Custom Maps with mods will include the mod(s) for subscribers.
- When a game is started all selected mods will be activated and their content processed, i.e. json files, images etc.
- All activated mods for the current game are listed in the Info panel which accessed in the top left of the screen.
In-game reloading
If you're using a local mod, you can update your mod and reload the mod mid-game using the 'Reload' button. This is intended as a mod development tool to quickly iterate on certain changes. Be careful though! 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
Base Codex File
(OLD) Generate default files using the Export Base Codex button in the Mod Manager window.
Note this has been superseded by the repository on GitHub:
https://github.com/codebyfire/colonists-base-codex
Codex Objects
Note many objects can be disabled in their main json file. see DisabledObjects
Scripting (C#)
Text/Localisation
Building, Structure, and LandRoute footprint rendering
The render.json file can be used to change, or define, the building, structure, and track footprint shown when they are placed.
And the rendering of Tree Fields, Plantable Fields, and the color of Terrain Types and Detail Types on Terrain Types.
And the use of colliders by units on building floors.
AnimalField, PlantableField, and TreeField footprint can be controlled in render.json
Summary of files recognized as valid in mods and their naming convention.