Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrated automatic embedded map config files
This patch enables an option to keep the map config embedded in the map file - with autogenerated content. Any changes to map config data will be written with the map. This includes data by loadnotexture, loadsky, mapmodel, texture, fog, fogcolour, mapsound and shadowyaw. Once enabled, all changes with those commands become persistent to the map. New variables: mapsoundchanged Set to "1" with every command that changes mapsound slots. Should be used to trigger a rebuild of mapsound menus. New/changed commands: mapsound Now returns the number of the created slot. mapmodel Now returns the number of the created slot. texture Now returns the number of the created slot. loadsky Is now a builtin string variable (instead of a command), which means, that the current value can easily be retrieved or edited. The skymap name in the argument is now required to start with "textures/skymaps/" - but that part of the path can be omitted. examples: loadsky steini/steini2 (loads textures/skymaps/steini/steini2_*) loadsky textures/skymaps/steini/steini2 (same) loadsky ../foo/bar (loads textures/foo/bar_*) echo $loadsky getnotexture Returns the current "notexture" path. (Set by loadnotexture) dumpmapconfig (available for debug binaries only) Writes the current automatically generated map config to dumpmapconfig.txt. DOCREF mapsoundchanged mapsound mapmodel texture loadsky getnotexture
- Loading branch information
Showing
12 changed files
with
192 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.