Fandom

Wikihack

Lev comp

2,034pages on
this wiki
Add New Page
Talk0 Share

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 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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki