upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/modding.md
diff options
context:
space:
mode:
authorRafael <rafaelalvesp2005@gmail.com>2026-11-23 15:36:26 -0300
committerRafael <rafaelalvesp2005@gmail.com>2026-11-23 15:36:26 -0300
commit63f0e0dea3a9d44201db408c4e2c3f2f5b2b94d6 (patch)
tree86f0dcad8070e2a3a693ef4897aa83950cfeb224 /docs/modding.md
parentf78f7d6a2a9364cb128c03ac539fe540d5c70df1 (diff)
parent6dda0630bd6fc0514baadb94fb98e36bd7d64c0b (diff)
Merge main into fix/walk-bink_names
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/modding.md')
-rw-r--r--docs/modding.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/modding.md b/docs/modding.md
index 3414923c5..5ac4bd88c 100644
--- a/docs/modding.md
+++ b/docs/modding.md
@@ -54,6 +54,10 @@ written `0x…`. A swap is one step: a model swapped to another that is itself s
54again, so two mods cannot loop. `when` is `always`; a narrower condition (one mission, one cutscene) is 54again, so two mods cannot loop. `when` is `always`; a narrower condition (one mission, one cutscene) is
55refused until a hook provides the game's mission state, so a mod never silently does more than it says. 55refused until a hook provides the game's mission state, so a mod never silently does more than it says.
56 56
57`mod.json` is UTF-8. A byte-order mark in front is accepted (Notepad's "UTF-8 with BOM", Windows
58PowerShell 5.1's `-Encoding utf8`). A UTF-16 file, which PowerShell 5.1's `>` writes, is skipped with
59`mod.json is UTF-16; save it as UTF-8`.
60
57The format is in `runtime/src/mods.h`; `runtime/test/mods_test.cpp` (ctest `mods`) covers it. 61The format is in `runtime/src/mods.h`; `runtime/test/mods_test.cpp` (ctest `mods`) covers it.
58 62
59## The Mandy mod (`mods/mandy_prison_intro`) 63## The Mandy mod (`mods/mandy_prison_intro`)
@@ -126,7 +130,7 @@ the engine, which shipped a first-person mode), a hit-reaction `RecoveryDirectio
126and a `firstpersonshooter_hud` UI texture. So the mod switches on a mode the engine has rather than building 130and a `firstpersonshooter_hud` UI texture. So the mod switches on a mode the engine has rather than building
127a camera. Whether the game exposes it to the player is not known. 131a camera. Whether the game exposes it to the player is not known.
128 132
129**Assumptions to confirm in the executable:** that the view mode is chosen through one getter of the form 133**ASSUMPTION:** three things to confirm in the executable: that the view mode is chosen through one getter of the form
130`mode = get(context)`, that context 0 is on foot, and that first person is enum value 4 (GTA V's 134`mode = get(context)`, that context 0 is on foot, and that first person is enum value 4 (GTA V's
131`camViewModeSettings` order: third person near, medium, far, cinematic, first person). All three are 135`camViewModeSettings` order: third person near, medium, far, cinematic, first person). All three are
132settings in `mod.json`, so a different answer changes the manifest, not the runtime. 136settings in `mod.json`, so a different answer changes the manifest, not the runtime.