Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Red Orchestra 2 / Rising Storm Forums > RO2/RS Modifications > General Modding Discussion > RO2/RS Final Mod Releases

Reply
 
Thread Tools Display Modes
  #1  
Old 02-29-2012, 05:31 PM
Ducky's Avatar
Ducky Ducky is offline
Moderator
 
Join Date: May 2011
Location: Netherlands
Posts: 2,866
Default [Mutator] BotDetonator (white-listed)

BotDetonator(white-listed)

Revision 81 - Released December 11 22, 2012


Introduction

I made a mutator called bot detonator. The name sounds odd, but the mutator will actually kick (or detonate) all bots as soon as a specific condition is reached (see Configuration section).

My goal with this mutator is to reduce the complains about servers that are running bots. The mutator gives the ability to players to vote to kick all bots. Even so can admins set values which will arrange that bots do leave if for example 4 players are present. The admin can for example put 20 initial bots on his server to attract players. Then all bots will be removed if for example 4 real players have joined. This will make it harder for people to use the bots for easy XP gaining.

If the bots are all kicked out, then they will not leave any weapons behind on the battle-field. This will prevent that players vote away the bots to get there weapons.


New: Web-Admin mutator settings
All configuration properties can now be edited directly from out of the web-admin interface. The settings can be found on the mutator page.

Important:
If you did run an older version of this mutator, then it might be that you will not see any of the mutator settings. In that case you will need to look-up and open the ROWebAdmin.ini file on your server and delete all the lines that start with HasSettingsCache. Those lines should be present in the [WebAdmin.QHDefaults] section of that ini file. Don't worry about throwing away lines for other mutators. They will be recreated as soon as you restart the server.

Configuration properties:
  • bKickBotsOnPlayerCount
    If true, then bots will be kicked if the number of human players is equal to or above KickBotsPlayerCount.
    If bAllowBotsToReturn is true, then the bots will return if the number of human players becomes less than KickBotsPlayerCount.
  • KickBotsPlayerCount
    If bKickBotsOnPlayerCount is true, then all bots will be kicked if the number of human players is equal to or above this value.
    If bAllowBotsToReturn is true, then the bots will return if the number of human players becomes less than KickBotsPlayerCount.
  • bAllowBotsToReturn
    If true and bKickBotsOnPlayerCount is also true, then the bots will return if the number of human players becomes less than KickBotsPlayerCount.
  • bKickAllBotsVoteEnabled
    If true, then players can vote to kick the bots.
    See also KickBotsVotePercentage and VoteTimeSpan.
  • KickBotsVotePercentage
    If bKickAllBotsVoteEnabled is true, then all bots will be kicked if the number of votes is equal to or above this percentage.
    All votes have to be made within VoteTimeSpan or else the voting is cancelled.
    A second vote by the same person will cancel his previous vote.
  • VoteTimeSpan
    The time span in which all players should vote. The time span starts directly after a player initiates a vote (first kick bots vote). All votes will be cancelled if this time expires.
    See also bKickAllBotsVoteEnabled and KickBotsVotePercentage.
  • MinimumNrOfRequiredPlayersForVoting
    The minimum required number of players before voting is possible.
  • PrivilegedPlayerVoteWeight
    The voting weight for privileged players.
    Value 0 means privileged player voting is disabled. Value 1 is used for none privileged players.
    This feature can only be used if the ReserverSlots mutator is active on the server too.
  • BotsKillCountRatio
    The impact on a players XP, class progression and weapon progression if he kills a bot.
    • 0: The score of killing an AI will never be added to the killers stats.
    • 1: The score of killing an AI will always be added to the killers stats (same behavior as in current RO2).
    • 2: 50% of the killed AI's will be added to the killers stats. (1st kill will be added, 2nd will be ignored, 3rd will be added, 4th will be ignored, etc...).
    • 3: 33% of the killed AI's will be added to the killers stats. (1st kill will be added, 2nd and 3rd will be ignored, 4th will be added, 5th and 6th will be ignored, etc...).
    • etc...
  • NrOfBotsForHumans
    The number of bots that should leave/return when a human player enters/leaves.
  • NrOfBotsForHumansRatio
    Ratio that will give the NrOfBotsForHumans a more dynamic behavior. If unequals 0.0, then the next formula is used to calculate the number of bots that will leave for a joining player:
    Nr Of Bots To Kick = NrOfBotsForHumans + (NrOfBotsForHumansRatio x Player Count)
    (above non-linear feature is partly based on a suggestion made by -=THOR=-)
  • bAllowBotsToStartMap
    Allows bots to start a map.
    If true, then the map will start as soon as it is loaded and the server won't wait for a human player.
    See also TimeTillBotsStartServer and MinBotsWhenStartingServer.
  • TimeTillBotsStartServer
    The time that the bots will wait after map load before they start the server.
    See also bAllowBotsToStartMap and MinBotsWhenStartingServer.
  • MinBotsWhenStartingServer
    Minimum number of bots when they need to start the server.
    See also bAllowBotsToStartMap and TimeTillBotsStartServer.
  • bDetonateInsteadOfKick
    If true, then the bots will detonate instead of getting kicked (very messy).
  • bNotificationMessageEnabled
    If true, then a notification message will be send to a single player each time after he spawns.
    The message will let him know that this mutator is active and how to start a kick bots vote.
    The notification message will only be send if voting is enabled (see bKickAllBotsVoteEnabled).
    See also MutatorNotificationMessageDelay.
  • MutatorNotificationMessageDelay
    If bBroadcastMutatorNotification is true, then this property can be used to set the delay between spawning and displaying the notification message.
  • bEnableLogging
    Config variable for enabling/disabling debug info logging.

Mutator commands:
  • Mutate BD Help
    Displays this mutator command list.
  • Mutate BD KickBots
    Starts a kick bots vote or adds a vote. If the player already did vote, then his vote will be reversed.

Mutator commands (only available for administrators):
  • Mutate BD AdminKickBots
    Kicks all the bots.
  • Mutate BD AdminSpawnBots [<number>]
    Spawns a number of bots. If number is ommited, then minplayers will be used.

Mutator admins:

Only an in-game admin or an web-admin can use the above admin commands. However it is possible to add mutator admins. Every added mutator admin will be able to use any of the above (and below) admin commands, but he will not have any admin rights on server level. More than one person can be added as a mutator admin. These are the commands to manage your mutator admins. If you are not yet a mutator admin, then you will need to sign-in as an in-game admin or web-admin to execute below commands.

  1. Mutate BD AddAdmin <name>
    With this command you can add a mutator admin. For name you enter the player name of the person that you want to add. The player must currently be on your server or else the add will fail.
    Example: Mutate BD AddAdmin Ducky
  2. Mutate BD DeleteAdmin <name>
    This command will delete a mutator admin. For name you enter the person that you want to delete from your mutator admin list. The player does not have to be on your server.
    Examply: Mutate DB DeleteAdmin Ducky
  3. Mutate BD ShowAdmins
    This command will display a list of all mutator admins.

Where to download the mutator (for server admins):


The mutator can be downloaded from this location:
https://dl.dropbox.com/u/54368035/Mu...ator-Rev81.zip


How to install the mutator (for server admins):

  1. Download the mutator from above location
  2. Extract all files from the archive
  3. Place the next files in the ROGame\Config folder on your server:
    • Config\defaultbotdetonator.ini
    • Config\ROBotDetonator.ini
  4. Place the next file in the ROGame\Localization\INT folder on your server:
    • Localization\INT\BotDetonator.int
  5. Place the next files in the ROGame\CookedPCServer folder on your server:
    • CookedPCServer\BotDetonator.u
    • CookedPCServer\MutatorEx.u
    • CookedPCServer\MutatorSettings.u
    • CookedPCServer\IReservedSlots.u
  6. Restart your server(you need to do this or else the server will not find the mutator)
Note:
It can be that the MutatorEx.u or MutatatorSettings.u or IReservedSlots.u files do already exist on your server. In that case you need to overwrite them. The BotDetonator mutator will cause a server crash if both those files do not exist on your server.
They only need to be present. However there is no need to start them if you do not wish to use them.

Important:
In case this mutator is used in combination with the ReservedSlots mutator, then make sure that you are using the latest version of ReservedSlots.
ReservedSlots can be downloaded from here.


How to activate the mutator (for server admin):

  1. Open your servers web-admin tool
  2. Go to the Change Map page
  3. Select your game type and map
  4. At the Additional URL variables field you add ?mutator=BotDetonator.BotDetonator
  5. Now load the map
You can also add ?mutator=BotDetonator.BotDetonator to your command line.

If you have more than one mutator running on your server, then you can load them with:
?mutator=BotDetonator.BotDetonator,Mutator1.Mutator1
It doesn't matter which mutator is on the first position.


How to configure the settings (for server admins):
  1. Go to the ROGame\Config folder on your server
  2. Open the ROBotDetonator.ini file with a text editor. Details of the properties can be found in the top of this post (see Configuration).
  3. Make your changes and save the file
  4. Restart your RO2 server
If you did it correctly, then BotDetonator.BotDetonator should be visible on the Current Game page of the web-admin tool.

Source code:
The source code of this mutator can be downloaded from:
svn://212.83.88.75/BotDetonator/trunk/
An SVN client is required to download the sources (for example TortoiseSVN).
The files are password protected. If you want access to the sources, then please PM me and you will receive a reply with sign-in details.

Last edited by Ducky; 02-07-2013 at 02:54 PM. Reason: Rev. 81
Reply With Quote
  #2  
Old 03-02-2012, 11:42 AM
-=THOR=-'s Avatar
-=THOR=- -=THOR=- is offline
Senior Member
 
Join Date: Sep 2011
Posts: 930
Default

GJ Ducky!

How does your mutator interact with "minplayers"?
Reply With Quote
  #3  
Old 03-02-2012, 12:06 PM
Ducky's Avatar
Ducky Ducky is offline
Moderator
 
Join Date: May 2011
Location: Netherlands
Posts: 2,866
Default

Quote:
Originally Posted by -=THOR=- View Post
GJ Ducky!

How does your mutator interact with "minplayers"?
An admin can add a number of bots, even if minplayers is set to zero, meaning bots can be added and removed at all times during a running map. No need to play around with minplayers.
It'd not possible to add more bots than maxplayers.
Reply With Quote
  #4  
Old 03-03-2012, 02:59 AM
omniconsumer's Avatar
omniconsumer omniconsumer is offline
Senior Member
 
Join Date: Jul 2011
Location: New York City
Posts: 396
Default

Great Job, added to our server. Thank you.

Do you have any plans to have a Vote Add option for Bots? Or a Bot Enable Vote? For players?
__________________

http://LMCgaming.com
Reply With Quote
  #5  
Old 03-03-2012, 07:37 AM
Ducky's Avatar
Ducky Ducky is offline
Moderator
 
Join Date: May 2011
Location: Netherlands
Posts: 2,866
Default

Quote:
Originally Posted by omniconsumer View Post
Great Job, added to our server. Thank you.
Your welcome! And thank you for supporting it by adding it to your server

Quote:
Originally Posted by omniconsumer View Post
Do you have any plans to have a Vote Add option for Bots?
Well I assume that you aren't asking for an option that bots can vote too, but that you are asking that players can vote to add bots.
I did think about it, but removed it to prevent that one group votes bots away and the other group votes them back. This might happen if the voting success percentage is set to less than 50% or if there are "not yet grown up grown ups on the server".

Quote:
Originally Posted by omniconsumer View Post
Or a Bot Enable Vote?
Uhmm... can you explain what you mean by this?

Quote:
Originally Posted by omniconsumer View Post
For players?
Here I'm also losing track. Can you please explain?
Thanks in advance!

Last edited by Ducky; 03-03-2012 at 07:39 AM.
Reply With Quote
  #6  
Old 03-03-2012, 09:10 AM
Cat_in_da_Hat Cat_in_da_Hat is offline
Senior Member
 
Join Date: Dec 2006
Posts: 927
Default

Ducky you are a legend !

Now if you can just get that Santa Hat mutator working in RO2 and replace that silly Santa hat with the CatintheHat hat, you would then be boss legend !

I so want a CatintheHat hat mutator, is it that obvious ?
Reply With Quote
  #7  
Old 03-03-2012, 09:12 AM
Ducky's Avatar
Ducky Ducky is offline
Moderator
 
Join Date: May 2011
Location: Netherlands
Posts: 2,866
Default

Quote:
Originally Posted by Cat_in_da_Hat View Post
Ducky you are a legend !

Now if you can just get that Santa Hat mutator working in RO2 and replace that silly Santa hat with the CatintheHat hat, you would then be boss legend !

I so want a CatintheHat hat mutator, is it that obvious ?
I don't even know what a Catinthe hat is. How about an Easter egg hat?Easter is coming.
Reply With Quote
  #8  
Old 03-03-2012, 09:46 AM
-=THOR=-'s Avatar
-=THOR=- -=THOR=- is offline
Senior Member
 
Join Date: Sep 2011
Posts: 930
Default

Quote:
Originally Posted by ducky View Post
i assume that you aren't asking for an option that bots can vote too
lol

Last edited by -=THOR=-; 03-03-2012 at 09:48 AM.
Reply With Quote
  #9  
Old 03-03-2012, 01:45 PM
omniconsumer's Avatar
omniconsumer omniconsumer is offline
Senior Member
 
Join Date: Jul 2011
Location: New York City
Posts: 396
Default

LOL. Sorry for the confusion, you got it right the first time, thanks.
__________________

http://LMCgaming.com
Reply With Quote
  #10  
Old 03-03-2012, 01:56 PM
Ducky's Avatar
Ducky Ducky is offline
Moderator
 
Join Date: May 2011
Location: Netherlands
Posts: 2,866
Default

Quote:
Originally Posted by omniconsumer View Post
LOL. Sorry for the confusion, you got it right the first time, thanks.
I tried out your server earlier today. I didn't vote though, because that would have directly kicked all the bots. I was the only human player at that time.
Reply With Quote
  #11  
Old 03-03-2012, 02:25 PM
omniconsumer's Avatar
omniconsumer omniconsumer is offline
Senior Member
 
Join Date: Jul 2011
Location: New York City
Posts: 396
Default

Quote:
Originally Posted by Ducky View Post
I tried out your server earlier today. I didn't vote though, because that would have directly kicked all the bots. I was the only human player at that time.

Awesome, thanks for checking up on it ducky! Let us know if you need any help with anything with testing or such.

For some reason, though I have enabled messages, I don't see the notifications. I am wondering if it's just me.

Not a big deal though since I just put the notification in our adverts instead.
__________________

http://LMCgaming.com
Reply With Quote
  #12  
Old 03-03-2012, 02:49 PM
Ducky's Avatar
Ducky Ducky is offline
Moderator
 
Join Date: May 2011
Location: Netherlands
Posts: 2,866
Default

Quote:
Originally Posted by omniconsumer View Post
Awesome, thanks for checking up on it ducky! Let us know if you need any help with anything with testing or such.

For some reason, though I have enabled messages, I don't see the notifications. I am wondering if it's just me.

Not a big deal though since I just put the notification in our adverts instead.
Well I noticed that I did get 2 notifications. One from the mutator and 1 from server. That was the one that you added to your servers advertisement list.

The mutator only send the message to a player that just has spawned. It's implemented like this to prevent too many messages on the server.
Reply With Quote
  #13  
Old 03-03-2012, 10:43 PM
Cat_in_da_Hat Cat_in_da_Hat is offline
Senior Member
 
Join Date: Dec 2006
Posts: 927
Default

Quote:
Originally Posted by Ducky View Post
I don't even know what a Catinthe hat is. How about an Easter egg hat?Easter is coming.
Oh Ducky, its a classic !



YouTube- The Cat in the Hat. part 1 - YouTube
Reply With Quote
  #14  
Old 03-06-2012, 11:06 PM
mowskwoz mowskwoz is offline
Senior Member
 
Join Date: Feb 2011
Location: Phoenix, Arizona
Posts: 305
Default

Ducky, this is, for me at least, the best mutator out there.

It's on all of my clan's servers that have bots and I get so very much joy when I can kick all the bots out without changing the map.

Every player on the server usually goes "Sweet!" when we kick the bots.

We did have some bot farmers on the other day who weren't real happy, but oh well.

Again, thank you for this awesome mutator.
Reply With Quote
  #15  
Old 03-07-2012, 04:53 AM
Ducky's Avatar
Ducky Ducky is offline
Moderator
 
Join Date: May 2011
Location: Netherlands
Posts: 2,866
Default

Quote:
Originally Posted by mowskwoz View Post
Ducky, this is, for me at least, the best mutator out there.

It's on all of my clan's servers that have bots and I get so very much joy when I can kick all the bots out without changing the map.

Every player on the server usually goes "Sweet!" when we kick the bots.
Well that is the main goal of this mutator. To make the players and admins happy.

Quote:
Originally Posted by mowskwoz View Post
We did have some bot farmers on the other day who weren't real happy, but oh well.
Let them cry

Quote:
Originally Posted by mowskwoz View Post
Again, thank you for this awesome mutator.
Your welcome. And thank you for supporting this mutator. One question, did you set it to just let the bots drop dead or do you let them detonate?
Reply With Quote
  #16  
Old 03-13-2012, 11:39 PM
-=THOR=-'s Avatar
-=THOR=- -=THOR=- is offline
Senior Member
 
Join Date: Sep 2011
Posts: 930
Default

Installed, thanks for that great mutator
Reply With Quote
  #17  
Old 04-03-2012, 04:19 PM
Ducky's Avatar
Ducky Ducky is offline
Moderator
 
Join Date: May 2011
Location: Netherlands
Posts: 2,866
Default

A new white-listed BotDetonator release is available. No new features have been added to this new release. It's only a bug fix that did blow up tanks (human driver was seen as a AI ). This has been solved now.

The new release can be downloaded by using the download link in the OP of this thread.

Please note that the old "blow up the tank" version has been removed from the white-list!
Reply With Quote
  #18  
Old 04-03-2012, 08:25 PM
mowskwoz mowskwoz is offline
Senior Member
 
Join Date: Feb 2011
Location: Phoenix, Arizona
Posts: 305
Default

As always, THANK YOU DUCKY!!! I just have to yell it from the rooftops.
Reply With Quote
  #19  
Old 04-17-2012, 04:17 PM
greenlemonade's Avatar
greenlemonade greenlemonade is offline
Senior Member
 
Join Date: Sep 2010
Posts: 777
Default

Would it be in your power to make a Co-op mutator that controls human player team selection on joining the server?
So for instance:
Each time a new map loads, the mutator randomly chooses which team will be "human" and which "bot". Then it automatically asigns any humans that join to the "Human" team.
Both teams would still have bots and the "bot" team would have a couple more.(like 3 humans and 3 bots vs. 8 bots) The ideal gamemode would be countdown with hero bots, realism and no death notification.

Then we would have co-op.
Reply With Quote
  #20  
Old 04-17-2012, 05:32 PM
Ducky's Avatar
Ducky Ducky is offline
Moderator
 
Join Date: May 2011
Location: Netherlands
Posts: 2,866
Default

Quote:
Originally Posted by greenlemonade View Post
Would it be in your power to make a Co-op mutator that controls human player team selection on joining the server?
So for instance:
Each time a new map loads, the mutator randomly chooses which team will be "human" and which "bot". Then it automatically asigns any humans that join to the "Human" team.
Both teams would still have bots and the "bot" team would have a couple more.(like 3 humans and 3 bots vs. 8 bots) The ideal gamemode would be countdown with hero bots, realism and no death notification.

Then we would have co-op.
Yes it's possible and wouldn't be too hard to make, but this will only increase the bot farming.
Reply With Quote
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 07:26 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC