| closedSturmbot Vote_nobots |
| Started by Gary_m on 02-21-2010, 07:47 PM |
Threads: 3
Joined: Feb 2010
Hirn This may not need a plugin, but here goesrnrnHave been running 3 dod servers for over 2 years now, with Shrike bot on the public servers.rnrn We've had a plugin so that if someone types in vote_nobots a vote comes up, and if a big enough percentage of people vote yes the bots are kickedrnrn We recently changed server supplier, and the kind chap there installed Sturmbots which are miles better on the private war server so that I could play about with configurations with the intention of eventually installing on the public servers.rnrn The bots work great, but when the vote for no bots is initiated, everything works and says vote successful but the bots are not kicked.rnrnAfter looking at the config for the plugin, when vote is successful a command of "max_bots 0" is run, which would kick shrike bots, but with sturm the command is different to empty serverrn being three commandsrnsturmbots "max_bots 0" rnsturmbot "kickteam 1"rnsturmbot "kickteam 2"rnafter first putting in a sturmbot passwordrnrn I can do that manually and it works ok, but obviously would like it to work with the vote_nobots menu for when myself or no other admins are aboutrnrn Have tried to write that into the plugin config in different permutations but nothing seems to workrn Is it a case of writing the right command line in or do I need another plugin to do this, maybe there's one alreadyrn Can anyone help at allrnrnThanks Gary
Threads: 3
Joined: Feb 2010
not sure if This should have gone in request for plugin section, but hopefully someone will see and be able to help rnrnThanks Gary
Threads: 19
Joined: Oct 2004
I know of 2 shrikebot control pluginsrnrnSyn's Shrike Bot Controller v1.4rnandrnrnOrbitsrnrnamx_shrikebot rnrnsyns has the vote within the plugin but Orbits although he posted that he added a vote does not contain any code for voting. I believe that he used a custom votes plugin.rnrnhttp://forums.alliedmods.net/showthread.php?p=34531 rnrnSturmbot comes with a menu already so all you really need is the vote part.
Threads: 3
Joined: Feb 2010
Noddy Have looked at the plugin in the link, and it looks like the one we have alreadyrnrnWe've got various votes set up vote map vote kick bots vote flamethrowers etc etcrnrnHere's an extract from custvote config filernrn--------------------------------------rnrn_flame//Config file for amx_customvotes.smarn//Created by jtp10181rnrn//This file belongs at <configs_dir>/custvote.cfgrnrn//Sample Config Entryrn//[trigger]rn//D "Description used in results"rn//Q "Vote question?"rn//Y "YES question choice"rn//N "NO Answer choise"rn//H "Help line to be displayed if vote succeeds"rn//The following two can be cvars settings or any server commandrn//YC "server command to run if vote passes"rn//NC "server command to run if vote failes"rn//The following can be set to different modes and is optionalrn// * -1 - No timer checkingrn// * 0 - Use plugin global timer (default if not set)rn// * 1 - Use server global timer (same as adminvote)rn// * 2 - Use vote specific timerrn//TM 0rn//Vote ratio for the percent of "yes" answers needed to winrn// Defaults to 0.50 if not setrn//R 0.50rnrnrnrn[nobots]rnD "REMOVE BOTS FROM GAME "rnQ "Remove bots"rnY "Yes please there too hard"rnN "But it's all i can kill"rnYC "amx_maxbots 0"rnNC "amx_maxbots 10"rnTM 0.65rnrn[bots]rnrnD "ADDING BOTS TO SERVER"rnQ "add bots to the game"rnY "Yes please i need a kill"rnN "No thanks they Pwn me"rnYC "amx_maxbots 10"rnNC "amx_maxbots 0"rnTM 0.65rnrn-----------------------------------rnrnTrying to work out what to write in the YC part of the plugin, instead of amx_maxbots 0 when vote is successful, to make it kick the botsrnrnWhen i want to kick bots on home computer I just type in console rn"max_bots 0" rn"kickteam 1"rn"kickteam 2" all without speech marksrnbecause maxbot command by itself does not automatically kick the botsrnBut i have these commands on a bind key to make it easier looks something like thisrnbind "f8" "max_bots 0 ; kickteam 1 ; kickteam 2"rnand that works, but tried to write that in custvote config file with no joyrnrnOn the server version it has a password and once password is typed in console gives the user same control as home computer, you dont even need to be admin or use amx commandrnrnOn hlsw you automatically get control, suppose thats because you already have Rcon control, you just have to write the word sturmbot in front of the commands, and keep the commands in speech marksrnfor example rnsturmbot "addbot"rnsturmbot "kickteam 1"rnsturmbot "kickteam 2"rnrnso reckon I just need to be able to write the command in the right way in the custvote config file for it to workrnrnI've tried running without password on bots , which it says you can do, just in case that may be interfering with the command from custvoternrnAny Ideas rnrnthanks Gary
Threads: 3
Joined: Aug 2007
Try:n
nmax_bots 0;wait;kickteam 1;wait;kickteam 2nThreads: 19
Joined: Oct 2004
rnServer console: rnThis is the console of a dedicated dod server. rnWhen issuing sturmbot commands via a server console the following format must be used:rnrnsturmbot "command_name argument1 argument2...."rnrnAll sturmbot commands must be preceded with the word sturmbot and the actual command and its arguments must be inside quotation marks " " rnrnrnrnif Fysiks suggestion does not work, you might be able to add a cfg file and exec that from the YC or even modify Fysiks suggestion to add sturmbot and speech marks for each command.rnrnegrnexec kickbots.cfgrnrnsturmbot "max_bots 0"rnsturmbot "kickteam 1"rnsturmbot "kickteam 2"
Threads: 3
Joined: Feb 2010
OK I'll give them both a try later and see if they will workrnrnJust a slight update, the problem seemed to stem from the fact that the command or argument has to be in speech marks, and the command line in YC I assume has to be in speech marks, so I was ending up with various different permutation of double speech marksrnegrn"sturmbot "max_bots 0 ; kickteam 1 ; kickteam 2"" orrn"sturmbot "max_bots 0 ; kickteam 1 ; kickteam 2"rnplus tried your way Noddy putting sturmbot in from of each command, but you only have to have one letter or comma in the wrong place for the whole thing to not workrnrnBut did experiment with something simple not the right command but just to see if i could get it to influence the sturmbots in any wayrnrnI noticed when typing in manually through console the only command that you didn't need speech marks for the argument wasrnsturmbot addbotrnrnso In YC I putrnrnYC "sturmbot addbot" rn rnjust as it is written therernwhen I did a successful vote on server lo and behold it added a bot, so obviously will work, it's just finding the right text to put in to do the job i want it tornrnwill be trying all your suggestions later, i'll let you know how i get on, we will get there in the end, LOLrnrnThanks Gary
Threads: 3
Joined: Feb 2010
Oh just a quick questionrn If I do make a config file to run from YCrnWhere would I put that, in sturmbot folder or dod folderrnrnrnThanks Gary
Threads: 19
Joined: Oct 2004
in dod folder m8 same place as server.cfg or banned.cfg files
Threads: 3
Joined: Feb 2010
Right had no ftp access to server for a few hours, so didn't get to try till laternrnMade a separate cfg file executed from YC as suggested with text insidernrnsturmbot "max_bots 0"rnsturmbot "kickteam 1"rnsturmbot "kickteam 2"rnrnresult was team 2 was kickedrnrntriedrnrnsturmbot "max_bots 0";sturmbot "kickteam 1";sturmbot "kickteam 2"rnrnresult team 2 was kickedrnrneven triedrnrnrnsturmbot "max_bots 0";wait;sturmbot "kickteam 1";wait;sturmbot "kickteam 2"rnrnresult again team 2 was kickedrnrnSeems just the last command is being executed for some reason, if I can get it to do all 3 we'll have it cracked, any ideasrnrnThanks Gary
Threads: 3
Joined: Feb 2010
Have even tried making 3 separate config files ececuted from YC.rnwith one command in each file. and it still only seems to execute the third filernrnstarting to pull me hair out nowrnrnHave spoken to a friend who is a proggrammer, but not familiar with this type of thing, he said it may be that it is not possible to send multiple commands from the YC line, maybe someone here will know this. though i thought having separate config file would overcome thisrnrnone idea I thought of, although Sturmbots are independent of amx and don't need to run through an amx command, was wondering if its possible to make this command run via an amx config or command
Threads: 75
Joined: Nov 2007
if you do thernrnsturmbot "max_bots 0"rnsturmbot "kickteam 1"rnsturmbot "kickteam 2"rnrnAnd after that kick the bots on the team that didnt leave via amx, do they come back then?
Threads: 3
Joined: Feb 2010
Originally I didn't have a max_bots command in bot config so when team2 were kicked from the vote they would stay kicked rnrnbut when I put the max_bots 16 command in bot config file, to test whether max_bots 0 was working in the voternrnthe team 2 would be kicked then come back again, and if i tried to kick either team manually they would come back again till i did the max_bots 0 command manuallyrnrnI tried swapping the kickteam commands around, and it kicked team 1, as this was the last commandrnrnIt's baffling, as i thought if it was only going to read one command, it would be the first, rnrnI even tried daisy chaining the config files, i made 3 config files, rnvotenobots1.cfgrnvotenobots2.cfgrnvotenobots3.cfgrnrnthen In YC I putrn"exec votevobots1.cfg"rnrnin that file i put the first command plusrnexec votenobots2.cfgrnrnthen in that file i put the second command andrnexec votenobots3.cfgrnrnthen in last file put last commandrnrnin that way it had to go through all 3 files and their commands to get to the end, and it still just executed the last command
Threads: 0
Joined: Sep 2009
I think this command will empty the server guys -rnrnsturmbot "min_bots 0; max_bots 0; kickteam 1; kickteam 2"
Threads: 3
Joined: Feb 2010
Have tried that and still no joy :(
Threads: 0
Joined: Sep 2009
That command works from a client console remotely BUT if that command is to be issued from within the server in a ***.cfg file the STURMBOT should not precede the command. - i.e.
"min_bots 0; max_bots 0; kickteam 1; kickteam 2"rnTry that?Threads: 0
Joined: Sep 2009
Also there is a "killall" command - it may be worth a try, but I think will just get slayed & respawn.
Threads: 0
Joined: Sep 2009
Sorry about reply #16 - it seems I cannot comprehend a README file.rn"Note to self -RTFM;RTFM"

