You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-4Lines changed: 43 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,34 @@ For detailed info, see the [docs for Delta-V Modding](https://gitlab.com/Delta-V
6
6
7
7
## Mod Setup
8
8
9
+
### Structure
10
+
11
+
Mod ZIPs should have the structure shown below. The name of the ZIP is arbitrary.
12
+
13
+
```
14
+
yourmod.zip
15
+
├───.import
16
+
└───mods-unpacked
17
+
└───Author-ModName
18
+
├───ModMain.gd
19
+
└───_meta.json
20
+
```
21
+
22
+
#### Notes on .import
23
+
24
+
Adding the .import directory is only needed when your mod adds content such as PNGs and sound files. In these cases, your mod's .import folder should **only** included your custom assets, and should not include any vanilla files.
25
+
26
+
You can copy your custom assets from your project's .import directory. They can be easily identified by sorting by date. To clean up unused files, it's helpful to delete everything in .import that's not vanilla, then run the game again, which will re-create only the files that are actually used.
27
+
28
+
29
+
### Required Files
30
+
9
31
Mods you create must have the following 2 files:
10
32
11
33
-**ModMain.gd** - The init file for your mod.
12
34
-**_meta.json** - Meta data for your mod (see below).
13
35
14
-
### Example _meta.json
36
+
####Example _meta.json
15
37
16
38
```json
17
39
{
@@ -31,9 +53,9 @@ Mods you create must have the following 2 files:
31
53
}
32
54
```
33
55
34
-
#### Notes
56
+
#### Notes on meta.json
35
57
36
-
Some properties in the JSON are not checke din the code (ATOW), and are only used for reference by yourself and your mod's users. These are:
58
+
Some properties in the JSON are not checked in the code, and are only used for reference by yourself and your mod's users. These are:
37
59
38
60
-`version`
39
61
-`compatible_game_version`
@@ -54,7 +76,24 @@ Add a script that extends a vanilla script. `childScriptPath` is the path to you
54
76
55
77
Inside that extender script, it should include `extends {target}`, where {target} is the vanilla path, eg: `extends "res://singletons/utils.gd"`.
56
78
57
-
Note that your extender script doesn't have to follow the same directory path as the vanilla file, but it's good practice to do so.
79
+
Your extender scripts don't have to follow the same directory path as the vanilla file, but it's good practice to do so.
80
+
81
+
One approach to organising your extender scripts is to put them in a dedicated folder named "extensions", eg:
82
+
83
+
```
84
+
yourmod.zip
85
+
├───.import
86
+
└───mods-unpacked
87
+
└───Author-ModName
88
+
├───ModMain.gd
89
+
├───_meta.json
90
+
└───extensions
91
+
└───Any files that extend vanilla code can go here, eg:
0 commit comments