Forum

> > CS2D > General > Map voting bug with bots?
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Map voting bug with bots?

5 replies
To the start Previous 1 Next To the start

old Map voting bug with bots?

RichNagel
User Off Offline

Quote
I think I may have found a little buglet in the map voting system when there are bots in the game. It appears that if there are bots in the game, they are considered part of the total of connected players (?).

For example:

I start a dedicated server with bots, start the game, and then join the server.

If I vote for a map, it says in the chat area that I have, but the map does not cycle. If I kick all of the bots from the dedicated server, and then vote, then the map indeed does cycle.

Am I doing something wrong, or is this a buglet with the map voting system (or is it simply intended behavior)?

old Re: Map voting bug with bots?

RichNagel
User Off Offline

Quote
user Obviously Exactly Myself has written
DC intended that. Bots have opinions too, you know!


You're telling me LOL!

Hehe, seems that even OTHER bots from OTHER games ALSO have strong opinions as well <grin>... e.g. The "SturmBot" addon with GoldSource Day of Defeat, and a recent undocumented-feature discovery of mine ("Bot_Whine.txt"):

http://steamcommunity.com//id/RichNagel/screenshot/488877446868174308
http://steamcommunity.com/id/RichNagel/screenshot/487751906459050856
http://steamcommunity.com/id/RichNagel/screenshot/488878795907906293

LOL!

old Re: Map voting bug with bots?

palomino
User Off Offline

Quote
@user RichNagel: That feature was also in the YaPB (Yet another POD Bot) addon for Counter-Strike 1.6 Don't know about the normal POD Bot, though. Sadly YaPB doesn't seem to work with the newest CS 1.6 on Steam I miss it.

old Re: Map voting bug with bots?

RichNagel
User Off Offline

Quote
user DC has written
Yeah, this obviously is a bug. I'll try to fix that.


Thanks for the info, DC


(Edit) @All, you know, I was thinking... This is way beyond my comprehension of Lua scripting.

But, wouldn't there be some way (in the meantime until the bug is fixed) to create a Lua script using this -> http://www.cs2d.com/help.php?hookcat=all&hook=vote#hook to temporarily fix the problem? Maybe some sort of for/if routine that would total up all of the human players votes (and disreguard any of the bots that were in the game for the total player count)?

Then, after the vote(s), a simple map change.


(Edit #2) Heh, this is kind of a weird one...

I wanted to see what the bots were "thinking" (and how they were "voting" <grin>), so I created the following Lua script:

1
2
3
4
5
6
7
8
9
10
11
12
addhook("join","player_name")
function player_name(playerID)
end

addhook('vote','vote_test')
function vote_test(playerID,votemode,choice)
	for playerID = 1,32, 1 do
		if (player(playerID,'exists')) then
			print("Player ID: "..playerID.." | Player Name: "..player(playerID,"name").." | Vote Mode: "..votemode.." | Choice: "..choice)
		end
	end
end

After I voted for a map, here's what I saw in the console:

1
2
3
4
5
6
7
8
9
10
11
12
13
Player ID:  1 | Player Name: [BOT] Colin    | Vote Mode: 2 | Choice: de_dust2
Player ID:  2 | Player Name: [BOT] Moe      | Vote Mode: 2 | Choice: de_dust2
Player ID:  3 | Player Name: [BOT] Wesley   | Vote Mode: 2 | Choice: de_dust2
Player ID:  4 | Player Name: [BOT] Fred     | Vote Mode: 2 | Choice: de_dust2
Player ID:  5 | Player Name: [BOT] Minh     | Vote Mode: 2 | Choice: de_dust2
Player ID:  6 | Player Name: [BOT] Graham   | Vote Mode: 2 | Choice: de_dust2
Player ID:  7 | Player Name: Rich Nagel     | Vote Mode: 2 | Choice: de_dust2
Player ID:  8 | Player Name: [BOT] Frasier  | Vote Mode: 2 | Choice: de_dust2
Player ID:  9 | Player Name: [BOT] Rick     | Vote Mode: 2 | Choice: de_dust2
Player ID: 10 | Player Name: [BOT] Will     | Vote Mode: 2 | Choice: de_dust2
Player ID: 11 | Player Name: [BOT] Vladimir | Vote Mode: 2 | Choice: de_dust2

Rich Nagel votes the map de_dust2

...and after I voted to kick a player, here's what I saw in the console (note: a different game, hence different bot names than displayed above):

1
2
3
4
5
6
7
8
9
10
11
12
13
Player ID:  1 | Player Name: [BOT] Jason   | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID:  2 | Player Name: [BOT] Albert  | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID:  3 | Player Name: [BOT] Kyle    | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID:  4 | Player Name: [BOT] Dean    | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID:  5 | Player Name: [BOT] Tom     | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID:  6 | Player Name: [BOT] Matt    | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID:  7 | Player Name: [BOT] Frasier | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID:  8 | Player Name: [BOT] Chet    | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID:  9 | Player Name: [BOT] Wolf    | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID: 10 | Player Name: [BOT] Dennis  | Vote Mode: 1 | Choice: [BOT] Kyle
Player ID: 11 | Player Name: Rich Nagel    | Vote Mode: 1 | Choice: [BOT] Kyle

Rich Nagel votes to kick [BOT] Kyle

Sort of a strange thing... being with the little buglet I found mentioned above; it appears that the map SHOULD change (or a player should be kicked), as the total vote would be 100% for the map change or the player kick (of course, as detailed previously the map doesn't change when bots are in the game).

Anyhow, based on the above of what the bots are "thinking", maybe the bots aren't as "opinionated" as we first thought... maybe I'm just one hell of a leader, or maybe they're simply intimidated by me LOL!


(EDIT 5-3-2014)

Hiya Folks,

Long time, no type

Sorry for resurrecting this old thread, but it appears that the bot voting bug is still present.

Note that I've had an extended absence from the game (so I'm not sure about all of the versions that have been released since my first post in this thread), but in the current version of the game the bug still seems to be there.

(DOUBLE EDIT) P.S. Another difference between then and now (versions) is that the current version doesn't even cycle the voted map unless I have at least one bot in the game (along with myself, a single human player).
edited 7×, last 03.05.14 07:04:46 am
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview