HPL3/SOMA/Getting Started/Test Debug and Continue

From Frictional Wiki
< HPL3‎ | SOMA‎ | Getting Started
Revision as of 12:50, 30 July 2026 by TiMan (talk | contribs) (Created page with "{{Hpl3SomaGettingStarted|step=6}} Your mod, map, and first script now work. This final step establishes a repeatable development loop and points to deeper documentation. ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Your mod, map, and first script now work. This final step establishes a repeatable development loop and points to deeper documentation.

Use the development loop

  1. Make one small map or script change.
  2. Save the changed file.
  3. Return to the running game.
  4. Press F5 when the map must be restarted.
  5. If the change fails, press F1 and check Show Error List and Show HPL Log before changing anything else.

For faster testing, launch the mod in development mode with the -mod command-line argument:

Soma.exe -mod "C:\full\path\to\SOMA\mods\MyFirstMod\entry.hpc"

The path passed to -mod is the full path to the mod's entry.hpc. See Developer Commands for -map, -mapfolder, -mappos, and other launch options.

When something breaks

Work backward to the last passing checkpoint:

  1. If the script fails, temporarily remove only your newest script change and read the first relevant error.
  2. If the map fails, reopen it in the editor and check that its split .hpm_* files are present.
  3. If the mod fails before loading the map, compare entry.hpc, resources.cfg, and config/main_init.cfg with the clean MinimalCustomMapMod.
  4. If the editor cannot find mod content, recheck WIPMod.cfg and the (Working on mod) indicator.

See Developer Debug Menu for the full set of debug controls.

Where to go next

Choose documentation by task rather than reading the entire wiki in order:

Final checkpoint

You have completed Getting Started when you can:

  • launch your copied mod;
  • edit and save its map;
  • edit its map script and see the result;
  • reload the map; and
  • locate script errors and the HPL log.