Difference between revisions of "Lev comp"
(first info) |
m ({{DISPLAYTITLE:lev_comp}}) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{DISPLAYTITLE:lev_comp}} | ||
'''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 level]]s. | '''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 level]]s. | ||
+ | |||
+ | 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. [[trap]]s are created before [[monster]]s, which are created before [[object]]s, even if they're in a different order in the des-file. | The [[des-file format]] is actually not a programming language, as NetHack always executes the different commands in the same order, eg. [[trap]]s are created before [[monster]]s, which are created before [[object]]s, even if they're in a different order in the des-file. | ||
+ | |||
+ | [[Category:Annotations]] |
Latest revision as of 03:45, 18 October 2012
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.