Add newer UDMF config

This commit is contained in:
Sally Coolatta 2022-10-10 22:45:35 -04:00
parent 2ac062e5b3
commit b2c4fa74f9
10 changed files with 2645 additions and 6400 deletions

View file

@ -1,77 +0,0 @@
// Default lump name for new map
defaultlumpname = "MAP01";
//GZDB specific. Don't try to load lumps that don't exist.
basegame = "Doom";
//Sky textures for vanilla maps
defaultskytextures
{
SKY1 = "MAP01,MAP02,MAP03,MAP33,MAP50,MAP60,MAPF0,MAPM0";
SKY2 = "MAPM7,MAPMB";
SKY4 = "MAP04,MAP06,MAP61,MAPF6,MAPM1";
SKY6 = "MAP05,MAP51,MAPMA";
SKY7 = "MAPM2,MAPM5";
SKY8 = "MAP07,MAP08,MAP09,MAP52,MAP62,MAPF1";
SKY10 = "MAP10,MAP12,MAP53,MAP63,MAPM3";
SKY11 = "MAP11,MAPF7";
SKY13 = "MAP13,MAP64";
SKY14 = "MAP14";
SKY15 = "MAP15,MAP54";
SKY17 = "MAP70";
SKY20 = "MAP32,MAP55,MAP65,MAPF2,MAPF5";
SKY21 = "MAPM4";
SKY22 = "MAP22,MAP23,MAP25,MAP26,MAP27,MAP56,MAP66,MAPF4,MAPM6";
SKY30 = "MAP30";
SKY31 = "MAP31";
SKY35 = "MAP42";
SKY40 = "MAP41,MAP71,MAPM9";
SKY55 = "MAPF3,MAPM8";
SKY68 = "MAPF8";
SKY99 = "MAP57,MAPZ0";
SKY159 = "MAP16";
SKY172 = "MAP40";
SKY300 = "MAP72";
SKY301 = "MAP73";
}
// Skill levels
skills
{
0 = "Easy";
1 = "Normal";
2 = "Hard";
3 = "Master";
}
// Skins
skins
{
sonic;
tails;
knuckles;
amy;
mighty;
fang;
eggman;
metalsonic;
motobug;
}
// Gametypes
gametypes
{
-1 = "Single Player";
0 = "Race";
1 = "Battle";
}
// Texture loading options
defaultwalltexture = "GFZROCK";
defaultfloortexture = "GFZFLR01";
defaultceilingtexture = "F_SKY1";
// Default texture sets
// (these are not required, but useful for new users)
texturesets
{
}

View file

@ -0,0 +1,53 @@
// Default lump name for new map
defaultlumpname = "MAPNAME";
//GZDB specific. Don't try to load lumps that don't exist.
basegame = "Doom";
//Sky textures for vanilla maps
defaultskytextures
{
SKY1 = "MAP01";
}
// Skill levels
skills
{
0 = "Easy";
1 = "Normal";
2 = "Hard";
3 = "Master";
}
// Skins
skins
{
sonic;
tails;
knuckles;
amy;
mighty;
fang;
eggman;
metalsonic;
motobug;
}
// Gametypes
gametypes
{
-1 = "Grand Prix";
0 = "Race";
1 = "Battle";
}
// Texture loading options
defaultwalltexture = "DEV_OC3";
defaultfloortexture = "DEV_GZ2";
defaultceilingtexture = "F_SKY1";
// Default texture sets
// (these are not required, but useful for new users)
texturesets
{
}

View file

@ -1,105 +0,0 @@
sectortypes
{
0 = "Normal";
1 = "Damage";
2 = "Damage (Water)";
3 = "Damage (Fire)";
4 = "Damage (Electrical)";
5 = "Spikes";
6 = "Death Pit (Camera Tilt)";
7 = "Death Pit (No Camera Tilt)";
8 = "Instant Kill";
9 = "Ring Drainer (Floor Touch)";
10 = "Ring Drainer (Anywhere in Sector)";
11 = "Special Stage Damage";
12 = "Space Countdown";
13 = "Ramp Sector (double step-up/down)";
14 = "Non-Ramp Sector (no step-down)";
15 = "Bouncy FOF <deprecated>";
16 = "Trigger Line Ex. (Pushable Objects)";
32 = "Trigger Line Ex. (Anywhere, All Players)";
48 = "Trigger Line Ex. (Floor Touch, All Players)";
64 = "Trigger Line Ex. (Anywhere in Sector)";
80 = "Trigger Line Ex. (Floor Touch)";
96 = "Trigger Line Ex. (Emerald Check) <deprecated>";
112 = "Trigger Line Ex. (NiGHTS Mare) <deprecated>";
128 = "Check for Linedef Executor on FOFs";
144 = "Egg Capsule";
160 = "Special Stage Time/Spheres Parameters <deprecated>";
176 = "Custom Global Gravity <deprecated>";
1280 = "Speed Pad";
4096 = "Star Post Activator";
8192 = "Exit/Special Stage Pit/Return Flag";
12288 = "CTF Red Team Base";
16384 = "CTF Blue Team Base";
20480 = "Fan Sector";
24576 = "Super Sonic Transform";
28672 = "Force Spin";
32768 = "Zoom Tube Start";
36864 = "Zoom Tube End";
40960 = "Circuit Finish Line";
45056 = "Rope Hang";
49152 = "Intangible to the Camera";
}
gen_sectortypes
{
first
{
0 = "Normal";
1 = "Damage";
2 = "Damage (Water)";
3 = "Damage (Fire)";
4 = "Damage (Electrical)";
5 = "Spikes";
6 = "Death Pit (Camera Tilt)";
7 = "Death Pit (No Camera Tilt)";
8 = "Instant Kill";
9 = "Ring Drainer (Floor Touch)";
10 = "Ring Drainer (Anywhere in Sector)";
11 = "Special Stage Damage";
12 = "Space Countdown";
13 = "Ramp Sector (double step-up/down)";
14 = "Non-Ramp Sector (no step-down)";
15 = "Bouncy FOF <deprecated>";
}
second
{
0 = "Normal";
16 = "Trigger Line Ex. (Pushable Objects)";
32 = "Trigger Line Ex. (Anywhere, All Players)";
48 = "Trigger Line Ex. (Floor Touch, All Players)";
64 = "Trigger Line Ex. (Anywhere in Sector)";
80 = "Trigger Line Ex. (Floor Touch)";
96 = "Trigger Line Ex. (Emerald Check) <deprecated>";
112 = "Trigger Line Ex. (NiGHTS Mare) <deprecated>";
128 = "Check for Linedef Executor on FOFs";
144 = "Egg Capsule";
160 = "Special Stage Time/Spheres Parameters <deprecated>";
176 = "Custom Global Gravity <deprecated>";
}
third
{
0 = "Normal";
1280 = "Speed Pad";
}
fourth
{
0 = "Normal";
4096 = "Star Post Activator";
8192 = "Exit/Special Stage Pit/Return Flag";
12288 = "CTF Red Team Base";
16384 = "CTF Blue Team Base";
20480 = "Fan Sector";
24576 = "Super Sonic Transform";
28672 = "Force Spin";
32768 = "Zoom Tube Start";
36864 = "Zoom Tube End";
40960 = "Circuit Finish Line";
45056 = "Rope Hang";
49152 = "Intangible to the Camera";
}
}

View file

@ -6,7 +6,7 @@ common
// Enables support for long (> 8 chars) texture names // Enables support for long (> 8 chars) texture names
// WARNING: this should only be enabled for UDMF game configurations! // WARNING: this should only be enabled for UDMF game configurations!
// WARNING: enabling this will make maps incompatible with Doom Builder 2 and can lead to problems in Slade 3! // WARNING: enabling this will make maps incompatible with Doom Builder 2 and can lead to problems in Slade 3!
longtexturenames = true; longtexturenames = false;
// These directory names are ignored when loading PK3/PK7/Directory resources // These directory names are ignored when loading PK3/PK7/Directory resources
ignoreddirectories = ".svn .git"; ignoreddirectories = ".svn .git";
@ -16,7 +16,7 @@ common
// Default testing parameters // Default testing parameters
testparameters = "-file \"%AP\" \"%F\" -warp %L"; testparameters = "-file \"%AP\" \"%F\" -warp %L";
testshortpaths = true; testshortpaths = false;
// Action special help // Action special help
actionspecialhelp = "https://wiki.srb2.org/wiki/Linedef_type_%K"; actionspecialhelp = "https://wiki.srb2.org/wiki/Linedef_type_%K";
@ -46,26 +46,28 @@ common
// Texture sources // Texture sources
textures textures
{ {
include("Kart2_misc.cfg", "textures"); include("RingRacers_misc.cfg", "textures");
} }
// Patch sources // Patch sources
patches patches
{ {
include("Kart2_misc.cfg", "patches"); include("RingRacers_misc.cfg", "patches");
} }
// Sprite sources // Sprite sources
sprites sprites
{ {
include("Kart2_misc.cfg", "sprites"); include("RingRacers_misc.cfg", "sprites");
} }
// Flat sources // Flat sources
/*
flats flats
{ {
include("Kart2_misc.cfg", "flats"); include("RingRacers_misc.cfg", "flats");
} }
*/
} }
mapformat_udmf mapformat_udmf
@ -78,25 +80,26 @@ mapformat_udmf
defaulttestcompiler = "zdbsp_udmf_fast"; defaulttestcompiler = "zdbsp_udmf_fast";
// Determines the textmap namespace // Determines the textmap namespace
engine = "srb2kart"; engine = "ringracers";
maplumpnames maplumpnames
{ {
include("UDMF_misc.cfg", "udmfmaplumpnames_begin"); include("UDMF_misc.cfg", "udmfmaplumpnames_begin");
include("Kart2_misc.cfg", "udmfmaplumpnames"); include("RingRacers_misc.cfg", "udmfmaplumpnames");
include("RingRacers_misc.cfg", "sharedmaplumpnames");
include("UDMF_misc.cfg", "udmfmaplumpnames_end"); include("UDMF_misc.cfg", "udmfmaplumpnames_end");
} }
universalfields universalfields
{ {
include("Kart2_misc.cfg", "universalfields"); include("RingRacers_misc.cfg", "universalfields");
} }
// When this is set to true, sectors with the same tag will light up when a line is highlighted // When this is set to true, sectors with the same tag will light up when a line is highlighted
linetagindicatesectors = false; linetagindicatesectors = false;
// Special linedefs // Special linedefs
include("Kart2_misc.cfg", "speciallinedefs_udmf"); include("RingRacers_misc.cfg", "speciallinedefs_udmf");
// Default flags for first new thing // Default flags for first new thing
defaultthingflags defaultthingflags
@ -106,50 +109,38 @@ mapformat_udmf
// SECTOR FLAGS // SECTOR FLAGS
sectorflags sectorflags
{ {
include("Kart2_misc.cfg", "sectorflags"); include("RingRacers_misc.cfg", "sectorflags");
} }
// DEFAULT SECTOR BRIGHTNESS LEVELS // DEFAULT SECTOR BRIGHTNESS LEVELS
sectorbrightness sectorbrightness
{ {
include("Kart2_misc.cfg", "sectorbrightness"); include("RingRacers_misc.cfg", "sectorbrightness");
} }
damagetypes = "Generic Water Fire Lava Electric Spike DeathPitTilt DeathPitNoTilt Instakill SpecialStage"; damagetypes = "Generic Lava DeathPit Instakill";
// SECTOR TYPES
sectortypes
{
include("Kart2_sectors.cfg", "sectortypes");
}
// GENERALISED SECTOR TYPES
gen_sectortypes
{
include("Kart2_sectors.cfg", "gen_sectortypes");
}
// LINEDEF FLAGS // LINEDEF FLAGS
linedefflags linedefflags
{ {
include("Kart2_misc.cfg", "linedefflags_udmf"); include("RingRacers_misc.cfg", "linedefflags_udmf");
} }
linedefflagstranslation linedefflagstranslation
{ {
include("Kart2_misc.cfg", "linedefflagstranslation"); include("RingRacers_misc.cfg", "linedefflagstranslation");
} }
// LINEDEF RENDERSTYLES // LINEDEF RENDERSTYLES
linedefrenderstyles linedefrenderstyles
{ {
include("Kart2_misc.cfg", "linedefrenderstyles"); include("RingRacers_misc.cfg", "linedefrenderstyles");
} }
// THING FLAGS // THING FLAGS
thingflags thingflags
{ {
include("Kart2_misc.cfg", "thingflags_udmf"); include("RingRacers_misc.cfg", "thingflags_udmf");
} }
// Thing flags UDMF translation table // Thing flags UDMF translation table
@ -157,7 +148,7 @@ mapformat_udmf
// When the UDMF field name is prefixed with ! it is inverted // When the UDMF field name is prefixed with ! it is inverted
thingflagstranslation thingflagstranslation
{ {
include("Kart2_misc.cfg", "thingflagstranslation"); include("RingRacers_misc.cfg", "thingflagstranslation");
} }
// How to compare thing flags (for the stuck things error checker) // How to compare thing flags (for the stuck things error checker)
@ -169,12 +160,12 @@ mapformat_udmf
// THING TYPES // THING TYPES
thingtypes thingtypes
{ {
include("Kart2_things.cfg", "udmf"); include("RingRacers_things.cfg", "udmf");
} }
// LINEDEF TYPES // LINEDEF TYPES
linedeftypes linedeftypes
{ {
include("Kart2_linedefs.cfg", "udmf"); include("RingRacers_linedefs.cfg", "udmf");
} }
} }

View file

@ -1,21 +1,21 @@
linedefflags linedefflags
{ {
1 = "[0] Impassable"; 1 = "[0] Impassable";
2 = "[1] Block Enemies"; 2 = "[1] Block Players";
4 = "[2] Double-Sided"; 4 = "[2] Double-Sided";
8 = "[3] Upper Unpegged"; 8 = "[3] Upper Unpegged";
16 = "[4] Lower Unpegged"; 16 = "[4] Lower Unpegged";
32 = "[5] Slope Skew (E1)"; 32 = "[5] Slope Skew";
64 = "[6] Not Climbable"; 64 = "[6] Not Climbable";
128 = "[7] No Midtexture Skew (E2)"; 128 = "[7] No Midtexture Skew";
256 = "[8] Peg Midtexture (E3)"; 256 = "[8] Peg Midtexture";
512 = "[9] Solid Midtexture (E4)"; 512 = "[9] Solid Midtexture";
1024 = "[10] Repeat Midtexture (E5)"; 1024 = "[10] Repeat Midtexture";
2048 = "[11] Netgame Only"; 2048 = "[11] Netgame Only";
4096 = "[12] No Netgame"; 4096 = "[12] No Netgame";
8192 = "[13] Effect 6"; 8192 = "[13] Block Enemies";
16384 = "[14] Bouncy Wall"; 16384 = "[14] Don't Bump";
32768 = "[15] Transfer Line"; 32768 = "[15] FOF Transfer";
} }
@ -59,14 +59,8 @@ linedefflags_udmf
netonly = "Netgame Only"; netonly = "Netgame Only";
nonet = "No Netgame"; nonet = "No Netgame";
blockmonsters = "Block Enemies"; blockmonsters = "Block Enemies";
bouncy = "Not Bouncy"; bouncy = "Don't Bump";
transfer = "Transfer Line"; transfer = "FOF Transfer";
}
linedefactivations_udmf
{
netonly = "Netgame Only";
nonet = "No Netgame";
} }
linedefrenderstyles linedefrenderstyles
@ -94,26 +88,19 @@ sectorflags
gravityflip = "Flip Objects in Reverse Gravity"; gravityflip = "Flip Objects in Reverse Gravity";
heatwave = "Heat Wave"; heatwave = "Heat Wave";
noclipcamera = "Intangible to the Camera"; noclipcamera = "Intangible to the Camera";
ripple_floor = "Ripply Floor"; ripple_floor = "Water Ripple Floor";
ripple_ceiling = "Ripply Ceiling"; ripple_ceiling = "Water Ripple Ceiling";
invertencore = "Invert Encore Remap"; invertencore = "Encore Remap Invert";
outerspace = "Space Countdown"; nostepup = "Wall Sector (no step-up)";
doublestepup = "Ramp Sector (double step-up/down)"; doublestepup = "Ramp Sector (double step-up/down)";
nostepdown = "Non-Ramp Sector (No step-down)"; nostepdown = "Non-Ramp Sector (no step-down)";
speedpad = "Speed Pad"; speedpad = "Speed Pad";
starpostactivator = "Star Post Activator"; starpostactivator = "Star Post Activator";
exit = "Exit"; exit = "Exit";
specialstagepit = "Special Stage Pit";
returnflag = "Return Flag";
redteambase = "Red Team Base";
blueteambase = "Blue Team Base";
fan = "Fan Sector"; fan = "Fan Sector";
supertransform = "Super Sonic Transform"; deleteitems = "Delete Items";
forcespin = "Force Spin";
zoomtubestart = "Zoom Tube Start"; zoomtubestart = "Zoom Tube Start";
zoomtubeend = "Zoom Tube End"; zoomtubeend = "Zoom Tube End";
finishline = "Circuit Finish Line";
ropehang = "Rope Hang";
} }
thingflags thingflags
@ -136,10 +123,7 @@ thingflags_udmf
// When the UDMF field name is prefixed with ! it is inverted // When the UDMF field name is prefixed with ! it is inverted
thingflagstranslation thingflagstranslation
{ {
1 = "extra";
2 = "flip"; 2 = "flip";
4 = "special";
8 = "ambush";
} }
@ -459,20 +443,6 @@ doommaplumpnames
nodebuild = true; nodebuild = true;
allowempty = false; allowempty = false;
} }
REJECT
{
required = false;
nodebuild = true;
allowempty = false;
}
BLOCKMAP
{
required = false;
nodebuild = true;
allowempty = true;
}
} }
udmfmaplumpnames udmfmaplumpnames
@ -483,7 +453,12 @@ udmfmaplumpnames
nodebuild = true; nodebuild = true;
allowempty = false; allowempty = false;
} }
}
// Because Ring Racers has a versatile virtual resource
// system, we can separate these out a bit more.
sharedmaplumpnames
{
REJECT REJECT
{ {
required = false; required = false;
@ -497,6 +472,34 @@ udmfmaplumpnames
nodebuild = true; nodebuild = true;
allowempty = true; allowempty = true;
} }
PICTURE
{
required = false;
blindcopy = true;
nodebuild = false;
}
MINIMAP
{
required = false;
blindcopy = true;
nodebuild = false;
}
TWEAKMAP
{
required = false;
blindcopy = true;
nodebuild = false;
}
ENCORE
{
required = false;
blindcopy = true;
nodebuild = false;
}
} }
// ENUMERATIONS // ENUMERATIONS
@ -672,7 +675,6 @@ enums
//Default things filters //Default things filters
thingsfilters thingsfilters
{ {
filter0 filter0
{ {
name = "Player starts"; name = "Player starts";
@ -680,17 +682,7 @@ thingsfilters
type = -1; type = -1;
} }
filter1 filter1
{
name = "Enemies";
category = "enemies";
type = -1;
}
filter2
{ {
name = "Normal Gravity"; name = "Normal Gravity";
category = ""; category = "";
@ -703,8 +695,7 @@ thingsfilters
} }
filter2
filter3
{ {
name = "Reverse Gravity"; name = "Reverse Gravity";
category = ""; category = "";
@ -717,22 +708,17 @@ thingsfilters
} }
filter3
filter4
{ {
name = "Rings"; name = "Rings";
category = ""; category = "";
type = 300; type = 300;
} }
filter4
filter5
{ {
name = "Waypoints"; name = "Waypoints";
category = ""; category = "waypoints";
type = 2001;
} }
} }

View file

@ -0,0 +1,28 @@
// Don't feel like updating, these are only for Doom format anyway...
sectortypes
{
0 = "Normal";
}
gen_sectortypes
{
first
{
0 = "Normal";
}
second
{
0 = "Normal";
}
third
{
0 = "Normal";
}
fourth
{
0 = "Normal";
}
}

View file

@ -1,34 +1,34 @@
/************************************************************************\ /************************************************************************\
Ultimate Doom Builder Game Configuration for SRB2Kart Ultimate Doom Builder Game Configuration for Dr. Robotnik's Ring Racers
\************************************************************************/ \************************************************************************/
// This is required to prevent accidental use of a different configuration // This is required to prevent accidental use of a different configuration
type = "Doom Builder 2 Game Configuration"; type = "Doom Builder 2 Game Configuration";
// This is the title to show for this game // This is the title to show for this game
game = "SRB2Kart v2.0 (UDMF)"; game = "Dr. Robotnik's Ring Racers (UDMF)";
// This is the simplified game engine/sourceport name // This is the simplified game engine/sourceport name
engine = "zdoom"; engine = "zdoom";
// Settings common to all games and all map formats // Settings common to all games and all map formats
include("Includes\\Kart2_common.cfg", "common"); include("Includes\\RingRacers_common.cfg", "common");
// Settings common to text map format // Settings common to text map format
include("Includes\\Kart2_common.cfg", "mapformat_udmf"); include("Includes\\RingRacers_common.cfg", "mapformat_udmf");
include("Includes\\Game_Kart2.cfg"); include("Includes\\Game_RingRacers.cfg");
// Script lumps detection // Script lumps detection
scriptlumpnames scriptlumpnames
{ {
include("Includes\\Kart2_misc.cfg", "scriptlumpnames"); include("Includes\\RingRacers_misc.cfg", "scriptlumpnames");
} }
//Default things filters //Default things filters
thingsfilters thingsfilters
{ {
include("Includes\\Kart2_misc.cfg", "thingsfilters"); include("Includes\\RingRacers_misc.cfg", "thingsfilters");
} }
// ENUMERATIONS // ENUMERATIONS
@ -37,5 +37,5 @@ thingsfilters
enums enums
{ {
// Basic game enums // Basic game enums
include("Includes\\Kart2_misc.cfg", "enums"); include("Includes\\RingRacers_misc.cfg", "enums");
} }

View file

@ -1260,8 +1260,8 @@ static boolean TextmapCount(size_t size)
// Check if namespace is valid. // Check if namespace is valid.
tkn = M_TokenizerRead(0); tkn = M_TokenizerRead(0);
if (!fastcmp(tkn, "srb2")) if (!fastcmp(tkn, "ringracers"))
CONS_Alert(CONS_WARNING, "Invalid namespace '%s', only 'srb2' is supported.\n", tkn); CONS_Alert(CONS_WARNING, "Invalid namespace '%s', only 'ringracers' is supported.\n", tkn);
while ((tkn = M_TokenizerRead(0)) && M_TokenizerGetEndPos() < size) while ((tkn = M_TokenizerRead(0)) && M_TokenizerGetEndPos() < size)
{ {
@ -2056,7 +2056,7 @@ static void P_WriteTextmap(void)
} }
} }
fprintf(f, "namespace = \"srb2\";\n"); fprintf(f, "namespace = \"ringracers\";\n");
for (i = 0; i < nummapthings; i++) for (i = 0; i < nummapthings; i++)
{ {
fprintf(f, "thing // %s\n", sizeu1(i)); fprintf(f, "thing // %s\n", sizeu1(i));