Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Topic started by: ic3y on July 09, 2015, 10:47:35 AM

Title: [Bug?] Wrong amount of maps while Rotation Load
Post by: ic3y on July 09, 2015, 10:47:35 AM
Currently my rotationfile (kothrot.txt) looks like this:

Quote
[maplist]
beta/stack_b1 KOTH
beta/kotth_b1 KOTH
beta/kotih_b2 KOTH
anubis KOTH
###

When I load the rotation with
Code: [Select]
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.
Title: Re: [Bug?] Wrong amount of maps while Rotation Load
Post by: T3RR0R15T on July 09, 2015, 12:16:43 PM
You can't add the gamemode there, so it loads the map koth four times => 8 maps.
Title: Re: [Bug?] Wrong amount of maps while Rotation Load
Post by: ic3y on July 09, 2015, 04:46:31 PM
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
Title: Re: [Bug?] Wrong amount of maps while Rotation Load
Post by: jitspoe on July 20, 2015, 01:14:04 AM
Try adding them to the list normally and using:
set g_forcedgamemode koth
Title: Re: [Bug?] Wrong amount of maps while Rotation Load
Post by: ic3y on July 20, 2015, 03:31:57 AM
Try adding them to the list normally and using:
set g_forcedgamemode koth
Did that already + ctfmode 4 (Why 4? BSP uses 16)
Title: Re: [Bug?] Wrong amount of maps while Rotation Load
Post by: jitspoe on July 20, 2015, 11:26:51 PM
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. :)
Title: Re: [Bug?] Wrong amount of maps while Rotation Load
Post by: ic3y on July 21, 2015, 10:45:38 AM
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