lev_comp

From NetHackWiki
Jump to navigation Jump to search

lev_comp is the NetHack special level compiler. It turns the text-format .des-files in the dat-dir into binary .lev-files which will be loaded by NetHack when making the special levels.

To compile a .des-file into a .lev-file you run the lev_comp executable with the lev-files given as parameters, and lev_comp will create the .lev-files in the directory where you ran it. Usually you want to run it in the dat-directory where the lev-files are. For example, on linux, the following command run from the dat-directory will compile all levels:

../util/lev_comp *.des

The des-file format (NetHack 3.4.3) is actually not a programming language, as NetHack always executes the different commands in the same order, eg. traps are created before monsters, which are created before objects, even if they're in a different order in the des-file.

This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.