ModResources: Difference between revisions
Stlnegril9 (talk | contribs) No edit summary |
Stlnegril9 (talk | contribs) No edit summary |
||
| Line 54: | Line 54: | ||
When creating a new resource there is an extra step to get it to appear in all the right UI locations. | When creating a new resource there is an extra step to get it to appear in all the right UI locations. | ||
To appear in the resource panels (bottom left) amend the ''resourceCategoriesDict'' value for it in '''ui.json'''. | To appear in the resource panels (bottom left) amend the ''resourceCategoriesDict'' value for it in '''[[ModUI|ui.json]]'''. | ||
==Notes== | ==Notes== | ||
Please note that in the codex or codebase "resources" are sometimes referred to as "items". Consider these terms interchangeable. | Please note that in the codex or codebase "resources" are sometimes referred to as "items". Consider these terms interchangeable. | ||
Revision as of 19:46, 18 August 2021
Mod Resources Translation.csv
List of fields used in translation.csv for Resources
Resources Translation
placeholder for now - note common fields used in translation.csv for Resources
Should this section be in each individual mod item type's page OR
a separate translation.csv [age that lists value/tables for each mod item type - and link to that mod item type??
Mod Resources
JSON
Allows you to change, remove, and create resources available in the game.
Resource entries in resources.json will add or replace the base codex resources. To disable a base codex resource, change the 'isAvailable' property to false.
Resource Spec
JSON fields
| Field | Description | Example | Notes |
|---|---|---|---|
| typeId | Resource Unique ID | 2 (Logs) | For customIDs us a value between 200-250 |
| category | Resource Category | 1 | See ModCat in Resource |
| isAvailable | Available In Game | true | set to false to remove from game |
Assets
Icon
image file naming convention: resource_200.png
Example file:
3D Models
New Resources
When creating a new resource there is an extra step to get it to appear in all the right UI locations.
To appear in the resource panels (bottom left) amend the resourceCategoriesDict value for it in ui.json.
Notes
Please note that in the codex or codebase "resources" are sometimes referred to as "items". Consider these terms interchangeable.