diff options
author | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-03-27 03:09:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-27 03:09:31 +0200 |
commit | 6adc0b842b9f265a1e9a78a90d34f14c2db0aac8 (patch) | |
tree | cf7a858dac822bbb097ea70ad537f5e8d7bb80aa /docs/modding/squirrel/setting-mods/the-json.md | |
parent | b7f6d76402fa1a1d5cc86241ecf5cb845f1a1f07 (diff) | |
download | NorthstarWiki-6adc0b842b9f265a1e9a78a90d34f14c2db0aac8.tar.gz NorthstarWiki-6adc0b842b9f265a1e9a78a90d34f14c2db0aac8.zip |
Remove all modding-related content and move it to RTD (#53)
Diffstat (limited to 'docs/modding/squirrel/setting-mods/the-json.md')
-rw-r--r-- | docs/modding/squirrel/setting-mods/the-json.md | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/docs/modding/squirrel/setting-mods/the-json.md b/docs/modding/squirrel/setting-mods/the-json.md deleted file mode 100644 index db80a55..0000000 --- a/docs/modding/squirrel/setting-mods/the-json.md +++ /dev/null @@ -1,38 +0,0 @@ -The mod.json -============ - -The mod.json is responsible for governing when, and where your mod is loaded, and follows a layout that is fairly complicated at first glance, but ultimately simple - -```json -{ - "Name" : "SimpleRandomiser", - "Description" : "SimpleRandomiser", - "Version": "0.1.0", - "LoadPriority": 1, -``` -The script above defines the pubic and listed details of the mod -```json - "Scripts": [ - { - "Path": "sh_SimpleRandomiser.gnut", - "RunOn": "MP", - "ClientCallback": { - "After": "simplerandomiser_init" - }, - - "ServerCallback": { - "After": "simplerandomiser_init" - } - } - ], -``` -The scirpt above defines both what functions to run, when to run them and WHERE to run them, in this case it runs your simplerandomiser_init, when on multiplayer and for both the server and the client -```json - "Localisation": [ - "resource/simplerandomiser_localisation_%language%.txt" - ] -} -``` -this defines the path to the language file - -name this file mod.json, and it should go in the mods root folder |