feat: Make buildable with dtmt

Move files in the correct file structure, add package definition and
dtmt configuration.
This commit is contained in:
Lucas Schwiderski 2023-02-21 09:47:30 +01:00
parent a11efd275d
commit b0b7395f02
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8
44 changed files with 24 additions and 7 deletions

3
.gitignore vendored
View file

@ -1,6 +1,7 @@
.temp
.vscode
**/*.zip
*.zip
vmf/bundleV1
vmf/bundleV2
node_modules
node_modules

View file

@ -1,7 +1,7 @@
max_line_length = 120
include_files = {
"**/scripts/",
"scripts/",
}
ignore = {

View file

@ -1,5 +0,0 @@
return {
run = function()
return Mods.file.dofile("dmf/scripts/mods/dmf/dmf_loader")
end
}

18
dtmt.cfg Normal file
View 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
View file

@ -0,0 +1,3 @@
lua = [
"scripts/mods/dmf/*"
]