making custom vote commands

Post here if you need help setting up your server, etc.
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

making custom vote commands

Post by snake »

hi people,

i am trying to make the vote system on my server more simple. if you want to vote now you have to type /vote include hrs.cfg. (for high rubber shooting)
is it possible to call a vote by typing -hrs ? (i heard something about parser scripts but i am a script dummy...)

* this is my first topic on this forum, please dont get angry on me becouse i posted it wrong.....
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: making custom vote commands

Post by Z-Man »

I don't think you can call votes from scripts, and even if you could, it wouldn't be a good idea: it decouples the cause and effect, the server can't tell any more who called the vote, and thus there can be no sensible vote flood protection.
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: making custom vote commands

Post by snake »

cant you just convert a command, like /vote inclue hrs.cfg = -hrs or something like that ? and someother servers have it to. if i remember right a wildwest server has a vote system with very short commands (like -s -o etc.)
Word
Reverse Adjust Outside Corner Grinder
Posts: 4258
Joined: Wed Jan 07, 2009 6:13 pm

Re: making custom vote commands

Post by Word »

Manta did this for Ww Multi Mode but they're unwilling to release it.
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2342
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Re: making custom vote commands

Post by compguygene »

Manta's vote system on the Wild West servers does NOT use the functionality of the vote system at all. The reason Manta won't release his scripts is very simple. They are a very messy bit of bash scripts that interact with each other and are closely tied to both each other and the server they run on. He would have to do a major re-code just to release them. As Z-man stated, calling the /vote command from a script would be very problematic. To implement that would require that you create your own voting script and not use the existing /vote functionality.
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: making custom vote commands

Post by snake »

so i guess ill stick to /vote include :( maybe a good idea for a next release ? to create custom commands ?


now i got another problem :S this time with the MESSAGE_OF_DAY. it doesnt shows up anymore, and i dont understand why :S (it did at first) i think it has something to do with the fact that i added a help topic above it ...
here is my config:

Code: Select all

SERVER_OPTIONS Hosted in North Carolina
URL b07.webs.com
MAX_CLIENTS 16
MIN_VOTERS 0
ACCESS_LEVEL_VOTE_INCLUDE 20
ACCESS_LEVEL_VOTE_INCLUDE_EXECUTE 1
ROUND_CENTER_MESSAGE 0xff4000type 0xffffff /help vote 0xff4000 to vote your gametype

ADD_HELP_TOPIC vote "how to call a vote for a gametype" "0xff4000+++++--------------0xffffffHow to vote:0xff4000-------------+++++\n   0xff4000++                                       ++\n   0xff4000++    0xffffffto start a vote type one of the    0xff4000++\n   0xff4000++ 0xffffffcommands in chat (dont forget the / !)0xff4000++\n   0xff4000++                                       ++\n   0xff4000++ 0xffffffGametype   Command 0xff4000                   ++\n   0xff4000++                                       ++\n   0xff4000++ 0xffffffSumo       /vote include sumo.cfg     0xff4000++\n   0xff4000++ 0xffffffCtf        /vote include ctf.cfg      0xff4000++\n   0xff4000++ 0xffffffHrs        /vote include hrs.cfg      0xff4000++\n   0xff4000++ 0xffffffWildcat    /vote include wildcat.cfg  0xff4000++\n   0xff4000++                                       ++\n   0xff4000++                                       ++\n   0xff4000++                                       ++\n   0xff4000++      0xffffffpage up and down to scroll       0xff4000++\n   0xff4000+++++++++++++++++++++++++++++++++++++++++++\n   0xff4000+++++++++++++++++++++++++++++++++++++++++++"

MESSAGE_OF_DAY 0xff4000+++++++++++++++++++++++++++++++++++++++++++++++++\n0xff4000+++++++++++++++++++++++++++++++++++++++++++++++++\n0xff4000++                  _   _  ___                 ++\n0xff4000++                 |_\\ | |  //                 ++\n0xff4000++                0|_/ |_| //                  ++\n0xff4000++                                             ++\n0xff4000++              0xffffffVotable gametypes!  0xff4000           ++\n0xff4000++++                                         ++++\n0xff4000+++++--------------0xffffffHow to vote:0xff4000-------------+++++\n   0xff4000++                                       ++\n   0xff4000++    0xffffffto start a vote type one of the    0xff4000++\n   0xff4000++ 0xffffffcommands in chat (dont forget the / !)0xff4000++\n   0xff4000++                                       ++\n   0xff4000++ 0xffffffGametype   Command 0xff4000                   ++\n   0xff4000++                                       ++\n   0xff4000++ 0xffffffSumo       /vote include sumo.cfg     0xff4000++\n   0xff4000++ 0xffffffCtf        /vote include ctf.cfg      0xff4000++\n   0xff4000++ 0xffffffHrs        /vote include hrs.cfg      0xff4000++\n   0xff4000++ 0xffffffWildcat    /vote include wildcat.cfg  0xff4000++\n   0xff4000++                                       ++\n   0xff4000++                                       ++\n   0xff4000++                                       ++\n   0xff4000+++++++++++++++++++++++++++++++++++++++++++\n   0xff4000+++++++++++++++++++++++++++++++++++++++++++

ROUND_CONSOLE_MESSAGE 0xff4000+++++++++++++++++++++++++++++++++++++++++++\n0xff4000++ 0xffffffGametype   Command 0xff4000                   ++\n0xff4000++ 0xffffffSumo       /vote include sumo.cfg     0xff4000++\n0xff4000++ 0xffffffCtf        /vote include ctf.cfg      0xff4000++\n0xff4000++ 0xffffffHrs        /vote include hrs.cfg      0xff4000++\n0xff4000++ 0xffffffWildcat    /vote include wildcat.cfg  0xff4000++\n0xff4000++                                       ++\n0xff4000++      0xffffffpage up and down to scroll       0xff4000++\n0xff4000+++++++++++++++++++++++++++++++++++++++++++

USER_LEVEL snake@forums 0
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: making custom vote commands

Post by Z-Man »

Dunno, it works for me. What server version are you using?
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: making custom vote commands

Post by snake »

my server is version: 0.2.9-sty+ct_alpha_r757 unix dedicated
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: making custom vote commands

Post by Z-Man »

Works for me there, too. Hmm. Can you post the console output of your server as it starts up?
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: making custom vote commands

Post by snake »

i host it a rx hosting, the console goes only a few lines up so it doesnt include everything it says :S
is there a file that logs the console output ?
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: making custom vote commands

Post by Z-Man »

Usually /var/log/armagertonad-dedicated.log, but it's the start script's responsibility to pipe stdout there, so custom installations may not respect it.
snake
Average Program
Posts: 59
Joined: Thu Oct 13, 2011 6:24 am

Re: making custom vote commands

Post by snake »

i dont think i have acces to that :(
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: making custom vote commands

Post by Z-Man »

Maybe you add accidental newlines when you copy the config to the server? Some editors do that whenever lines get too long.
User avatar
RYON
Average Program
Posts: 84
Joined: Sat Jul 10, 2010 7:54 am
Location: OREGON U.S
Contact:

Re: making custom vote commands

Post by RYON »

my server crashes when people vote to change games while between rounds only. then it says something about turtle mode after the server is back up. any ideas of what is happening and if there is a way to fix it. what would i need to show you to help give you an idea of whats going on?
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: making custom vote commands

Post by Z-Man »

Turtle mode is activated because the previously active clients are bombarding the server with 'help, where have you gone to?' messages. Does it say anything when it crashes? Configuration changes should be safe in all situations, though I suppose some of the sty features don't like getting activated/deactivated on the fly. Debug recordings may help.
Post Reply