gg_map_vote issue when not all players vote...

Ask questions and share info about GunGame 5

gg_map_vote issue when not all players vote...

Postby Shadow » Thu Jan 26, 2012 2:00 am

Hi,

I will try and make this as brief as possible....

When vote is triggered at the 4th level before last (gg_map_vote_trigger 4) with multiple players on the server and not all players vote, It just doesn't do anything when it reaches the vote limit time (gg_map_vote_time 30), in the chat area, it won't anounce the winning map like if the vote never took place. It will just reload the same map. If all players votes, it will load the winning map like it should at end of last level. I've included my gg_map_vote.cfg file as well.

I wouldn't know where to start troubleshoot this. I don't have any errors showing no where. Would anyone have an idea?

GG VERSION: 5.1.611
SPE VERSION: 1.5.0f r85
ES VERSION: 2.1.1.370
ES CORE VERSION: 2.1.1.336
MANI VERSION: 1.2.22.8 VSP

[EventScripts] Loaded:
[EventScripts]   [ enabled] corelib
[EventScripts]   [ enabled] corelib/testlib
[EventScripts]   [ enabled] corelib/interfaces
[EventScripts]   [ enabled] corelib/linkedlist
[EventScripts]   [ enabled] corelib/repeat
[EventScripts]   [ enabled] corelib/score
[EventScripts]   [ enabled] corelib/xalias
[EventScripts]   [ enabled] corelib/textlib
[EventScripts]   [ enabled] corelib/playergetset
[EventScripts]   [ enabled] corelib/getbotname
[EventScripts]   [ enabled] corelib/damage
[EventScripts]   [ enabled] corelib/playervar
[EventScripts]   [ enabled] corelib/sqlitelib
[EventScripts]   [ enabled] corelib/statlog
[EventScripts]   [ enabled] corelib/quickcmd
[EventScripts]   [ enabled] corelib/queue
[EventScripts]   [ enabled] corelib/vecmath
[EventScripts]   [ enabled] corelib/services
[EventScripts]   [ enabled] corelib/foreach
[EventScripts]   [ enabled] corelib/average
[EventScripts]   [ enabled] corelib/keyfilter
[EventScripts]   [ enabled] corelib/uniqueid
[EventScripts]   [ enabled] corelib/timelib
[EventScripts]   [ enabled] corelib/keygroupsort
[EventScripts]   [ enabled] corelib/keygrouprand
[EventScripts]   [ enabled] corelib/keyrand
[EventScripts]   [ enabled] corelib/exp
[EventScripts]   [ enabled] corelib/isnumerical
[EventScripts]   [ enabled] corelib/escinject
[EventScripts]   [ enabled] corelib/getplayercount
[EventScripts]   [ enabled] corelib/usermsglib
[EventScripts]   [ enabled] corelib/inrange
[EventScripts]   [ enabled] corelib/entitylib
[EventScripts]   [ enabled] corelib/es_install
[EventScripts]   [ enabled] corelib/es_checkversion
[EventScripts]   [ enabled] corelib/es_mexec
[EventScripts]   [ enabled] corelib/clientcmd
[EventScripts]   [ enabled] gungame51
[EventScripts]       About:
                                GunGame 5.1 (v5.1.611)


[EventScripts]     Authors:
                                Michael Barr (XE_ManUp)
                                Luke Robinson (Monday)
                                Warren Alpert
                                Paul Smith (RideGuy)
                                Deniz Sezen (your-name-here)
                                Stephen Toon (satoon101)


[EventScripts]     Website:
                                http://forums.gungame.net/

[EventScripts]    Included Addons:
                                gg_turbo (v5.1.571)
                                gg_level_info (v5.1.592)
                                gg_leader_messages (v5.1.569)
                                gg_knife_pro (v5.1.571)
                                gg_dissolver (v5.1.571)
                                gg_handicap (v5.1.561)
                                gg_map_obj (v5.1.601)
                                gg_welcome_msg (v5.1.571)
                                gg_leaderweapon_warning (v5.1.549)
                                gg_suicide_punish (v5.1.550)
                                gg_deathmatch (v5.1.609)
                                gg_dead_strip (v5.1.592)
                                gg_map_vote (v5.1.571)
                                gg_stats_logging (v5.1.572)
                                gg_reload (v5.1.570)
                                gg_afk_punish (v5.1.549)
                                gg_random_spawn (v5.1.571)
                                gg_multi_level (v5.1.571)
                                gg_earn_nade (v5.1.571)
                                gg_spawn_protect (v5.1.550)
                                gg_warmup_round (v5.1.607)
                                gg_nade_bonus (v5.1.571)

[EventScripts]    Custom Addons:
                                gg_quake (v1.0)
                                gg_nocash (v1.0)

[EventScripts]   [ enabled] bnb_nnt
[EventScripts]   [ enabled] rcon_lock
[EventScripts]        name: Rcon_lock
[EventScripts]     version: 1.5
[EventScripts]         url:
[EventScripts]      author: Carbon-14
[EventScripts]    basename: rcon_lock
[EventScripts]    description: Protects your RCON password from hackers
[EventScripts]------------------------
Attachments
gg_map_vote.zip
(2.64 KiB) Downloaded 4368 times
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby Shadow » Mon Jan 30, 2012 3:20 am

OK no one answered, that’s sad... But for some how it now seems to be OK. I whish I'd have an explanation but have no clue :? I am still on my toes, watching and trying to investigate why it happened!
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby Shadow » Mon Feb 06, 2012 3:03 am

It seems to be related to map and fairly new as an issues cause not long ago i did not have this issue and I tried removing some addons but still the same.
For example I have "gg_fourway","gg_baller_texture" and I know I have others to but don't recall. Anyway those maps when vote takes place, the "(console) set map to: message doesn't come up when "gg_map_vote_time" ends even if everyone votes or not. If someone would have some idea why would this occur? It would be greatly appreciated even if it is not positive... It's just sad the fact of thinking I will need to remove good maps because of a vote issue. I can upload the files if someone wants to try them and see!
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby satoon101 » Mon Feb 06, 2012 6:12 am

I can test it out when I get the chance. I'm really not sure what could even possibly cause this to happen. Please upload the files, or just send me a PM if you wish.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby Shadow » Tue Feb 07, 2012 2:20 am

Here's 2 of them. and if I recall the map "Punishement" also does it....

Thanks for taking the time to look at it.
Attachments
Maps.zip
(1.19 MiB) Downloaded 4302 times
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby Shadow » Wed Feb 08, 2012 3:15 am

I am trying to go through the log files under cstrike\logs. I am able to find gg_levelup, gg_win, gg_multi_level etc and I am not seeing anything related to GG map vote or something that would show me when the map vote is being triggered. Shouldn't we have something showing?

I can see the below in the log files related to map but again the server has set the same map we were already in :(
CONSOLE : ma_setnextmap gg_ff-aztec
server_cvar: "nextlevel" "gg_ff-aztec"
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby Shadow » Thu Feb 09, 2012 3:17 am

Tonight, all night we've had an average of 8 to 12 players and for somehow when voting is triggered, it always go to back to gg_liberty, a previous map that won the vote and now that map always come back even if it is not part of the vote list displayed to the players. We always need to manually change the map to something else after the map change! This is totally insane! I am loosing all my players when no admins is on to change it :(
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby Shadow » Sat Feb 11, 2012 1:31 am

I think I have an idea where it could be coming from. It is something in between mani and gg51. my map vote system is set on gg51 and it is disabled on the mani side. I have removed most of the stuff from mani_server.cfg related to voting (reming them out) and now when gg51 voting kicks, users vote but doesn't set the next map winning vote and doesn't show the map vote result either, it just simply use the nexp map on the vote_map_list file.
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby satoon101 » Sun Feb 12, 2012 2:46 am

I still haven't had a chance to test anything yet. We haven't changed gg_map_vote since r571. There were 7 updates to it between 519 and 588 (which was the long gap between releases). Could you post (or upload) your ../cfg/gungame51/included_addon_configs/gg_map_vote.cfg so that I can test with your exact settings?

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby Shadow » Sun Feb 12, 2012 5:51 am

Here you go...

I removed mani_server.cfg file completely from the \cfg\ folder and added the below to lines to my autoexec.cfg file. I only load the mani addon VFD file. Not sure but at least like this I think I am able to have gg51 run map vote properly with no interference with mani config files / variables. Thank you for taking the time looking into it. On my side I will try to give as accurate input as possible without loosing my mind :shock: ! But One thing I can say is that my mani_server.cfg file voting section was disable "mani_voting 0".

es_flags remove notify mani_nextmap
mani_map_adverts 0
mani_adverts 0
mani_voting 0
Attachments
gg_map_vote.zip
(2.47 KiB) Downloaded 4298 times
Last edited by Shadow on Mon Feb 13, 2012 1:54 am, edited 1 time in total.
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby Shadow » Mon Feb 13, 2012 12:54 am

Nope... still the same issue :(

I just don't get it! It works fine when you are alone on the server but when few users join and all of a sudden, the previous map will always come back and console stops setting the next winning voting map! I am so sad, it was working fine previously, and now I am loosing lots of players (yes I am sentimental! :cry: )
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby Shadow » Fri Feb 17, 2012 1:17 am

Would this be of any help? I just noticed this error that I wasn't getting before in the GG51 log file

*******************************************************************************
*                                                                             *
*                          GUNGAME v5.1 ERROR LOGGING                         *
*                          HTTP://FORUMS.GUNGAME.NET/                         *
*                                                                             *
*       GG VERSION: 5.1.619                           IP: 174.142.61.5        *
*      SPE VERSION: 1.5.0f r85                      PORT: 27016               *
*         PLATFORM: NT                              DATE: 02-04-2012          *
*       ES VERSION: 2.1.1.370            ES CORE VERSION: 2.1.1.336           *
*       MM VERSION: 0                         SM VERSION: 0                   *
*     MANI VERSION: 1.2.22.8 VSP             EST VERSION: 0                   *
*                                                                             *
*******************************************************************************


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     LAST EVENT: [02/04/2012 @ 18:28:46]          TOTAL OCCURENCES: [0001]    
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Traceback (most recent call last):
  File "../eventscripts/es.py", line 272, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
  File "../eventscripts/gungame51/core/addons/events.py", line 128, in _call_event
    callback['callback'](event_var)
  File "../eventscripts/gungame51/modules/gameevents.py", line 171, in player_spawn
    if getPlayer(userid).isdead:
  File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
    raise e

UseridError: '181' is an invalid userid


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     LAST EVENT: [02/04/2012 @ 19:49:59]          TOTAL OCCURENCES: [0001]    
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Traceback (most recent call last):
  File "../eventscripts/es.py", line 272, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
  File "../eventscripts/gungame51/core/addons/events.py", line 128, in _call_event
    callback['callback'](event_var)
  File "../eventscripts/gungame51/modules/gameevents.py", line 171, in player_spawn
    if getPlayer(userid).isdead:
  File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
    raise e

UseridError: '230' is an invalid userid


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     LAST EVENT: [02/04/2012 @ 21:48:28]          TOTAL OCCURENCES: [0001]    
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Traceback (most recent call last):
  File "../eventscripts/es.py", line 272, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
  File "../eventscripts/gungame51/core/addons/events.py", line 128, in _call_event
    callback['callback'](event_var)
  File "../eventscripts/gungame51/modules/gameevents.py", line 171, in player_spawn
    if getPlayer(userid).isdead:
  File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
    raise e

UseridError: '295' is an invalid userid


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     LAST EVENT: [02/04/2012 @ 21:59:59]          TOTAL OCCURENCES: [0001]    
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Traceback (most recent call last):
  File "../eventscripts/es.py", line 272, in triggerEvent
    self.EventListeners[eventname][listener](event_var)
  File "../eventscripts/gungame51/core/addons/events.py", line 128, in _call_event
    callback['callback'](event_var)
  File "../eventscripts/gungame51/modules/gameevents.py", line 171, in player_spawn
    if getPlayer(userid).isdead:
  File "../eventscripts/_libs/python/playerlib.py", line 1310, in getPlayer
    raise e

UseridError: '304' is an invalid userid


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     LAST EVENT: [02/05/2012 @ 00:13:20]          TOTAL OCCURENCES: [0006]    
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Traceback (most recent call last):
  File "../eventscripts/es.py", line 279, in tick
    x()
  File "../eventscripts/_libs/python/gamethread.py", line 173, in tick
    _executenode(first)
  File "../eventscripts/_libs/python/gamethread.py", line 155, in _executenode
    function(*a, **kw)
  File "../eventscripts/gungame51/scripts/included/gg_map_vote/gg_map_vote.py", line 662, in voteCountDown
    voteEnd()
  File "../eventscripts/gungame51/scripts/included/gg_map_vote/gg_map_vote.py", line 555, in voteEnd
    'totalVotes': total_votes, 'votes': win_votes}, True)
  File "../eventscripts/gungame51/core/messaging/shortcuts.py", line 13, in msg
    MessageManager().msg(filter, string, tokens, prefix)
  File "../eventscripts/gungame51/core/messaging/__init__.py", line 259, in msg
    % (prefix, self.__format_string(string, tokens, userid)))
  File "../eventscripts/gungame51/core/messaging/__init__.py", line 194, in __format_string
    string = __strings__(string, tokens, language)
  File "../eventscripts/_libs/python/langlib.py", line 73, in __call__
    return self.expand(text, opts, lang)
  File "../eventscripts/_libs/python/langlib.py", line 67, in expand
    return s.substitute(opts)
  File "../eventscripts/_engines/python/lib/string.py", line 170, in substitute
    return self.pattern.sub(convert, self.template)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 15: ordinal not in range(128)


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     LAST EVENT: [02/05/2012 @ 05:37:44]          TOTAL OCCURENCES: [0001]    
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Traceback (most recent call last):
  File "../eventscripts/es.py", line 279, in tick
    x()
  File "../eventscripts/_libs/python/gamethread.py", line 173, in tick
    _executenode(first)
  File "../eventscripts/_libs/python/gamethread.py", line 155, in _executenode
    function(*a, **kw)
  File "../eventscripts/gungame51/scripts/included/gg_map_vote/gg_map_vote.py", line 662, in voteCountDown
    voteEnd()
  File "../eventscripts/gungame51/scripts/included/gg_map_vote/gg_map_vote.py", line 515, in voteEnd
    'votes': 0}, True)
  File "../eventscripts/gungame51/core/messaging/shortcuts.py", line 13, in msg
    MessageManager().msg(filter, string, tokens, prefix)
  File "../eventscripts/gungame51/core/messaging/__init__.py", line 259, in msg
    % (prefix, self.__format_string(string, tokens, userid)))
  File "../eventscripts/gungame51/core/messaging/__init__.py", line 194, in __format_string
    string = __strings__(string, tokens, language)
  File "../eventscripts/_libs/python/langlib.py", line 73, in __call__
    return self.expand(text, opts, lang)
  File "../eventscripts/_libs/python/langlib.py", line 67, in expand
    return s.substitute(opts)
  File "../eventscripts/_engines/python/lib/string.py", line 170, in substitute
    return self.pattern.sub(convert, self.template)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 15: ordinal not in range(128)



 
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby satoon101 » Fri Feb 17, 2012 2:38 am

That error definitely helps. All of the invalid userid errors are the same, and shouldn't really affect anything.

The second codec error should still be allowing the vote to end. It does prevent the map vote from cleaning up the vote, which "might" cause issues with the next map vote.

The first codec error, however, stops the next map from being set. For now, I'll move the order that some things are executed in that section, so that if either of the 2 errors occur, it will only affect not sending the message to players. I'm not "fully" sure what would be causing the errors, though. I "believe" it might have to do with the name(s) of one or more of your maps. Does this issue happen when specific maps "should" win the vote?

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby Shadow » Fri Feb 17, 2012 4:06 am

It is really random, like tonight, it was crosshair coming back all the time unless I reboot the server. And the voting may start working on its own without having to reboot. I had baller_texture, gg_ff-aztec, gg_fourway, gg_punishment, aim_herbie, gg_santasi_feild, gg_ruins_dawns. I had others but hard to tell. alI those maps were working fine not long ago with voting and besides reactivating gg_quake since you restored the old variable back from the last gg51 update, added 5 new maps, activating multi-level, these are pretty much my last modifications / updates from my side that I can remember of. Also I have seen those maps on some nights not causing any issues at all.

I'll see if I can get players one night to vote for specific maps to see if ti is related to some specific maps as you are mentioning. The thing is that I let GG51 run the voting process. I can't really force map vote on specific maps unless you have an alternative besides reducing my map list to those ones. But I am open for suggestion :)
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby Shadow » Sun Feb 19, 2012 2:33 am

2 or 3 versions behind when I only had 3 players on the server or even just one and everyone voted, map vote was ending right away when every players voted and console was setting the next winning map and now that doesn’t work anymore. Map vote waits till it reaches the time out for somehow. So I am guessing it is not recognizing the players in the game or can’t differentiate player’s vs bots. I doubt very much it has to do with map specific but more with player variable issue. Just a thought...
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby satoon101 » Sun Feb 19, 2012 5:00 am

I really think the map voting needs a complete rewrite, but that will take a lot of time to do. If/when I get some time, I'll work on it, but it is going to probably take a while till I can get a finished script. I will probably split the map voting and rtv up into separate scripts, too. Haven't fully decided how I'm going to handle everything as of yet. There are so many things I want to improve upon/add to GG5.1, and so little time to do so.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby Shadow » Sun Feb 19, 2012 6:11 pm

So what are people doing then for voting? If I deactivate the map_vote, GG51 will use all the available maps listed under Cstrike/maps in alphabetical order. Is there a way I can get GG51 to read the map cycle from a file even when gg_map_vote is deactivated?

Mean while you rebuilt the voting I could use Mani but Mani doesn't seem to recognize "Levels" in GG. We can only set map vote by the amount of time left in the game. Is there a work around that?
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby satoon101 » Mon Feb 20, 2012 9:55 pm

Well, you can let Mani take care of the Voting by setting gg_map_vote to 2 and set gg_map_vote_command to use Mani's command, which it should be by default. You might change the number in it to 6 if you want 6 maps in the vote. When a player reaches the appropriate level, the vote will be sent.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby Shadow » Tue Feb 21, 2012 1:52 am

Nice... GG51 triggers Mani's voting at the proper level. Thank you Satoon, it is greatly appreciated :D
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby satoon101 » Tue Feb 21, 2012 2:29 am

No problem. It will probably be a while till we get an updated version of Map Voting fully functional. It is on the list of things to work on. Once we have a version, we'll update the SVN for the Beta testers to test out.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Next


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron