- Build https://github.com/saul/cs2schemagen - note you may need to change the path in main.cpp depending on the game you're building for
- Copy the resulting
server.dll
to:...\Steam\steamapps\common\Deadlock\game\citadel\addons\bin\win64
(you will need to create this directory the first time) - Update the game's
gameinfo.gi
to add theaddons
directory to the search path:// // Search paths are relative to the exe directory\..\ // SearchPaths { + Game citadel/addons Game citadel Game core }
- Launch the game in
-insecure
mode - Open the console and write
schema_dump_all "C:\path-to-your-demofile-net-checkout\src\DemoFile.Game.Deadlock\Schema"
- this will write the JSON files - Start a new game with
map street_test
- Enable
tv_record_immediate 1
, then record a short HLTV demo withtv_record deadlock_hltv
and thentv_stoprecord
- Run
DemoFile.SchemaGen
, passing in the path to both the schema directory (as in step 5) and the path to the recordeddeadlock_hltv.dem
path (from step 7) - This will update the auto-generated
Schema.cs
for the game that you ran for - Commit the changes to a branch.
N.B. before committing, please reformat the JSON files using e.g. JetBrains Rider "Reformat Code" to minimise the diff