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

nextmap = pending votes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HanoverFist
Member
Join Date: Oct 2007
Old 09-16-2008 , 22:33   nextmap = pending votes
Reply With Quote #1

I am running sourcemod 1.0.4 and I have the map vote at end of round disabled. And that part works. But when you type nextmap it still say pending vote instead of what the map is.
HanoverFist is offline
HanoverFist
Member
Join Date: Oct 2007
Old 09-16-2008 , 23:16   Re: nextmap = pending votes
Reply With Quote #2

I deleted the mapchooser.cfg and let it make a new one. it doens't even have the option to diable the end of round vote.
HanoverFist is offline
curlefry
Senior Member
Join Date: Jun 2008
Location: Georgia, USA
Old 09-17-2008 , 15:04   Re: nextmap = pending votes
Reply With Quote #3

Quote:
Originally Posted by HanoverFist View Post
I deleted the mapchooser.cfg and let it make a new one. it doens't even have the option to diable the end of round vote.
Move mapchooser.smx and rockthevote.smx from your plugins folder to plugins/disabled. This will disable the nextmap vote/plugin and return to your mapcycle in mapcycle.txt
__________________
curlefry is offline
Send a message via MSN to curlefry
spacedkadet
Member
Join Date: May 2008
Old 09-17-2008 , 17:31   Re: nextmap = pending votes
Reply With Quote #4

I modified mine to work, see the attached file. It just changes the trigger to always show the value of sm_nextmap regardless of any votes or anything.
I had to do this as my bug request was getting nowhere ;)
Attached Files
File Type: smx basetriggers.smx (5.5 KB, 159 views)
spacedkadet is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-17-2008 , 19:13   Re: nextmap = pending votes
Reply With Quote #5

Please post the .sp file so we can see the source.
bl4nk is offline
spacedkadet
Member
Join Date: May 2008
Old 09-17-2008 , 19:24   Re: nextmap = pending votes
Reply With Quote #6

oops sorry, here you go,

I just copied the lines from if to the else ones to get rid of the whole "pending vote" thing. I know this means that if you have the end of map vote enabled youll still see the next cycle map instead of pending vote but i dont use the end of map vote on our servers. All we ever got when typing nextmap in chat was "[SM] Pending Vote" which was real annoying so i did this.

typing "nextmap" in chat always shows the value of sm_nextmap regardless of end votes. Not perfect but better than the bug.
Attached Files
File Type: sp Get Plugin or Get Source (basetriggers.sp - 611 views - 10.2 KB)

Last edited by spacedkadet; 09-17-2008 at 19:27. Reason: rubbish english
spacedkadet is offline
HanoverFist
Member
Join Date: Oct 2007
Old 09-18-2008 , 05:50   Re: nextmap = pending votes
Reply With Quote #7

I was running the 1.0.4 release and it wasnt writing the end of mapvote option in the .cfg. I went back to using the latest snapshot and it's working again. I am now able to disable the end of mapvote in the cfg. Thank you all for your help in this. Oh and I tried your basetiggers.smx with the 1.0.4 version and it didn't make a difference.
Attached Files
File Type: sp Get Plugin or Get Source (basetriggers.sp - 759 views - 5.5 KB)
File Type: sp Get Plugin or Get Source (mapchooser.sp - 278 views - 14.5 KB)

Last edited by HanoverFist; 09-18-2008 at 05:53.
HanoverFist is offline
chundo
Senior Member
Join Date: May 2008
Old 09-19-2008 , 15:05   Re: nextmap = pending votes
Reply With Quote #8

This behavior should be changed in the SM release IMO. "Pending Vote" is a silly response. If the vote is canceled or mapchooser is not set to do automatic voting, the server will just move to the next map - so that's what "nextmap" should show, until it is changed by a vote.

On my server, I don't do automatic voting, so "nextmap" is worthless to my users unless I modify basetriggers.sp (which I'm about to do). At minimum, "nextmap" should show the next map when end-of-round votes are disabled in mapchooser.
__________________
chundo is offline
spacedkadet
Member
Join Date: May 2008
Old 09-19-2008 , 20:08   Re: nextmap = pending votes
Reply With Quote #9

Quote:
Originally Posted by chundo View Post
This behavior should be changed in the SM release IMO. "Pending Vote" is a silly response. If the vote is canceled or mapchooser is not set to do automatic voting, the server will just move to the next map - so that's what "nextmap" should show, until it is changed by a vote.

On my server, I don't do automatic voting, so "nextmap" is worthless to my users unless I modify basetriggers.sp (which I'm about to do). At minimum, "nextmap" should show the next map when end-of-round votes are disabled in mapchooser.
exactly, this is very odd way of doing things indeed.

The one i posted above works fine with 1.1.0dev (thats the one i modified) as our server is perfect.

Last edited by spacedkadet; 09-19-2008 at 21:22.
spacedkadet is offline
GEVREKA
Member
Join Date: Sep 2006
Old 07-19-2009 , 19:13   Re: nextmap = pending votes
Reply With Quote #10

The most simple way to get rid of this kind of stuff is to...

Open "basetriggers.sp" (any version), change these lines:

Code:
ReplyToCommand(client, "[SM] %t", "Pending Vote");

PrintToChatAll("[SM] %t", "Pending Vote");

PrintToChat(client, "[SM] %t", "Pending Vote");
To:

Code:
ReplyToCommand(client, "[SM] %t", "Next Map", map);

PrintToChatAll("[SM] %t", "Next Map", map);

PrintToChat(client, "[SM] %t", "Next Map", map);
And to compile . Also if somebody have attached to his server HLSW Info plugin, he had also to change in "hlswinfo.sp" this line:

Code:
Format(sNextMap, sizeof(sNextMap), "%t", "Pending Vote");
To:

Code:
GetNextMap(sNextMap, sizeof(sNextMap));
And compile .

It works for me & it's the best way for now (if you have nextmap + nominations + rockthevote + mapchooser plugins in \addons\sourcemod\plugins folder) . And maybe... for future ? Wh0 kn0wz.
GEVREKA is offline
Reply



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 18:30.


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