Digital Paint Discussion Board
Development => Bugs, Feature Requests, and Feedback => Topic started by: ic3y on July 09, 2015, 10:47:35 AM
-
Currently my rotationfile (kothrot.txt) looks like this:
[maplist]
beta/stack_b1 KOTH
beta/kotth_b1 KOTH
beta/kotih_b2 KOTH
anubis KOTH
###
When I load the rotation with
rotation load pball/configs/kothrot.txt
I get the following output:
(http://www.ic3y.de/bup/b8f1d409b6f7f2bd94575796bcf2d8de_20150709.JPG)
"maplist" looks fine, but sometimes it adds a map called "koth", which exists.^
But anubis and stack_b1 wont load the gamemode koth.
-
You can't add the gamemode there, so it loads the map koth four times => 8 maps.
-
You can't add the gamemode there, so it loads the map koth four times => 8 maps.
It worked few years ago with some 1-flag maps. But nvm, maybe some other commands worked there.
(http://www.ic3y.de/bup/74228061cff83eaf99872bbdbb969697_20150709.png)
So koth is missing. Still 6 maps
-
Try adding them to the list normally and using:
set g_forcedgamemode koth
-
Try adding them to the list normally and using:
set g_forcedgamemode koth
Did that already + ctfmode 4 (Why 4? BSP uses 16)
-
Did that already + ctfmode 4 (Why 4? BSP uses 16)
The values BSP uses are bitwise:
In binary:
00001 = 1
00010 = 2
00100 = 4
01000 = 8
10000 = 16
So if you want to support multiple modes, you just add them together
00011 = 1 + 2 = 3
11000 = 8 + 16 = 24
etc.
But for specifying the game mode, they're just numbered in order:
0) 00001 = 1 (DM)
1) 00010 = 2 (1flag)
2) 00100 = 4 (CTF)
3) 01000 = 8 (SIEGE)
4) 10000 = 16 (KOTH)
So that's why ctfmode 4 is 16 in BSP. :)
-
The values BSP uses are bitwise:
In binary:
00001 = 1
00010 = 2
00100 = 4
01000 = 8
10000 = 16
So if you want to support multiple modes, you just add them together
00011 = 1 + 2 = 3
11000 = 8 + 16 = 24
etc.
But for specifying the game mode, they're just numbered in order:
0) 00001 = 1 (DM)
1) 00010 = 2 (1flag)
2) 00100 = 4 (CTF)
3) 01000 = 8 (SIEGE)
4) 10000 = 16 (KOTH)
So that's why ctfmode 4 is 16 in BSP. :)
Yeah I know the binary stuff. But never thought about a numbered order :D