Please sign in to comment.
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 with 192 additions and 39 deletions.
- +1 −1 .gitignore
- +1 −1 config/menus_edit.cfg
- +10 −0 source/src/audiomanager.cpp
- +5 −0 source/src/cube.h
- +5 −1 source/src/protos.h
- +3 −2 source/src/rendergl.cpp
- +13 −7 source/src/rendermodel.cpp
- +50 −15 source/src/texture.cpp
- +1 −1 source/src/vertmodel.h
- +2 −0 source/src/world.cpp
- +17 −1 source/src/world.h
- +84 −10 source/src/worldio.cpp
Oops, something went wrong.