Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 2.11 KB

data-setup.md

File metadata and controls

31 lines (23 loc) · 2.11 KB

What's read from GTA IV

Delirium needs GTA IV's data. The mod doesn't have it and never ships it: everything is exported or read from your own copy of the game, on your computer, into <game>\config\activeragdoll.

File Made by From your GTA IV What for
nm\numbers.kv the mod, on its first start with gta= at your game (nm_export_numbers) GTAIV.exe Delirium's ~1100 engine numbers; lets the mod run without the game (patched SDK only)
nm\character.xrt delirium-room --export mod-files pc\data\naturalmotion\Fred.art NM's character: joints, masses, limits, self-collision (nm_init)
nm\build.txt delirium-room --export mod-files the character's ragdoll the body's shape and weight (nm_build_load), fitted to the Minecraft biped
nm\taskparams.txt delirium-room --export mod-files the game's task tuning how bodies react to hits (nm_load_task_params)
nm\getup.txt tools/getup-export pc\anim\anim.img (get_up.wad, get_up_back.wad), playerped.rpf (player.wft) GTA IV's get-up clips, retargeted to the Minecraft rig

Made by the mod as it runs (not from the game): tune.txt, the balance tuning fitted to the Minecraft body.

gta= in activeragdoll.properties

Value Means
your GTA IV folder, or its GTAIV.exe the numbers are read from the game each start; nm\numbers.kv is written once if it's missing
nm/numbers.kv (or any numbers file) the numbers come from the file: GTA IV isn't needed
empty nm\numbers.kv if it's there, otherwise an error saying what to set

Relative paths are taken from the config folder. The file is read as Latin-1, so keep non-ASCII letters out of it.

The numbers file

numbers.kv holds the same numbers Delirium reads from GTAIV.exe, as they are after unlocking: a DKV1 tag, the slot count, each slot's 64-bit and 32-bit word, and a blake3 hash of all that. Loading it fills Delirium's numbers exactly as unlocking from the game does: exporting again from a file-loaded SDK gives the same file byte for byte, and the mod's tests pass the same either way.