Raised This Month: $12 Target: $400
 3% 

Mapchooser ignoring vote.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-06-2021 , 14:43   Mapchooser ignoring vote.
Reply With Quote #1

Situation:
Amxx voting fails by just picking random maps disregarding what we voted for.

Here was a big one. It was being engaged on one map. Had it sand-boxed one that 1 map, I thought.
This was due to mp_maxrounds being added by Gungame. Opposing Force does not have rounds.

Quote:
Originally Posted by DJEarthQuake View Post
@GordonFreeman (RU) making mp_maxrounds CVAR that does not already exist in Half-Life and Half-Life Opposing Forces, then setting it to over zero, hoses mapchooser until plugin is removed and server is shutdown. Restarting appears to retain the turmoil.

Code:
            //set_cvar_num("mp_maxrounds",1337) // i dont know how to deregister it :p             set_cvar_string("mp_maxrounds","")
I have since totally eliminated that part from Gungame and recoded it work and not wreck havoc.
Meanwhile I have been remaking mapchooser and nextmap to account for games prior to Counter-Strike.

Just a simple RTV.
Original code.
Code:
/*Install instructions: Add z to cmdaccess.ini entry "amx_votemapmenu"   "jz" ; mapsmenu.amxx*/
#include amxmodx

public plugin_init()
    register_plugin("Simpler RTV", "1.0", "SPiNX")&
    register_clcmd("say rtv","handlesay")

public handlesay(id)
    client_cmd(id,"amx_votemapmenu");
Updates.
Must have X number frags to interrupt good game with RTV and more for menu designer.
2 other plugins required.
Written for both dev versions and 182 in 1 script.
https://github.com/djearthquake/amxx...mapchooser.sma
https://github.com/djearthquake/amxx...ve/nextmap.sma
Handles RTV, frags, OP4CTF scoring. If playing HL cvar for gametitle. Cvar for playing random Half-life gametracks at chattime/ map (down)load.
Code:
"amx_nextmap_finale", "1" /*0- no end game finale | 1-tunes | 2-finale,tunes | 3-finale,tunes,gametitle*/
Recommended not required if playing Capture the flag or Deathmatch modes/maps.
https://github.com/djearthquake/amxx...imeleft%2B.sma
Does not display FF on deathmatch unless it is enabled. Speaks the frags left if less on the time slots. Otherwise speaks the time remaining as usual.

If anybody wants mp_chattime on all mods and unlock it from Cstrike from being 10 sec max, using a task in the design instead of Event 30 will accomplish it. That was all I had for future refinements.
__________________

Last edited by DJEarthQuake; 07-06-2022 at 00:26. Reason: Update
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-06-2021 , 23:20   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #2

I don't see any functional changes between 1.8.2 and 1.9.0 for mapchooser.sma. In nextmap.sma, it only writes to amx_nextmap at the beginning of the map and then only if the nextmap is not a valid map when someone says nextmap in chat.

So, I'm not sure how you could see this type of issue. Are you sure you were using the actual version from 1.9.0?
__________________
fysiks is offline
Old 05-10-2021, 10:12
DJEarthQuake
This message has been deleted by DJEarthQuake. Reason: Sandbox was tainted.
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 05-11-2021 , 06:22   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #3

Post it in github. And if you have a solution, post it on github
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-14-2021 , 05:35   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #4

Need a lot more testers first to see what all is affected. Reverting to 1.82 script is a functional solution.
__________________
DJEarthQuake is offline
OneEyedJacks
Junior Member
Join Date: Feb 2021
Old 07-19-2021 , 07:32   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #5

This has been bothering me for quite some time now, it is extremely frustrating.

Why do I need to use AMX 1.9 you might ask, if map voting is so important to me why do I not stick with 1.82? First of all, for Opposing Force, very few to no plugins actually work with AMX 1.82 in op4. So I feel like I am forced to use 1.9 to get the server to run how I like it. (gren trails, custom environment, advanced bullet damage etc).

So I have made the decision that I prefer mods over the map voting system, however running a server that has hundreds of maps will require some sort of voting as players may not like the map that is currently being played.

I have tried AMX 1.9 with Mapchooser3, and Mapchooser4. Both seem to have the same issues.

The server cannot seem to recognise the next map, the server itself will follow the mapcycle however I find If I change map from outside of the cycle it, it loses track and it seems to almost fall 1 map behind, or it will always say the next map is one that we have previously played.

If we get to the end of the map and we have a map vote, if all players voted for 1 map, the likelihood of it changing to that map (unless by chance it was next on the mapcycle) is not very likely. It simply does not work.

Another issue that has been around since 1.83 and mapchooser3, is that there is no "mp_chattime", once the map ends, it very quickly switches to the next map so you cannot view your scores, which to me is essential, especially for the very competitive matches.

The only explanation that I have is that the map chooser and the next map are not talking to each other.

I am not 100% certain if this issues exists in HLDM as I have no reason to update to 1.9 on my server, this is purely an issue with AMX 1.9 and opposing force.

So basically everything DJ Earthquake has said, is the same experience that I am having and I would love for this to get fixed.
__________________
Let's make Op4 great again! https://www.oneeyedjacks.uk

Last edited by OneEyedJacks; 07-30-2021 at 07:09.
OneEyedJacks is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-28-2021 , 17:36   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #6

Since both of your descriptions don't make much sense, it will probably require some significant debugging to get to the bottom of this.
__________________
fysiks is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-29-2021 , 19:58   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #7

I added some debugging to these two plugins (based on 1.9). Run with these until you see the issue and then attach the resulting debug file "opposing_forces_mapchooser_debug.txt" (found in the mod root directory).

nextmap.sma
mapchooser.sma
__________________

Last edited by fysiks; 07-29-2021 at 20:07.
fysiks is offline
OneEyedJacks
Junior Member
Join Date: Feb 2021
Old 07-30-2021 , 07:12   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #8

Just to note for one of the issues that I am having which is cutting chattime down to 0. This issue only happens if I have nextmap.amxx enabled. it also cannot determine what the next map is. I am starting to think maybe the issue lies with the nextmap rather than the mapchooser. Hopefully debugging this will help bring forward a solution.
__________________
Let's make Op4 great again! https://www.oneeyedjacks.uk
OneEyedJacks is offline
OneEyedJacks
Junior Member
Join Date: Feb 2021
Old 07-30-2021 , 15:15   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #9

Ok, so the chat time issue is resolved, which is great however, you will see here op4_grass was voted, yet op4_bodies came on - I have other instances of this if you need more. Click here for the whole log.

L 07/30/2021 - 191:04: Number of maps loaded: 355
L 07/30/2021 - 19:44:03: countVote() executed (2,2, 0)
L 07/30/2021 - 19:44:03: dewyd (2) chose op4_grass (1)
L 07/30/2021 - 19:44:12: countVote() executed (3,2, 1)
L 07/30/2021 - 19:44:12: Party Lights Dub (3) chose op4_grass (2)
L 07/30/2021 - 19:44:12: countVote() executed (4,4, 0)
L 07/30/2021 - 19:44:12: One Eyed Jacks (4) chose op4_disposal (1)
L 07/30/2021 - 19:44:18: checkVotes() executed
L 07/30/2021 - 19:44:18: op4_mf2 has 0 votes
L 07/30/2021 - 19:44:18: op4_dm1 has 0 votes
L 07/30/2021 - 19:44:18: op4_grass has 2 votes
L 07/30/2021 - 19:44:18: op4_satellite has 0 votes
L 07/30/2021 - 19:44:18: op4_disposal has 1 votes
L 07/30/2021 - 19:44:18: Extend has 0 votes
L 07/30/2021 - 19:44:18: None has 0 votes
L 07/30/2021 - 19:44:18: amx_nextmap was set to op4_grass
L 07/30/2021 - 19:46:02: changeMap() executed
L 07/30/2021 - 19:46:02: chat time is 10.000000
L 07/30/2021 - 19:46:08: Current Map: op4_bodies
__________________
Let's make Op4 great again! https://www.oneeyedjacks.uk

Last edited by OneEyedJacks; 07-30-2021 at 15:17.
OneEyedJacks is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-30-2021 , 19:24   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #10

So, it looks like Opposing Forces doesn't have the concept of "chat time" (i.e. the mp_chattime cvar) like the other mods do. This prevents the nextmap plugin from executing the changelevel command before the game itself changes the map like normal.

I've created some changes to nextmap to create the chat time behavior that I hope will fix the issue. Use the same links that I've given previously and let me know if it works for you. Please post the same debug log file regardless of the result so that I can try to verify that it works as I expect it.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode