Custom typeoflevel maps do not show up in Multiplayer game modes

Flame

WR 102
I have fair reason to believe the custom TOL_* Lua scripting is not working to it's fullest extent.

Consider the following in my custom Lua code:

Code:
freeslot('TOL_CUSTOMLVL') -- Custom TOL example. This creates a TOL_CUSTOMLVL constant with the value of 8192

G_AddGametype({
    name = "Custom",
    identifier = "CUSTOMLVL", --GT_CUSTOMLVL
    typeoflevel = TOL_2D|TOL_CUSTOMLVL,
    rules = GTR_RESPAWNDELAY|GTR_FRIENDLYFIRE|GTR_OVERTIME|GTR_TIMELIMIT|GTR_POINTLIMIT|GTR_SPAWNINVUL,
    intermissiontype = int_match,
    headerleftcolor = 151,
    headerrightcolor = 151,
    description = "This is a custom gamemode type!"
})

The script is loaded before the MAINCFG and the Maps. When assigning a Typeoflevel flag to be... say...
Code:
typeoflevel = 2D,CUSTOMLVL

It fails to show the Custom Gametype in the Multiplater Gametype selection screen.


Addendum, you can notice the gametype has initialized in the game when switching to the map, eg. map mapxx -gametype customlvl
But the game will throw out an error stating "Error: That level doesn't suppor the customlvl gametype"despite the level having the typeoflevel flag for it.
 
Last edited:

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top