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

Custom Votes v0.5.6 (1/07)


Post New Thread Reply   
 
Thread Tools Display Modes
badwolf
Senior Member
Join Date: Apr 2010
Old 10-06-2010 , 19:57   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #671

Custom Votes started crashing our server with the upgrade to SourceMod 1.3.5-hg3052, anytime a custom vote is voted on. For instance, we have a votegravity, as mentioned earlier in this thread, and when it pops up the low vs normal and someone selects one, the server crashes.
badwolf is offline
war450
Member
Join Date: Apr 2006
Old 10-07-2010 , 08:21   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #672

Having a small issue with my vote... trying to find a way to Execute lots of commands with sm_future but sm_future requires you to do this

sm_future 1 "command +arg";sm_future 1 "anther command"; esc

so, any ideas on how to achieve using multi-able commands like this

Code:
 "Votes"
    "gm_redbonus"
    {
        "title"        "Apply red Bonus on #1"
        "type"        "confirm"
        "command"    "sm_future 0.5 sm_beacon #1;sm_colorplayer #1 100 0 0 -1;sm_createparticle #1 inferno_grow_bigbbox yes 20;sm_future 0.1 sm_gravity #1 0.30;sm_future 0.3 sm_gravity #1 1.00;sm_future 0.1 sm_beacon #1;sm_colorplayer #1 -1 -1 -1 -1"
        "trigger"
        {
            "notice"    "%u voted to apply Red Bonus on #1"
            "percent"    "5"
            //"count"        "1"
            "delay"        "0"
            "expires"    "10"
        }
        "params"
        {
            "1"            "player"
        }
       }
       }
that code spits out a error with customvotes ._.; if any one can help with this that would be great.
war450 is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 10-07-2010 , 13:47   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #673

You might have seen a pm from when you posted this on the other plugin. Just include all of those commands in a cfg file. Then use the vote to exec the cfg file and you will be fine.
jameless is offline
war450
Member
Join Date: Apr 2006
Old 10-07-2010 , 16:23   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #674

well, the config file is a great idea but still got to some how apply the attributes on to the voted player (#1). will the define for the #1 carry over to the executed config and i'm sure the command will look like something like this?


command "#1 exec file/path"??

Last edited by war450; 10-07-2010 at 16:26.
war450 is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 10-07-2010 , 17:44   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #675

You're right it won't send the player into the cfg file. I know the sm_future command requires quotes around the command you want to run in the future. Perhaps instead of using quotes you can try using ' ' around each command.
jameless is offline
war450
Member
Join Date: Apr 2006
Old 10-08-2010 , 08:01   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #676

Seems like there is a character limit on the commands and surrounding them with ' rather then " creates unexpected bugs with the defines. it won't execute the command at all. if it's surrounded with '.
war450 is offline
badwolf
Senior Member
Join Date: Apr 2010
Old 10-08-2010 , 09:46   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #677

Can't you put the stuff in a config.. then do like:

command "alias targetplayer #1; exec actions.cfg;"

then in actions.cfg do:

sm_beacon targetplayer;

I've never tried something like that, but you'd think its at least that powerful.
badwolf is offline
extremo
Member
Join Date: Jan 2010
Old 10-27-2010 , 17:32   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #678

Hi,

since update to 1.3.5 / Polycount update server crashes directly after the following vote:

"blockWrangler"
{
"title" "Block Wrangler?"
"type" "confirm"
"percent" "60"
"votes" "4"
"command" "sm_unlock_block Wrangler;sm_classrestrict_blu_engineers 4;sm_classrestrict_red_engineers 4"
"trigger"
{
"command" "/blockwrangler"
"notice" "%u wants to block Wrangler."
"percent" "30"
"count" "4"
}
}

I updated to the final version of 1.3.5 but it still keeps crashin. Executing the command via rcon works fine (Unlock Replacer doin what it should, same for class restrictions).

Would be really cool if someone could give me a hint how to fix that problem ;)

Thanks and greetings
Extremo
extremo is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 10-27-2010 , 18:13   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #679

I'm assuming you are using a recompiled version of unlock replacer that supports blocking the wrangler and any polycount weapons?
jameless is offline
extremo
Member
Join Date: Jan 2010
Old 10-27-2010 , 18:39   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #680

Hi,

I'm using a modified version of unlock replacer to allow wrangler with minisentries only (reduced to only this functionality, no blockin of other weapons). But as i wrote the plugin itself is working fine when triggered by rcon (doing exactly what it should without server crashing ;). If customvotes triggers the command server crashes after vote was succesfull (probably when trying to run the commands in voting config). There are no error logs generated before the crash :/ Everything was working fine together with customvotes till we had to update servers to 1.3.5 due to polycount update. The config should be ok as it is?

Greetings
Extremo

Last edited by extremo; 10-27-2010 at 18:45.
extremo 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 05:01.


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