aboutsummaryrefslogtreecommitdiff
path: root/docs/modding
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2021-12-30 22:44:32 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2021-12-30 22:44:32 +0100
commitc9499d801e99885b3e5a435bc5a2b08b950ae882 (patch)
treefcd932d6a13ed39f2a5145e4eb03d8e063897b2e /docs/modding
parent17482103bff340190b091bd2c7c6f5f4f4112e8a (diff)
downloadNorthstarWiki-c9499d801e99885b3e5a435bc5a2b08b950ae882.tar.gz
NorthstarWiki-c9499d801e99885b3e5a435bc5a2b08b950ae882.zip
Move gitbook content to docs/ subdirectory
Diffstat (limited to 'docs/modding')
-rw-r--r--docs/modding/api/.gitkeep0
-rw-r--r--docs/modding/cheatsheet.md0
-rw-r--r--docs/modding/convars.md0
-rw-r--r--docs/modding/getting-started.md66
-rw-r--r--docs/modding/keyvalues.md0
-rw-r--r--docs/modding/localisation_files.md0
-rw-r--r--docs/modding/squirrel/what-is-squirrel.md0
-rw-r--r--docs/modding/tutorials/1-first-mod/.gitkeep0
-rw-r--r--docs/modding/tutorials/2-creating-vscripts/.gitkeep0
-rw-r--r--docs/modding/tutorials/3-particles-and-vmts/.gitkeep0
-rw-r--r--docs/modding/tutorials/modding-tutorials.md0
11 files changed, 66 insertions, 0 deletions
diff --git a/docs/modding/api/.gitkeep b/docs/modding/api/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/api/.gitkeep
diff --git a/docs/modding/cheatsheet.md b/docs/modding/cheatsheet.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/cheatsheet.md
diff --git a/docs/modding/convars.md b/docs/modding/convars.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/convars.md
diff --git a/docs/modding/getting-started.md b/docs/modding/getting-started.md
new file mode 100644
index 0000000..17f50aa
--- /dev/null
+++ b/docs/modding/getting-started.md
@@ -0,0 +1,66 @@
+# Getting Started
+
+## Basics
+
+This guide assumes you have basic understanding with programming and know how to use developer environments. Listed below are tools useful for exporting file formats
+
+If you'd like a more lengthy set of tutorials covering many topics. Look at:
+
+{% content-ref url="tutorials/modding-tutorials.md" %}
+[modding-tutorials.md](tutorials/modding-tutorials.md)
+{% endcontent-ref %}
+
+> TODO: Actually link tools
+
+### Tools
+
+* RSPNVPK
+* Cra0 VPK Tool (Titanfall VPK Tool)
+* Legion by DZXTPorter
+
+## Quick start
+
+In order to get started with making your mod, create a folder in `R2Northstar/mods`. While it isn't required, it is best practise by mod authors to follow the naming scheme "Author.ModName", such as "Northstar.Client".
+
+After making this folder, inside it add a folder named `mod` and a file named `mod.json`.
+
+Provided is a template `mod.json`, for a detailed list of values read [Cheatsheet](cheatsheet.md)
+
+```json
+{
+ "Name": "My.Mod",
+ "Description": "Woo yeah wooo!",
+
+ "LoadPriority": 0,
+ "ConVars": [],
+ "Scripts": [],
+ "Localisation": []
+}
+```
+
+Inside the `mod` folder, existing files found in the engine's virtual file system will be overwritten and new files can be added. If you need to define new Squirrel files (.nut/.gnut) they _must_ be declared in the `"Scripts"` array in `mod.json`. An example for this might be:
+
+```json
+ "Scripts": [
+ {
+ "Path": "path/to/my.nut",
+ "RunOn": "( CLIENT || SERVER ) && MP"
+ },
+ {
+ "Path": "path/to/my_second.nut",
+ "RunOn": "( CLIENT || SERVER ) && MP",
+ "ClientCallback": {
+ "Before": "ClientPreMapspawnThing",
+ "After": "AfterMapspawnClientThing"
+ },
+ "ServerCallback": {
+ "Before": "ServerPreMapspawncrap",
+ "After": "ServerAfterMapspawnWoo"
+ }
+ }
+ ]
+```
+
+> TODO: Create and link Squirrel VM documentation
+
+`"Path"` indicates where the script is, `"RunOn"` is the Squirrel VM context (see [Squirrel VM](getting-started.md)) as an expression, and `"ClientCallback"` and `"ServerCallback"` specify a function call that can be `"Before"` and/or `"After"` map-spawn.
diff --git a/docs/modding/keyvalues.md b/docs/modding/keyvalues.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/keyvalues.md
diff --git a/docs/modding/localisation_files.md b/docs/modding/localisation_files.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/localisation_files.md
diff --git a/docs/modding/squirrel/what-is-squirrel.md b/docs/modding/squirrel/what-is-squirrel.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/squirrel/what-is-squirrel.md
diff --git a/docs/modding/tutorials/1-first-mod/.gitkeep b/docs/modding/tutorials/1-first-mod/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/tutorials/1-first-mod/.gitkeep
diff --git a/docs/modding/tutorials/2-creating-vscripts/.gitkeep b/docs/modding/tutorials/2-creating-vscripts/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/tutorials/2-creating-vscripts/.gitkeep
diff --git a/docs/modding/tutorials/3-particles-and-vmts/.gitkeep b/docs/modding/tutorials/3-particles-and-vmts/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/tutorials/3-particles-and-vmts/.gitkeep
diff --git a/docs/modding/tutorials/modding-tutorials.md b/docs/modding/tutorials/modding-tutorials.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/docs/modding/tutorials/modding-tutorials.md