chore: add Teal/VS Code config, tl check workflow and modding notes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86a48e75c9
commit
0ef87ebab7
5 files changed
+30
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
tlconfig.lua
|
||||||
|
.claude/settings.local.json
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"pdesaulniers.vscode-teal"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -11,3 +11,10 @@ Default five-role vocabulary (`needs-triage`, `needs-info`, `ready-for-agent`, `
|
|||||||
### Domain docs
|
### Domain docs
|
||||||
|
|
||||||
Single-context: one `CONTEXT.md` + `docs/adr/` at the repo root. See `docs/agents/domain.md`.
|
Single-context: one `CONTEXT.md` + `docs/adr/` at the repo root. See `docs/agents/domain.md`.
|
||||||
|
|
||||||
|
## Modding
|
||||||
|
|
||||||
|
- The mod is `mod/` (junctioned into the game's `staging_area` as `haylan_tf3_overtake`). Scripts are Teal (`.tl`, typed Lua); `mod.json` goes at the root of `mod/`.
|
||||||
|
- Type-check with `tl check mod/<file>.tl` (run from the repo root; it reads `tlconfig.lua`). `tl` is type-check only; whether the game compiles `.tl` itself is undocumented.
|
||||||
|
- `tlconfig.lua` and `.claude/settings.local.json` are machine-local and gitignored. Copy `tlconfig.template.lua` to `tlconfig.lua` and replace `<tf3_install_folder>` with the game's install path (here `D:/SteamLibrary/steamapps/common/Transport Fever 3/`).
|
||||||
|
- Authoritative API types: `<install>/api/tealdef` and `<install>/base/tealdef`. Read them, and the offline docs in `docs/reference/`, before guessing an API. Research notes are in `docs/research/`; vocabulary in `CONTEXT.md`.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
require "api_def"
|
||||||
|
require "content_def"
|
||||||
|
|
||||||
|
-- list your mods here, if you provide your own d.tl definitions
|
||||||
|
-- require "example_mod_1"
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
return {
|
||||||
|
include_dir = {
|
||||||
|
-- ensure to set proper paths for the definitions for the base game
|
||||||
|
"<tf3_install_folder>api/tealdef",
|
||||||
|
"<tf3_install_folder>base/tealdef",
|
||||||
|
|
||||||
|
-- list your mods here, if you provide your own d.tl definitions
|
||||||
|
-- "example_mod_1",
|
||||||
|
},
|
||||||
|
global_env_def = "all_def"
|
||||||
|
}
|
||||||
Reference in new issue
Block a user