From cc36dd3d2e1e3a3820f91b740d0da419e5368e4e Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Thu, 2 Mar 2023 17:48:24 +0100 Subject: [PATCH] Update 'Migrating from loose files' --- Migrating-from-loose-files.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Migrating-from-loose-files.md b/Migrating-from-loose-files.md index 56992b2..1b9298b 100644 --- a/Migrating-from-loose-files.md +++ b/Migrating-from-loose-files.md @@ -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. 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 = { - // 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 = "" + // The Lua file returning the mod's DMF configuration. data = "" + // The Lua file returning localization strings to be registered with DMF. localization = "" } 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/" ] ``` @@ -37,7 +39,7 @@ The `.package` file supports wildcards, so the most simple version would look li ```sjson lua = [ - "scripts/mods//*" + "scripts/mods//*" ] ```