Raised This Month: $32 Target: $400
 8% 

[TF2] BuiltinVotes MapChooser


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-16-2012 , 12:51   Re: [TF2] BuiltinVotes MapChooser
Reply With Quote #21

Quote:
Originally Posted by clutchh View Post
This has been causing a lot of crashes on our servers, which sucks since this is such a great plugin. The crashes always happen after the vote is completed.

No error logs and the only dump that gave any good info pointed to builtinvotes.ext.2.ep2v.dll I believe. I'm hoping you can figure out the issue, as we want to keep running it. Thanks!
Is it immediately after the vote completes, or is something else going on in between?

Quote:
Originally Posted by cool_myll View Post
Yeah i reported crashes to on the UMC plugin. I think it has to do with the extension.
More details would be helpful. To be honest, we should probably be having this conversation on the extension thread, but...
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
clutchh
SourceMod Donor
Join Date: Feb 2008
Old 01-16-2012 , 19:01   Re: [TF2] BuiltinVotes MapChooser
Reply With Quote #22

From what I heard, it happens right after the vote completes.
clutchh is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-20-2012 , 10:37   Re: [TF2] BuiltinVotes MapChooser
Reply With Quote #23

I uploaded BuiltinVotes 0.5.1, but I haven't had a chance to test it.

I made some changes that should fix some memory leaks [and hopefully crashing issues] related to the revote action and the extension being unloaded.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-20-2012 at 10:37.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-19-2012 , 15:06   Re: [TF2] BuiltinVotes MapChooser
Reply With Quote #24

BuiltinVotes version 0.5.4 has been released. This release should fix bugs with changing levels during a vote crashing the server (0.5.2) as well as incorrectly blocking votes if the map was changed during a vote (0.5.3) and informing the plugin that the vote was canceled and ended if the map was changed during a vote, allowing the calling plugin to properly clean up its vote handles (0.5.4).

It also fixes a minor issue where disconnecting players were still been counted for purposes of ending the vote. In layman's terms, if someone disconnects during a vote, the vote should now properly end when everyone else has voted.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 02-19-2012 at 15:06.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-21-2012 , 15:14   Re: [TF2] BuiltinVotes MapChooser
Reply With Quote #25

BuiltinVotes has had some additional issues we're working on resolving. If you're still using 0.5.1, you may want to hold off on updating until we get them sorted... although so far, it looks like 0.5.6 has fixed some of the crashing issues, at the expense of not allowing a second vote if the first was canceled. (0.5.7 was just released, but is untested. It's supposed to fix this and some revote issues).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
MON@H Rasta
Junior Member
Join Date: Dec 2010
Location: Kyiv, Ukraine
Old 09-23-2012 , 16:16   Re: [TF2] BuiltinVotes MapChooser
Reply With Quote #26

Added this plugin + MapChooser Extended, but the voting don't start at all. Could you, plz, help me to understand why?
Code:
[SM] Listing 21 plugins:
  01 "Admin File Reader" (1.4.6) by AlliedModders LLC
  02 "Admin Help" (1.4.6) by AlliedModders LLC
  03 "Admin Menu" (1.4.6) by AlliedModders LLC
  04 "Anti-Flood" (1.4.6) by AlliedModders LLC
  05 "Basic Ban Commands" (1.4.6) by AlliedModders LLC
  06 "Basic Chat" (1.4.6) by AlliedModders LLC
  07 "Basic Comm Control" (1.4.6) by AlliedModders LLC
  08 "Basic Commands" (1.4.6) by AlliedModders LLC
  09 "Basic Info Triggers" (1.4.6) by AlliedModders LLC
  10 "Basic Votes" (1.4.6) by AlliedModders LLC
  11 "BuiltinVotes MapChooser" (1.4.0.1) by AlliedModders LLC, Powerlord
  12 "BuiltinVotes Revote" (1.0) by Powerlord
  13 "Client Preferences" (1.4.6) by AlliedModders LLC
  14 "Fun Votes" (1.4.6) by AlliedModders LLC
  15 "HLstatsX CE Ingame Plugin" (1.6.18) by psychonic
  16 "Nextmap" (1.4.6) by AlliedModders LLC
  17 "Map Nominations" (1.4.6) by AlliedModders LLC
  18 "Player Commands" (1.4.6) by AlliedModders LLC
  19 "Reserved Slots" (1.4.6) by AlliedModders LLC
  20 "Sound Commands" (1.4.6) by AlliedModders LLC
  21 "SuperLogs: TF2" (2.0.32) by Thomas "CmptrWz" Berezansky & psychonic
UPD. Sorry. Everything works great. Thanks! ^)

Last edited by MON@H Rasta; 09-23-2012 at 16:26.
MON@H Rasta is offline
Send a message via ICQ to MON@H Rasta Send a message via Skype™ to MON@H Rasta
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 10-08-2012 , 00:22   Re: [TF2] BuiltinVotes MapChooser
Reply With Quote #27

Hi Powerlord,

It appears that you haven't set FCVAR_NOTIFY on your version convar (the only required flag ). What's the max length for a map? It looks like you're mixing 32, 33, 64, etc for your map buffer :s

Besides some scary things
PHP Code:
                    while (strcmp(mapVOTE_EXTENDfalse) == 0)
                    {
                        
item GetRandomInt(0count 1);
                        
GetBuiltinVoteItem(menuitemmapsizeof(map));
                    } 
Looks good!
KyleS is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-08-2012 , 02:01   Re: [TF2] BuiltinVotes MapChooser
Reply With Quote #28

Quote:
Originally Posted by KyleS View Post
Hi Powerlord,

It appears that you haven't set FCVAR_NOTIFY on your version convar (the only required flag ).
Whoops, I probably forgot about it.

Quote:
Originally Posted by KyleS View Post
What's the max length for a map? It looks like you're mixing 32, 33, 64, etc for your map buffer :s
95% of the code from this plugin is from SourceMod's MapChooser, version 1.4.0 as I recall. Not surprisingly, it has all the quirks of MapChooser, such as map strings being different sizes in different spots in the code. In 1.4.6, the sizes are:
32 on lines 248, 573, 686, 813, and 875,
33 on lines 108. 267, 932, 962, 999, 1043, 1101, and 1120.
64 on lines 287 and 797.

Quote:
Originally Posted by KyleS View Post
Besides some scary things
PHP Code:
                    while (strcmp(mapVOTE_EXTENDfalse) == 0)
                    {
                        
item GetRandomInt(0count 1);
                        
GetBuiltinVoteItem(menuitemmapsizeof(map));
                    } 
Looks good!
This block is lifted directly from mapchooser.sp, lines 822-826 in 1.4.6's copy:
PHP Code:
                while (strcmp(mapVOTE_EXTENDfalse) == 0)
                {
                    
item GetRandomInt(0count 1);
                    
GetMenuItem(menuitemmapsizeof(map));
                } 
The only thing that changed was the function it was calling.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-08-2012 at 02:02.
Powerlord is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 01-29-2013 , 04:23   Re: [TF2] BuiltinVotes MapChooser
Reply With Quote #29

edit2: everything working again, thank you very much!
edit: I see: https://forums.alliedmods.net/showth...162164&page=24
server are crashing also for me :c
Linux, TF2.
I was running xxx42 SM dev. an no prob.

updated today to latest dev. of SM
getting error:
Spoiler
__________________

Last edited by AeroAcrobat; 01-30-2013 at 23:25.
AeroAcrobat 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 21:35.


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