making custom vote commands
making custom vote commands
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.....
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.....
Re: making custom vote commands
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.
Re: making custom vote commands
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.)
Re: making custom vote commands
Manta did this for Ww Multi Mode but they're unwilling to release it.
- compguygene
- Adjust Outside Corner Grinder
- Posts: 2346
- Joined: Thu Aug 21, 2008 12:09 pm
- Location: Cleveland, Ohio
- Contact:
Re: making custom vote commands
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
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
Re: making custom vote commands
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:
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
Re: making custom vote commands
Dunno, it works for me. What server version are you using?
Re: making custom vote commands
my server is version: 0.2.9-sty+ct_alpha_r757 unix dedicated
Re: making custom vote commands
Works for me there, too. Hmm. Can you post the console output of your server as it starts up?
Re: making custom vote commands
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 ?
is there a file that logs the console output ?
Re: making custom vote commands
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.
Re: making custom vote commands
i dont think i have acces to that
Re: making custom vote commands
Maybe you add accidental newlines when you copy the config to the server? Some editors do that whenever lines get too long.
Re: making custom vote commands
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?
Re: making custom vote commands
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.