First thing to understand is that the map generation requires a theme file. The complete syntax is a little verbose, but the sample theme file below gives you an idea. I will try to completely document the syntax later.
The theme file is encrypted, just like many other Nox files. I wrote a quick python script (https://github.com/NoxTools/noxcrypt/re ... xcrypt.exe) which you can use to encrypt theme files.
Once it is encrypted, save the theme into \mapgen\, you should load up Nox; and make sure that it is Administrator or has permissions to write to \maps\. Start a Local Network, multiplayer game, and in the console type:
- Code: Select all
racoiaws
load #foobar
Obviously, you should change the foobar part to the name of your theme file. The # is what indicates that you want to generate a map instead of loading a normal map. If everything goes smoothly, you will now be in your new map and it will have been saved in your maps folder as $foobar.
Sample theme file (foobar.thm)
- Code: Select all
//
// This file should be encrypted then saved in your Nox directory as \mapgen\foobar.thm. The filename determines the map name. Keep under 8 chars.
//
AMBIENT_LIGHT 255 255 255
DECOR
ROOM foo
FREQUENCY COMMON
WALL_FLOOR AncientRuin AncientRuin
END
DECOR
HALL bar
FREQUENCY COMMON
WALL_FLOOR AncientRuin AncientRuin
END
// End of file
Sample theme file with sample generated map is attached.