Update 'Migrating from loose files'

Lucas Schwiderski 2023-03-02 17:48:24 +01:00
parent 70e5892758
commit cc36dd3d2e

@ -17,16 +17,18 @@ description = ""
// A version number to track changes in your mod with. Not used, yet, but good practice to always have anyways. // A version number to track changes in your mod with. Not used, yet, but good practice to always have anyways.
version = "" version = ""
// The Lua files passed in the second parameter of DMF's `new_mod` // File paths to Lua files, as passed in the second parameter of DMF's `new_mod`
resources = { resources = {
// The Lua file to be called by DMF when it initializes your mod. // The Lua file to be called by DMF when it initializes your mod.
init = "" init = ""
// The Lua file returning the mod's DMF configuration.
data = "" data = ""
// The Lua file returning localization strings to be registered with DMF.
localization = "" localization = ""
} }
packages = [ packages = [
// At least one package file to load your files. It doesn't have to be named after your mod's ID value, but it is good practice to do so. // At least one package file to load your files. It doesn't have to be named after your mod's ID value, but it is good practice to do so.
"packages/<id>" "packages/<id>"
] ]
``` ```
@ -37,7 +39,7 @@ The `.package` file supports wildcards, so the most simple version would look li
```sjson ```sjson
lua = [ lua = [
"scripts/mods/<id>/*" "scripts/mods/<id>/*"
] ]
``` ```