Raised This Month: $319 Target: $400
 79%   Almost there!

HL MAPCHOOSER.SMA BUG DISCUSSION e.g. "mp_fraglimit" gets no vote populated


Post New Thread Reply   
 
Thread Tools Display Modes
OneEyedJacks
Junior Member
Join Date: Feb 2021
Old 07-31-2021 , 13:47   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #11

Same problems! I downloaded the sma file and compiled myself results are - Here

Although no longer instantly switches map at the end of game which is great, however doesn't go to the selected map.

L 07/31/2021 - 186:46: Number of maps loaded: 355
L 07/31/2021 - 187:49: countVote() executed (3,3, 0)
L 07/31/2021 - 187:49: Frame Stack (3) chose op4_tpark (1)
L 07/31/2021 - 187:50: countVote() executed (4,1, 0)
L 07/31/2021 - 187:50: One Eyed Jacks (4) chose op4_u_boat (1)
L 07/31/2021 - 188:01: checkVotes() executed
L 07/31/2021 - 188:01: op4_pool_day has 0 votes
L 07/31/2021 - 188:01: op4_u_boat has 1 votes
L 07/31/2021 - 188:01: op4_edge has 0 votes
L 07/31/2021 - 188:01: op4_tpark has 1 votes
L 07/31/2021 - 188:01: op4_demise has 0 votes
L 07/31/2021 - 188:01: Extend has 0 votes
L 07/31/2021 - 188:01: None has 0 votes
L 07/31/2021 - 188:01: amx_nextmap was set to op4_u_boat
L 07/31/2021 - 189:45: changeMap() executed
L 07/31/2021 - 189:45: chat time is 10.000000
L 07/31/2021 - 189:45: timelimit is 3
L 07/31/2021 - 189:52: Manually handling chattime
L 07/31/2021 - 189:52: Current Map: op4_bodies
__________________
One Eyed Jacks HL / Op4 - 151.236.38.188: 27015, 27016, 27017
Let's make Op4 great again! https://www.oneeyedjacks.uk
OneEyedJacks is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-31-2021 , 19:46   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #12

One Eyed Jacks and I did some interactive debugging and ultimately found that the because Opposing Forces doesn't have an mp_chattime cvar, it was using a default value of 10 seconds which was allowing the server to change the map normally before nextmap could change the map according to the amx_nextmap cvar. This value of 10 seconds was implemented in

I've created an issue and a pull request to fix this.
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-05-2021 , 07:55   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #13

Register_event("30", "changeMap", "a") is what controls the Amxx metamod mapchange. The map picking is done 129 sec before mp_timelimit runs out. If this mp_chattime is too long for whatever reason the metamod instructions are ignored and server just is back to running like metamod is not there and goes off the mapcycle. Now that I can believe!!
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell

Last edited by DJEarthQuake; 08-06-2021 at 17:14. Reason: Mix up
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-05-2021 , 22:57   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #14

Did you accidentally post in the wrong thread?
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-06-2021 , 12:37   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #15

In retrospect it appears so!
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell

Last edited by DJEarthQuake; 08-09-2021 at 15:07. Reason: nvm
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-06-2021 , 20:32   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #16

Quote:
Originally Posted by DJEarthQuake View Post
Register_event("30", "changeMap", "a") is what controls the Amxx metamod mapchange. The map picking is done 129 sec before mp_timelimit runs out. If this mp_chattime is too long for whatever reason the metamod instructions are ignored and server just is back to running like metamod is not there and goes off the mapcycle. Now that I can believe!!
For games that support mp_chattime, it guarantees that that amount of time will elapse between showing the scoreboard and changing the map. The nextmap plugin assumes this logic and adds 2 seconds so that AMX Mod X can change the map before the server's normal functionality does.
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-06-2021 , 20:38   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #17

What if amx_vote_time is real high? I did not see anything to consider that in the base code yet. Have you?
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-06-2021 , 20:39   Re: Amxx 1.9+ Opposing Force map vote bug
Reply With Quote #18

Quote:
Originally Posted by DJEarthQuake View Post
What if amx_vote_time is real high? I did not see anything to consider that in the base code yet. Have you?
No, but that's not relevant to this thread.
__________________
fysiks is offline
Old 08-06-2021, 20:41
DJEarthQuake
This message has been deleted by DJEarthQuake. Reason: Renamed thread.
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 19:04.


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