MAPINFO
Availability
ZandroX only among Zandronum versions, except where a row says it is Zandronum's. Most keywords come from UZDoom under UZDoom's names, so a UZDoom
MAPINFOorZMAPINFOthat uses them loads as written.Works in netgames. Every machine reads the same lumps. What changes gameplay is decided by the server; what changes the picture or the sound is applied by each machine.
Usage
This page lists what ForkUnderA adds to MAPINFO and ZMAPINFO on top of Zandronum. Everything Zandronum
already reads works as before. UMAPINFO is on its own page, Boom and MBF mapsets.
The two formats
A lump is in the new format when its first block uses braces (map MAP01 "Title" { ... }), and a
ZMAPINFO always is. In the new format a value follows = and values are separated by commas:
hazardcolor = "ff 40 00". In the old format there are no braces, no = and no commas:
hazardcolor "ff 40 00".
Keywords marked new in the tables below work only in the new format. Using one in an old-format lump stops the game from loading. The others work in both.
Errors
- A syntax error, an unknown top-level block, or a new-only keyword in an old-format lump stops the game from loading.
- An unknown keyword inside a
mapordefaultmapblock is printed in the console and skipped. In the old format its value is then read as the next keyword, which prints a second message. - A UZDoom keyword this engine cannot honour is accepted and skipped, and the console says so once. Those keywords are listed in Accepted and ignored, so a UZDoom mod that uses them still loads.
- An unknown key in a
clusterorskillblock is a warning. An unknowngameinfokey is skipped silently.
Intermissions and text screens
In a map or defaultmap block unless the row says otherwise. Text screens between levels are shown in single
player only.
| Keyword | Value | What it does |
|---|---|---|
author | = "Name" | Shown under the level name on the "Finished" screen, in the small font. |
label | = "E1" | The prefix shown before the level name on the automap. "*" shows none. Without it, the player's am_showmaplabel decides. |
mapintermusic | = "MAP05", "music" | The intermission music when this level leads to the named map. May be given once per map. It beats intermusic. |
exittext (new) | = key, "text" [, "line" ...], = key, lookup, "NAME" | A text screen shown on leaving this level. key is "normal", "secret" or the name of the map the exit leads to. It beats the cluster's text. |
textflat (new) | = key, "FLAT" | The flat tiled behind that text. |
textpic (new) | = key, "PIC" | A full-screen picture behind that text. |
textmusic (new) | = key, "music" | The music while that text shows. |
noclustertext | flag | No cluster text when leaving this level. |
needclustertext | flag | Cluster text even when the next level is in the same cluster. |
allowintermission | flag, in a cluster | Shows the stats screen between levels of a hub. |
Subtitle (new) | = "text" or "$LOOKUP", in an intermission action | A caption at the bottom of that picture or text screen. |
winnerpic, loserpic, winnermusic, losermusic | = "name" | Zandronum's: the team-game intermission's picture and music for the winners and the losers. |
Level flow, scripts and precaching
| Keyword | Value | What it does |
|---|---|---|
cvar_redirect | = "cvar", "MAP" | When the cvar's whole-number value is not 0 and the map exists, entering this level goes to that map instead. Any cvar works, a mod's own CVARINFO ones included. It is checked after redirect. |
loadacs | = "LIB" [, "LIB" ...] | ACS libraries loaded for this level only, after those the LOADACS lump names. A missing one is printed in the console. |
PrecacheClasses | = "Class" [, ...] | Every sprite of these classes is loaded with the level, so their first appearance does not stutter. Unknown classes are skipped. |
PrecacheTextures | = "TEX" [, ...] | The same for textures, such as those a script switches to later. |
gamemode (new) | = "cooperative" | Zandronum's: the game mode this map is played in. An unknown mode stops the game from loading. |
noskirmish | flag | Zandronum's: the map is left out of the skirmish menu. |
Gameplay and environment
| Keyword | Value | What it does |
|---|---|---|
avoidmelee | flag | Every monster on the level backs away from melee range, as MBF21's +AVOIDMELEE does. |
e1m8special, e2m8special, e3m8special, e4m6special, e4m8special | flag | The level's boss-death action fires when the monsters with the matching E1M8BOSS… flag die. |
nogravity | flag | The level starts with no gravity. Changing sv_gravity during the level sets it again. |
propermonsterfallingdamage | flag | Monsters take the falling damage a player would instead of dying outright. Needs falling damage turned on. |
passover | flag | Things can pass over and under each other on this level, whatever the server's setting. |
nopassover | flag | Things are infinitely tall on this level. |
hazardcolor | = "rr gg bb" or a colour name | The colour Strife's hazard sectors tint the screen with as they hurt. |
hazardflash | as hazardcolor | The colour of the flash when they hurt. |
lightningsound | = "sound" | The thunder on a lightning level, world/thunder by default. |
attenuatelights | flag | GLDEFS lights that do not say attenuate fade with the angle they hit a surface at. |
brightfog | = 1 or = 0 | Fog does not darken bright sprites and the weapon, or does. Unset, the player's r_brightfog decides. A map takes defaultmap's value. |
pixelratio (new) | = 1.2 | How tall a pixel is drawn, 1.2 by default. |
fua_monsterstairs, fua_nomonsterstairs (new) | flag | ZandroX only. Monsters climb and descend stairs narrower than themselves on this level, or do not. Without either, GAMEINFO's fua_monsterstairs decides, then the server's sv_fua_monsterstairs. |
Compatibility flags
In a map or defaultmap block: compat_x turns the flag on, compat_x = 0 (old format
compat_x 0) turns it off. A flag a level sets overrides the server's compatibility settings for that level.
| Keyword | What it does |
|---|---|
compat_multiexit | An exit can be used more than once. |
compat_checkswitchrange | Switches are used without checking that the player can reach them. |
compat_avoidhazards | Monsters avoid damaging floors, as in MBF. |
compat_stayonlift | Monsters stay on a lift they are riding, as in MBF. |
compat_reservedlineflag | A Doom-format map's line flag bit 11 keeps only the original flags, as Boom maps expect. |
compat_emulatemikoportals | A thing that falls below the lowest height vanilla Doom could hold lands at its sector's ceiling, as the "Miko portal" trick in some vanilla maps expects. |
compat_vileghosts | UZDoom's name for compat_corpsegibs: Arch-viles raise crushed corpses as ghosts. |
compat_noacsargcheck | An ACS call with too few arguments is not reported. |
compat_scriptwait | ACS's ScriptWait on a numbered script that is not running goes on at once, instead of waiting for that script to start and finish. |
compat_explode1 | Explosions push things only sideways, never up. |
compat_nosoulceilbounce | A charging lost soul that hits the ceiling stops rising instead of bouncing down. |
compat_hitscanswitches | Shootable switches answer bullets alone; no projectile activates them. |
compat_monsterprojlines | In Doom, a monster's projectile crossing a door, lift or teleport line triggers it, as Doom II's did; projectiles no longer use player teleports. |
compat_infinitemelee | Melee attacks reach any height. |
compat_boomuseblocking | A use stops at any line with a special unless the line has Boom's PassUse flag. |
compat_boomscrollstrict | Scrolling floors carry things by Boom's rule. |
compat_nocountlost | Lost souls do not count towards the level's kills. |
compat_soundcutoff | A thing's sound stops when the thing is removed, instead of playing on where it was. A level's flag works here; in UZDoom only the console setting does. |
compat_explode2, compat_teleport, compat_railing, compat_pointonline,
compat_voodoozombies, compat_novdolllockmsg and compat_nombf21 are accepted and do nothing: this engine
already behaves the way each would ask for.
Skills
In a skill Name { ... } block.
| Keyword | Value | What it does |
|---|---|---|
HealthFactor | = 0.5 | Scales the health a player gets from pickups, never below 1. Monster health is MonsterHealth's. |
KickbackFactor | = 2.0 | Scales how far damage pushes things. |
NoInfighting, TotalInfighting | flag | Monsters never fight each other, or fight on any hit. A monster's own +NOINFIGHTING or +FORCEINFIGHTING still wins. |
InstantReaction | flag | Monsters attack without their first reaction delay. |
NoMenu | flag | The skill is not offered in the New Game menu. |
SpawnMulti | flag | A single-player game also spawns the things meant for cooperative play. |
SpawnMultiCoopOnly (new) | flag | A single-player game spawns the cooperative things and leaves out those meant only for single player. |
GAMEINFO
In the gameinfo block, which needs the new format.
| Key | Value | What it does |
|---|---|---|
hidepartimes | = true | The intermission shows no par times. |
dontcrunchcorpses | = true | A crusher leaves corpses whole instead of turning them into gibs. |
cheatkey, easykey | = "lump" | The automap's key markers, shown with the map cheat and on the easiest skills. |
normforwardmove, normsidemove | = 25, 50 | The walk and run speeds forward and sideways, Doom's 25, 50 and 24, 40 by default. turbo scales them, and a server allows the faster speeds without taking them for a turbo cheat. |
correctprintbold | = true | ACS PrintBold uses the bold message colour. |
fua_monsterstairs | = true | ZandroX only. The game's default for fua_monsterstairs. |
Top-level blocks
These need the new format.
| Block | What it does |
|---|---|
DamageType Name { factor = 0.5 replacefactor noarmor } | A damage type's settings for every actor: its factor, whether that factor replaces an actor's own, and whether armour absorbs it. factor = 0 implies replacefactor. Any other key stops the game from loading. |
DoomEdNums { 31000 = MyImp } | Editor numbers for map things. A DECORATE editor number for the same number wins. dumpmapthings lists them all. After the class an entry can take up to five arguments, or a special by name and its arguments, which replace the map thing's (31001 = MyImp, Door_Open, 7, 16). + after an argument keeps the map thing's later arguments, as the stock AmbientSound, 1, + entries do. noskillflags first spawns the thing on every skill (31002 = MyImp, noskillflags). |
SpawnNums { 250 = MyImp } | Spawn numbers, as Thing_Spawn takes them. |
ConversationIDs { 900 = MyNpc } | Strife conversation numbers. |
A class these blocks name that does not exist stops the game from loading.
Accepted and ignored
UZDoom keywords this engine reads past, so a mod using them still loads. Each prints one line in the console.
- Map:
intro,outro,enteranim,exitanim,resetitems,eventhandlers,edata,fs_nocheckposition,lightadditivesurfaces,lightblendmode,forceworldpanning,forcefakecontrast,nolightfade,noambientocclusion,enableshadowmap,disableshadowmap,enableskyboxao,disableskyboxao,useskymist,skymist,skymistyscale,thickfogdistance,thickfogmultiplier,nofogofwar,colormap. - Cluster:
intro,outro,gameover. - GAMEINFO:
usepausestring,menuslidercolor,menusliderbackcolor,statscreen_authorfont,statscreen_contentfont,bloodsplatdecaldistance,bluramount,forcenogfxsubstitution,forcetextinmenus,nomergepickupmsg,fullscreenautoaspect,BasicArmorClass, and the ZScript keysstatusbarclass,althudclass,MessageBoxClass,HelpMenuClass,MenuDelegateClass,defaultconversationmenuclass,eventhandlers,addeventhandlers,statscreen_single,statscreen_coopandstatscreen_dm.
Examples
// MAPINFO
map MAP07 "Dead Simple"
{
next = "MAP08"
author = "Jane Doe"
label = "MAP07"
avoidmelee
PrecacheClasses = "Fatso", "Arachnotron"
exittext = "normal", "The walls fall away.", "Something waits below."
textpic = "normal", "INTERPIC"
cvar_redirect = "fuadocs_hard", "MAP08"
compat_stayonlift
}
skill fuadocs_brutal
{
Name = "Brutal"
DamageFactor = 2.0
HealthFactor = 0.5
KickbackFactor = 1.5
TotalInfighting
InstantReaction
NoMenu
SpawnMulti
}
DoomEdNums
{
31000 = DoomImp, noskillflags
31001 = DoomImp, Thing_ChangeTID, 0, 5
31002 = AmbientSound, 2, +
}
DamageType FuaDocsFrost
{
factor = 0.5
noarmor
}
Implementation notes
Each keyword's notes are in a features/mapinfo-<keyword> folder of
features/, such as
features/mapinfo-cvar-redirect.