feat: Make buildable with dtmt
Move files in the correct file structure, add package definition and dtmt configuration.
This commit is contained in:
parent
a11efd275d
commit
b0b7395f02
44 changed files with 24 additions and 7 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
|||
.temp
|
||||
.vscode
|
||||
**/*.zip
|
||||
*.zip
|
||||
vmf/bundleV1
|
||||
vmf/bundleV2
|
||||
node_modules
|
||||
node_modules
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
max_line_length = 120
|
||||
|
||||
include_files = {
|
||||
"**/scripts/",
|
||||
"scripts/",
|
||||
}
|
||||
|
||||
ignore = {
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
return {
|
||||
run = function()
|
||||
return Mods.file.dofile("dmf/scripts/mods/dmf/dmf_loader")
|
||||
end
|
||||
}
|
18
dtmt.cfg
Normal file
18
dtmt.cfg
Normal file
|
@ -0,0 +1,18 @@
|
|||
id = "dmf"
|
||||
name = "Darktide Mod Framework"
|
||||
description = "An open-source, community-run framework that provides enhanced Darktide modding support."
|
||||
version = "2023-02-18"
|
||||
|
||||
// DMF is special and handles `data` and `localization` internally, as it is what sets up these systems
|
||||
// in the first place. But to keep mod tools and their config format simple, we don't allow
|
||||
// omitting these values completely just for one exception.
|
||||
// Instead we just define an empty string, which will be ingored by the tools.
|
||||
resources = {
|
||||
init = "scripts/mods/dmf/dmf_loader"
|
||||
data = ""
|
||||
localization = ""
|
||||
}
|
||||
|
||||
packages = [
|
||||
"packages/dmf"
|
||||
]
|
3
packages/dmf.package
Normal file
3
packages/dmf.package
Normal file
|
@ -0,0 +1,3 @@
|
|||
lua = [
|
||||
"scripts/mods/dmf/*"
|
||||
]
|
Loading…
Add table
Reference in a new issue