Update UDMF config to work with latest UZB

This commit is contained in:
Sally Coolatta 2022-12-30 15:05:25 -05:00
parent 8f87c3761b
commit b93ffbef2f
4 changed files with 40 additions and 153 deletions

View file

@ -1,5 +1,5 @@
// Default lump name for new map
defaultlumpname = "MAPNAME";
defaultlumpname = "WADNAME";
//GZDB specific. Don't try to load lumps that don't exist.
basegame = "Doom";

View file

@ -40,6 +40,8 @@ common
defaultflatscale = 1.0f;
scaledtextureoffsets = true;
maxcolormapalpha = 25;
// Thing number for start position in 3D Mode
start3dmode = 3328;
@ -80,7 +82,7 @@ mapformat_udmf
defaulttestcompiler = "zdbsp_udmf_fast";
// Determines the textmap namespace
engine = "ringracers";
engine = "srb2";
maplumpnames
{
@ -97,6 +99,8 @@ mapformat_udmf
// When this is set to true, sectors with the same tag will light up when a line is highlighted
linetagindicatesectors = false;
localsidedeftextureoffsets = false;
distinctfloorandceilingbrightness = true;
// Special linedefs
include("RingRacers_misc.cfg", "speciallinedefs_udmf");

View file

@ -14,7 +14,7 @@ linedefflags
2048 = "[11] Netgame Only";
4096 = "[12] No Netgame";
8192 = "[13] Block Enemies";
16384 = "[14] Don't Bump";
16384 = "[14] Don't Bounce";
32768 = "[15] FOF Transfer";
}
@ -164,6 +164,8 @@ sectorbrightness
0;
}
numbrightnesslevels = 32;
/*
TEXTURES AND FLAT SOURCES
This tells Doom Builder where to find the information for textures
@ -214,151 +216,18 @@ universalfields
{
sector
{
lightalpha
{
type = 0;
default = 25;
}
fadealpha
{
type = 0;
default = 25;
}
fadestart
{
type = 0;
default = 0;
}
fadeend
{
type = 0;
default = 33;
}
foglighting
{
type = 3;
default = false;
}
friction
{
type = 1;
default = 0.90625;
}
triggertag
{
type = 15;
default = 0;
}
triggerer
{
type = 0;
default = 0;
enum
{
0 = "Player";
1 = "All players";
2 = "Object";
}
}
}
linedef
{
arg5
{
type = 0;
default = 0;
}
arg6
{
type = 0;
default = 0;
}
arg7
{
type = 0;
default = 0;
}
arg8
{
type = 0;
default = 0;
}
arg9
{
type = 0;
default = 0;
}
stringarg0
{
type = 2;
default = "";
}
stringarg1
{
type = 2;
default = "";
}
executordelay
{
type = 0;
default = 0;
}
}
sidedef
{
repeatcnt
{
type = 0;
default = 0;
}
}
thing
{
arg5
{
type = 0;
default = 0;
}
arg6
{
type = 0;
default = 0;
}
arg7
{
type = 0;
default = 0;
}
arg8
{
type = 0;
default = 0;
}
arg9
{
type = 0;
default = 0;
}
stringarg0
{
type = 2;
default = "";
}
stringarg1
{
type = 2;
default = "";
}
}
}
@ -442,22 +311,7 @@ doommaplumpnames
nodebuild = true;
allowempty = false;
}
}
udmfmaplumpnames
{
ZNODES
{
required = false;
nodebuild = true;
allowempty = false;
}
}
// Because Ring Racers has a versatile virtual resource
// system, we can separate these out a bit more.
sharedmaplumpnames
{
REJECT
{
required = false;
@ -471,7 +325,36 @@ sharedmaplumpnames
nodebuild = true;
allowempty = true;
}
}
udmfmaplumpnames
{
ZNODES
{
required = false;
nodebuild = true;
allowempty = false;
}
REJECT
{
required = false;
nodebuild = true;
allowempty = false;
}
BLOCKMAP
{
required = false;
nodebuild = true;
allowempty = true;
}
}
// Because Ring Racers has a versatile virtual resource
// system, we can separate these out a bit more.
sharedmaplumpnames
{
BEHAVIOR
{
required = false;

View file

@ -1261,8 +1261,8 @@ static boolean TextmapCount(size_t size)
// Check if namespace is valid.
tkn = M_TokenizerRead(0);
if (!fastcmp(tkn, "ringracers"))
CONS_Alert(CONS_WARNING, "Invalid namespace '%s', only 'ringracers' is supported.\n", tkn);
if (!fastcmp(tkn, "srb2")) // Would like to use "ringracers", but it turns off features in UZB.
CONS_Alert(CONS_WARNING, "Invalid namespace '%s', only 'srb2' is supported.\n", tkn);
while ((tkn = M_TokenizerRead(0)) && M_TokenizerGetEndPos() < size)
{