Update 'Migrating from loose files'

Lucas Schwiderski 2023-03-28 22:44:47 +02:00
parent 8f9f19043b
commit 98f0765738

@ -29,7 +29,7 @@ The `.package` file supports wildcards, so the most simple version would look li
```sjson
lua = [
"scripts/mods/<id>/*"
"scripts/mods/DMF/*"
]
```
@ -37,19 +37,19 @@ A suggested final file structure looks as follows:
```none
<path/to/new/folder>
└──<id>
└──DMF
├──dtmt.cfg
├──packages
│ └──mods
│ └──<id>.package
│ └──DMF.package
└──scripts
└──mods
└──<id>
└──DMF
├──data.lua
├──init.lua
└──localization.lua
```
All additional Lua files can then be dropped into `scripts/mods/<id>` (subdirectories are supported) and can be `require`d in-game with the full path, e.g. `require("scripts/mods/<id>/my_extra_file")`.
All additional Lua files can then be dropped into `scripts/mods/DMF` (sub-directories are supported) and can be `require`d in-game with the full path, e.g. `require("scripts/mods/DMF/my_extra_file")`.
Modding veterans from VT2 may recognize this file structure 🙂