-// Example configuration file, my personal bindings - Xolatile.
+// Example configuration file, my personal bindings - xolatile.
// This file will be executed every time the game is ran.
-exec custommapsmenu.cfg // Wide custom maps menu.
+name xolatile
bind e [setweapon 1] // Shotgun.
bind q [setweapon 2] // Chaingun.
+++ /dev/null
-// Custom map menu, ported from Sauerbraten, 7Year aka Xolatile.
-
-octabase = "^f7"
-octamain = "^f1"
-unmapsx = 4
-unmapsy = 24
-
-custommaps = ""
-
-loopfiles curmap "packages/maps" "ogz" [
- if (< (indexof $allmaps $curmap) 0) [
- custommaps = (concat $custommaps $curmap)
- ]
-]
-
-sy_nume = (listlen $custommaps)
-
-showcustommaps = [sy_remaps; showgui sy_unmaps]
-
-sy_remaps = [
- custommaps = ""
- loopfiles curmap "packages/maps" "ogz" [
- if (< (indexof $allmaps $curmap) 0) [
- custommaps = (concat $custommaps $curmap)
- ]
- ]
- custommaps = (sortlist $custommaps x y [<=s $x $y])
- amountxy = (+ (div (listlen $custommaps) $unmapsy) 1)
- loop syxy $amountxy [
- (concatword "custommaps" $syxy) = ""
- ]; syxy = 0
- loop syxy $amountxy [
- (concatword "custommaps" $syxy)
- loop unto $unmapsy [
- (concatword "custommaps" $syxy) = (concat $(concatword "custommaps" $syxy) (at $custommaps (+ (* $unmapsy $syxy) $unto)))
- ]
- ]; syxy = 0; unto = 0
- sy_nume = (listlen $custommaps)
-]
-
-newgui sy_unmaps [
- if (mod $amountxy $unmapsx) [
- sy_unpage = (+ (div $amountxy $unmapsx) 1)
- ] [
- sy_unpage = (div $amountxy $unmapsx)
- ]
- loop syi $sy_unpage [
- guilist [
- loop syj $unmapsx [
- if (< (+ (* $syi $unmapsx) $syj) $amountxy) [
- guistrut $unmapsy 1
- guilist [
- guistrut 27 1
- looplist unto $(concatword "custommaps" (+ (* $syi $unmapsx) $syj )) [
- guibutton (concatword $octabase $unto) (concat map $unto) "cube"
- ]
- ]
- ]
- ]
- guibar
- if (< (+ (* $syi $unmapsx) $syj) $amountxy) [
- guiimage (concatword "packages/maps/" (strreplace $guirolloveraction "map " "") ".jpg") $guirolloveraction 6 1 "data/cube.png"
- ]
- ]
- if (= (+ $syi 1) $sy_unpage) [
-
- ] [
- guitab (concatword $octamain (+ $syi 2))
- ]
- ]
-] (concatword $octamain "Custom Maps (" $sy_nume ")")
+++ /dev/null
-//////////////////////////////////////////////////////////////////
-//Texture blending
-
-addblendbrush "Circle 8px soft" "packages/blendbrush/circle_8_soft.png"
-addblendbrush "Circle 8px hard" "packages/blendbrush/circle_8_hard.png"
-addblendbrush "Circle 8px solid" "packages/blendbrush/circle_8_solid.png"
-addblendbrush "Circle 16px soft" "packages/blendbrush/circle_16_soft.png"
-addblendbrush "Circle 16px hard" "packages/blendbrush/circle_16_hard.png"
-addblendbrush "Circle 16px solid" "packages/blendbrush/circle_16_solid.png"
-addblendbrush "Circle 32px soft" "packages/blendbrush/circle_32_soft.png"
-addblendbrush "Circle 32px hard" "packages/blendbrush/circle_32_hard.png"
-addblendbrush "Circle 32px solid" "packages/blendbrush/circle_32_solid.png"
-addblendbrush "Circle 64px soft" "packages/blendbrush/circle_64_soft.png"
-addblendbrush "Circle 64px hard" "packages/blendbrush/circle_64_hard.png"
-addblendbrush "Circle 64px solid" "packages/blendbrush/circle_64_solid.png"
-addblendbrush "Circle 128px soft" "packages/blendbrush/circle_128_soft.png"
-addblendbrush "Circle 128px hard" "packages/blendbrush/circle_128_hard.png"
-addblendbrush "Circle 128px solid" "packages/blendbrush/circle_128_solid.png"
-addblendbrush "Noise 64px" "packages/blendbrush/noise_64.png"
-addblendbrush "Noise 128px" "packages/blendbrush/noise_128.png"
-addblendbrush "Square 16px hard" "packages/blendbrush/square_16_hard.png"
-addblendbrush "Square 16px solid" "packages/blendbrush/square_16_solid.png"
-addblendbrush "Square 32px hard" "packages/blendbrush/square_32_hard.png"
-addblendbrush "Square 32px solid" "packages/blendbrush/square_32_solid.png"
-addblendbrush "Square 64px hard" "packages/blendbrush/square_64_hard.png"
-addblendbrush "Square 64px solid" "packages/blendbrush/square_64_solid.png"
-addblendbrush "Gradient 16px" "packages/blendbrush/gradient_16.png"
-addblendbrush "Gradient 32px" "packages/blendbrush/gradient_32.png"
-addblendbrush "Gradient 64px" "packages/blendbrush/gradient_64.png"
-addblendbrush "Gradient 128px" "packages/blendbrush/gradient_128.png"
-
--- /dev/null
+//////////////////////////////////////////////////////////////////
+//Texture blending
+
+addblendbrush "Circle 8px soft" "packages/blendbrush/circle_8_soft.png"
+addblendbrush "Circle 8px hard" "packages/blendbrush/circle_8_hard.png"
+addblendbrush "Circle 8px solid" "packages/blendbrush/circle_8_solid.png"
+addblendbrush "Circle 16px soft" "packages/blendbrush/circle_16_soft.png"
+addblendbrush "Circle 16px hard" "packages/blendbrush/circle_16_hard.png"
+addblendbrush "Circle 16px solid" "packages/blendbrush/circle_16_solid.png"
+addblendbrush "Circle 32px soft" "packages/blendbrush/circle_32_soft.png"
+addblendbrush "Circle 32px hard" "packages/blendbrush/circle_32_hard.png"
+addblendbrush "Circle 32px solid" "packages/blendbrush/circle_32_solid.png"
+addblendbrush "Circle 64px soft" "packages/blendbrush/circle_64_soft.png"
+addblendbrush "Circle 64px hard" "packages/blendbrush/circle_64_hard.png"
+addblendbrush "Circle 64px solid" "packages/blendbrush/circle_64_solid.png"
+addblendbrush "Circle 128px soft" "packages/blendbrush/circle_128_soft.png"
+addblendbrush "Circle 128px hard" "packages/blendbrush/circle_128_hard.png"
+addblendbrush "Circle 128px solid" "packages/blendbrush/circle_128_solid.png"
+addblendbrush "Noise 64px" "packages/blendbrush/noise_64.png"
+addblendbrush "Noise 128px" "packages/blendbrush/noise_128.png"
+addblendbrush "Square 16px hard" "packages/blendbrush/square_16_hard.png"
+addblendbrush "Square 16px solid" "packages/blendbrush/square_16_solid.png"
+addblendbrush "Square 32px hard" "packages/blendbrush/square_32_hard.png"
+addblendbrush "Square 32px solid" "packages/blendbrush/square_32_solid.png"
+addblendbrush "Square 64px hard" "packages/blendbrush/square_64_hard.png"
+addblendbrush "Square 64px solid" "packages/blendbrush/square_64_solid.png"
+addblendbrush "Gradient 16px" "packages/blendbrush/gradient_16.png"
+addblendbrush "Gradient 32px" "packages/blendbrush/gradient_32.png"
+addblendbrush "Gradient 64px" "packages/blendbrush/gradient_64.png"
+addblendbrush "Gradient 128px" "packages/blendbrush/gradient_128.png"
+
--- /dev/null
+// Custom map menu, ported from Sauerbraten, 7Year aka Xolatile.
+
+octabase = "^f7"
+octamain = "^f1"
+unmapsx = 4
+unmapsy = 24
+
+custommaps = ""
+
+loopfiles curmap "packages/maps" "ogz" [
+ if (< (indexof $allmaps $curmap) 0) [
+ custommaps = (concat $custommaps $curmap)
+ ]
+]
+
+sy_nume = (listlen $custommaps)
+
+showcustommaps = [sy_remaps; showgui sy_unmaps]
+
+sy_remaps = [
+ custommaps = ""
+ loopfiles curmap "packages/maps" "ogz" [
+ if (< (indexof $allmaps $curmap) 0) [
+ custommaps = (concat $custommaps $curmap)
+ ]
+ ]
+ custommaps = (sortlist $custommaps x y [<=s $x $y])
+ amountxy = (+ (div (listlen $custommaps) $unmapsy) 1)
+ loop syxy $amountxy [
+ (concatword "custommaps" $syxy) = ""
+ ]; syxy = 0
+ loop syxy $amountxy [
+ (concatword "custommaps" $syxy)
+ loop unto $unmapsy [
+ (concatword "custommaps" $syxy) = (concat $(concatword "custommaps" $syxy) (at $custommaps (+ (* $unmapsy $syxy) $unto)))
+ ]
+ ]; syxy = 0; unto = 0
+ sy_nume = (listlen $custommaps)
+]
+
+newgui sy_unmaps [
+ if (mod $amountxy $unmapsx) [
+ sy_unpage = (+ (div $amountxy $unmapsx) 1)
+ ] [
+ sy_unpage = (div $amountxy $unmapsx)
+ ]
+ loop syi $sy_unpage [
+ guilist [
+ loop syj $unmapsx [
+ if (< (+ (* $syi $unmapsx) $syj) $amountxy) [
+ guistrut $unmapsy 1
+ guilist [
+ guistrut 27 1
+ looplist unto $(concatword "custommaps" (+ (* $syi $unmapsx) $syj )) [
+ guibutton (concatword $octabase $unto) (concat map $unto) "cube"
+ ]
+ ]
+ ]
+ ]
+ guibar
+ if (< (+ (* $syi $unmapsx) $syj) $amountxy) [
+ guiimage (concatword "packages/maps/" (strreplace $guirolloveraction "map " "") ".jpg") $guirolloveraction 6 1 "data/cube.png"
+ ]
+ ]
+ if (= (+ $syi 1) $sy_unpage) [
+
+ ] [
+ guitab (concatword $octamain (+ $syi 2))
+ ]
+ ]
+] (concatword $octamain "Custom Maps (" $sy_nume ")")
--- /dev/null
+// Default settings for maps, executed each time the map is loaded.
+
+if (strcmp $skybox "") [
+ skybox "skyboxes/black"
+]
+
+materialreset
+
+texture water "materials/water.png"
+texture 1 "materials/waterfall.png"
+texture 1 "materials/water_n.png"
+texture 1 "materials/water_dudv.png"
+texture 1 "materials/waterfall_n.png"
+texture 1 "materials/waterfall_dudv.png"
+
+texture lava "materials/lava.png" 0 0 0 0.5
+texture 1 "materials/lava.png" 0 0 0 0.5
+
+texturereset
+
+ setshader "stdworld"
+ texture 0 "textures/sky.png"
+ texture 0 "textures/default.png"
+
+ exec "packages/textures/ex/package.cfg"
+
+ setshader "stdworld"
+++ /dev/null
-// default settings for maps
-
-// on every map load, this file will be executed, followed by
-// "package.cfg" in the package dir of the map, and "<mapname>.cfg",
-// which you can use to override the settings in this file.
-
-// the skybox for this map:
-if (strcmp $skybox "") [
- skybox "skyboxes/black"
-]
-
-materialreset
-texture water "textures/water2.png" // water surface
-texture 1 "textures/waterfall.png" // waterfall
-texture 1 "textures/watern.png" // water normals
-texture 1 "textures/waterdudv.png" // water distortion
-texture 1 "textures/waterfalln.png" // waterfall normals
-texture 1 "textures/waterfalldudv.png" // waterfall distortion
-
-texture lava "textures/floor_lava2.png" 0 0 0 2 // lava surface
-texture 1 "textures/floor_lava2.png" 0 0 0 2 // falling lava
-
-// texture definitions for the map:
-texturereset // starts the texture slot/index at 0
- setshader stdworld // use default world shader unless specified otherwise
- texture 0 "textures/sky.png" // dummy sky texture
- texture 0 "textures/default.png" // default geometry texture
-
- exec "packages/textures/ex/package.cfg"
-
- // for cfgs that don't set shaders...
- setshader stdworld
--- /dev/null
+// fps specific cfg stuff goes here
+
+togglezoom = [ zoom (if (= $zoom 1) -1 1) ]
+sayteamcommand = [inputcommand (if (>= $numargs 1) [result $arg1] [result ""]) [sayteam $commandbuf] "[team]"]
+
+mapcomplete = [ complete $arg1 packages/maps ogz ]
+mapcomplete map
+
+modenames = "ffa coop teamplay insta instateam effic efficteam"
+loop i (listlen $modenames) [
+ mname = (at $modenames $i)
+ alias $mname [ if (mode @i) [if (> $numargs 0) [map $arg1] [map]] ]
+ mapcomplete $mname
+]
+
+demo = [ stopdemo; if (mode -1) [if (> $numargs 0) [map $arg1] [map]] ]
+varcomplete demo demodir dmo
+
+playermodelnum = 1
+
+playermodeldir0 = "mrfixit"
+playermodelicon0 = "mrfixit"
+playermodelname0 = "Mr. Fixit"
+playermodelstory0 = [Which orc do you choose when the mission calls for an all-purpose wrecking machine? Who do you call when the odds are stacked against you? Mr. Fixit, that's who. Gifted with the ability to perform deconstructive surgery with any weapon, this orc gets the job done fast and with extreme prejudice.]
+
+playermodeldir = [getalias (concatword "playermodeldir" (if (> $numargs 0) [result $arg1] [result $playermodel]))]
+playermodelicon = [getalias (concatword "playermodelicon" (if (> $numargs 0) [result $arg1] [result $playermodel]))]
+playermodelname = [getalias (concatword "playermodelname" (if (> $numargs 0) [result $arg1] [result $playermodel]))]
+playermodelstory = [getalias (concatword "playermodelstory" (if (> $numargs 0) [result $arg1] [result $playermodel]))]
+
+playsong = [ music (concatword "music/1.ogg") playsong ]
+++ /dev/null
-// fps specific cfg stuff goes here
-
-togglezoom = [ zoom (if (= $zoom 1) -1 1) ]
-sayteamcommand = [inputcommand (if (>= $numargs 1) [result $arg1] [result ""]) [sayteam $commandbuf] "[team]"]
-
-mapcomplete = [ complete $arg1 packages/maps ogz ]
-mapcomplete map
-
-modenames = "ffa coop teamplay insta instateam effic efficteam"
-loop i (listlen $modenames) [
- mname = (at $modenames $i)
- alias $mname [ if (mode @i) [if (> $numargs 0) [map $arg1] [map]] ]
- mapcomplete $mname
-]
-
-demo = [ stopdemo; if (mode -1) [if (> $numargs 0) [map $arg1] [map]] ]
-varcomplete demo demodir dmo
-
-playermodelnum = 1
-
-playermodeldir0 = "mrfixit"
-playermodelicon0 = "mrfixit"
-playermodelname0 = "Mr. Fixit"
-playermodelstory0 = [Which orc do you choose when the mission calls for an all-purpose wrecking machine? Who do you call when the odds are stacked against you? Mr. Fixit, that's who. Gifted with the ability to perform deconstructive surgery with any weapon, this orc gets the job done fast and with extreme prejudice.]
-
-playermodeldir = [getalias (concatword "playermodeldir" (if (> $numargs 0) [result $arg1] [result $playermodel]))]
-playermodelicon = [getalias (concatword "playermodelicon" (if (> $numargs 0) [result $arg1] [result $playermodel]))]
-playermodelname = [getalias (concatword "playermodelname" (if (> $numargs 0) [result $arg1] [result $playermodel]))]
-playermodelstory = [getalias (concatword "playermodelstory" (if (> $numargs 0) [result $arg1] [result $playermodel]))]
-
-playsong = [ music (concatword "music/1.ogg") playsong ]
logoutf("init: gl");
gl_checkextensions();
gl_init();
- notexture = textureload("packages/textures/notexture.png");
+ notexture = textureload("packages/textures/texture_error.png");
if(!notexture) fatal("could not find core textures");
logoutf("init: console");
execfile("data/sounds.cfg");
execfile("data/menus.cfg");
execfile("data/heightmap.cfg");
- execfile("data/blendbrush.cfg");
- execfile("data/game_fps.cfg");
+ execfile("data/brushes.cfg");
+ execfile("data/game.cfg");
+ execfile("data/custom_maps_menu.cfg");
if(game::savedservers()) execfile(game::savedservers(), false);
identflags |= IDF_PERSIST;
if(usecfg)
{
identflags |= IDF_OVERRIDDEN;
- execfile("data/default_map_settings.cfg", false);
+ execfile("data/default_map.cfg", false);
identflags &= ~IDF_OVERRIDDEN;
}
int numvars;
int numvslots;
};
-
+
struct compatheader // map file format header
{
char magic[4]; // "OCTA"
#define WATER_AMPLITUDE 0.4f
#define WATER_OFFSET 1.1f
-enum
-{
+enum
+{
MATSURF_NOT_VISIBLE = 0,
MATSURF_VISIBLE,
MATSURF_EDIT_ONLY
clearmainmenu();
identflags |= IDF_OVERRIDDEN;
- execfile("data/default_map_settings.cfg", false);
+ execfile("data/default_map.cfg", false);
execfile(cfgname, false);
identflags &= ~IDF_OVERRIDDEN;