﻿================================================================================
  B O T   H A N D L E R   M A N U A L
================================================================================

  1. Introduction
  2. GUI Overview
  3. Quick Start
  4. Bot Properties
  5. Bot Generator
  6. Adding Custom Skins
  7. Adding New Names
  8. Advanced Options
  9. XBots support
 10. Menu Overview








________________________________________________________________________________

  1. INTRODUCTION
________________________________________________________________________________


The purpose of this program is modifying and randomizing quickly the properties of Unreal Tournament bots, without using the clunky in-game interface.

I created it because I was tired of playing against the same 32 bots, and changing the names and properties manually in UT is quite daunting. With this program you can create a new roster of bots very quickly, randomizing all their properties.


There are functions to generate automatically random bots, by selecting random classes/skins/faces and assigning them names from a list. Every skin has its own name list so you won't see neither a Female Commando called Ouboudah nor a WarCow called Loque. All their ability parameters (Skill, Accuracy, etc.) can be assigned to a random value between the set minimum and maximum values, so you won't need to edit each bot yourself. 


This program is especially useful if you have the XBots mod/mutator installed (which I really recommend getting because it's very useful), which effectively extends the bot number from 32 to almost 200 (or even 320 in the newer 9b version), thus allowing much greater bot variation when playing big maps. It works like a charm but normally all the extra bot lists need to be created manually writing the name of each bot and choosing their properties, but with my program you can create all the lists on the fly.



Being this program still a Work in Progress, I recommend making a backup of the files you're going to overwrite (especially the User.ini file). I've tested the program myself and everything should work fine, but as the saying goes it's better to be safe than sorry ;)








________________________________________________________________________________

  2. GUI OVERVIEW
________________________________________________________________________________


The main focus of the program is the bot list, located in the left column (shown at all times). When a bot list is loaded it shows the name of all the 32 bots, and allows the selection of any number of them.


The four tabs in the right side of the screen have different purposes:

- Properties shows all the details of the currently selected bot(s), similarly to the UT bot config interface. This tab however supports the selection of multiple bots at once, so you can change the properties of many bots at once.

- Generation contains all the parameters of the Generator, the function that creates new bots with the specified properties. Most of the buttons on this screens work like checkboxes, allowing you to select what properties to change during the generation.
At the bottom of the screen is located the "GENERATE" button, which takes all the settings and generates new bots accordingly.

- Advanced contains, as the name implies, some more advanced options and functions mostly relevant to the Generator. Especially useful are the Name Editor, which allows the modification of the names associated to each skin, and the Folder Scanner, which can enable custom skins into the generator by looking at the Unreal Tournament directory.

- XBots predictably houses all the functions relative to the XBots mutator, most important being the function to generate all the lists at once.








________________________________________________________________________________

  3. QUICK START
________________________________________________________________________________


Once the program is started there will not be any bot list loaded, so the two most common operations are either generating a new list from scratch or importing your Unreal Tournament bot list to modify.



=====================================
G e n e r a t i n g   n e w   B o t s

Creating a new bot list from scratch is simple:
1) Enter in the Generator tab
2) Scroll down to the bottom of the window
3) Click on the GENERATE button.

A new list of bots will be created and shown in the left column of the window.
You can then click on the Properties tab to access a window where all the parameters of the selected bot(s) will be shown.



===========================
I m p o r t i n g   B o t s

To import the bot list from your Unreal Tournament game you have to:
1) Click on the File menu
2) Click on "Import from User.ini File"
3) Browse to your Unreal Tournament System folder 
4) Select your User.ini File

After clicking the OK button the bots will be imported and shown in the left column.



===========================
E x p o r t i n g   B o t s

Once you are done modifying the bots and you want to export the local bot list into your UT game, you can do so by:
1) Click on the File menu
2) Click on "Export to User.ini File"
3) Browse to your Unreal Tournament System folder 
4) Select your User.ini File (I recommend making a backup!)
5) After clicking the OK button a confirm dialog will appear, select Yes to complete the operation

The bots will now be available in Unreal Tournament.








________________________________________________________________________________

  4. BOT PROPERTIES
________________________________________________________________________________


This tab is similar to the Unreal Tournament bot config screen, with several improvements.

If you select a single bot in the list all its properties will be shown, but once you select multiple bots (with Ctrl+Click or Shift+Click on the bot list) the parameters that are conflicting (e.g. two bots have different team colors) will turn to the default value in the GUI (in the example the team will be shown as None).
This however doesn't prevent modifying them, since if you choose another value for a parameter it will be applied to all the selected bots.

I chose to use Spinners instead of Sliders in the interface to change the numerical values (like the abilities) since I think it's much easier to do quick precise changes.
All the abilities have their value limited to what can be selected in the UT bot config screen.

If you are using wildcards into the names you will have to process the latter, using the relative menu item under Edit, to activate them.

If you need to look at the properties of the different bots quickly the list on the left supports the selection with arrow keys and also mouse hovering (keeping the left mouse button pressed while moving the mouse)








________________________________________________________________________________

  5. BOT GENERATOR
________________________________________________________________________________


The generator is the function that creates new bots from scratch, and its relative tab lets you configure what to generate.

The whole tab is filled with toggle buttons: basically when a button with a bot property on it (e.g. "Name", "Accuracy", etc.) is selected the relative property will be modified during the generation.
For example if you wanted to change only the Skill and Accuracy of the bots, without changing their names or skins or any of the other properties, you would have to keep selected only the relative "Skill" and "Accuracy" buttons.

There are two shortcuts, accessible also in the Generator menu, that select (Ctrl+H) and deselect (Ctrl+Shift+H) all the toggle buttons at once.


The customization for the bot properties differs basing on their type.

Class, Skin and Face are linked together, in that you cannot generate a new Class for the bot without generating also a new Skin and Face. If you keep the RANDOM value in the combo boxes a random class/skin/face will be chosen, while if you specify a value the relative class/skin/face will be used for all the bots that will be generated.

The name can be either RANDOM, which will take a random name out of the name lists, or SPECIFIED, which will assign the name written in the text field on the right to all the generated bots. There are wildcards that can be used into the names to create and modify different kinds of text, since they have marginal utility I will not describe them here but you can find a list of them with their usage by opening the BotHandlerSettings.utbh file with a text editor.

All the other parameters have a Chance Spinner on the right side of the tab, which has value 0.5 by default.
Chance specifies the probability of a generated bot having a value different than the default one, for example a Chance of 0.2 for the Team parameter will mean that one out of five generated bots will have a Team value different than None, and a Chance of 0.5 for Accuracy will mean that half of the generated bots will have an Accuracy value different than 0.

The default values are: None for Team; None for Favourite Weapon; The Class default for Voice Type; Normal for Combat Style; 0 for Skill, Accuracy, Alertness, Camping and Strafing Ability; No for Jumpy Behaviour.

Note that Voice Type has 0 Chance by default, since voice randomization doesn't recognize which classes should have different voice types (so you could find a WarCow with a Female Two voice).

The five bot stats (Skill, Accuracy, Alertness, Camping and Strafing Ability) have two more Spinners on the right of their button, which are respectively Min and Max values. These values specify the limits of the stats during generation.



At the bottom of the tab there are three buttons.
The first two ("Gen. All" and "Gen. Selected" let you choose whether to generate the whole bot roster (32 bots) or only the bots selected in the bot list. Note that if no bot list is loaded in the program the generation will always create all 32 bots.
The last one, "GENERATE", executes the generation process.








________________________________________________________________________________

  6. ADDING CUSTOM SKINS
________________________________________________________________________________


I titled this section Adding Custom Skins for understandability, but it also covers how to add any kind of custom content (classes, weapons, voices).

The way this program "knows" the information of all the UT content is the BotHandlerSettings.utbh file located in the same folder as the program, which contains a lot of text with an entry for each class, skin, weapon etc. .
Every entry has to be added manually into the text file (the settings get loaded only at program startup, you will have to restart the program if you make any change), however in the last versions I made a couple of improvements that allow for some kind of automation.

The BotHandlerSettings file doesn't contain only entries relative to the default UT content (that you see when opening the program for the first time), but I added quite a large number of entries for popular custom models and skins. In the past I stored these in a separate extras file, but now they are all contained in the main settings file and the "BotClassEnabled" and "BotSkinEnabled" variables decide what gets loaded in the program.



In the Advanced tab there is the "Scan UT Folder for Models and Skins" button, which enables the models/skins that have an entry in the Settings file but are not enabled yet.
Simply click on the button, specify you UT Textures and System folders, and click "SCAN FOLDERS" to enable all the models/skins that will be found.
Note that at the moment it's still pretty buggy so it's possible that some content gets ignored. I also recommend to not use "Disable Not Found Skins", since it doesn't work well yet.



For custom models and skins that don't have an entry yet there is the possibility of importing their information from an user.ini file, or a XBots list. Simply load a bot list that contains bots with custom content and the program will create new entries, trying to guess content info automatically.
For skins with multiple faces you will need to have a different bot for each face.



After you've enabled/added some entries you can update the settings File, using the "Update BotHandlerSettings.utbh File" button. This way when you load the program again all the changes you've made will be remembered.



If you want to add custom Voices and Weapons you will have to edit the BotHandlerSettings File manually with a text editor, simply add another entry using the same template as the default entries and filling all the details.








________________________________________________________________________________

  7. ADDING NEW NAMES
________________________________________________________________________________


In this program each skin has a different name list associated, which the generator uses to pick a random name that fits the new bot (otherwise you'd see Nalis called Xan).



To edit the names all you have to do is go into the Advanced tab and click on "Show Name Editor".
A new window will pop up, comprised of two Combo Boxes and one Text Area.

The two Combo Boxes choose respectively the Class and the Skin, while Text Area contains the list of all the names of that skin, one on each line.
To add or remove names you just need to write directly in the text area, and they will get saved automatically.

Note that the names will be usable right away but they will not be saved on the Settings file (in other words, they won't be remembered the next time you open the program) unless you click on the "Update BotHandlerSettings.utbh File" button.



The default settings file has names taken straight from the Faces of the relative skin, plus one or more additional name comprised of wildcards (the ones full with % symbols). I added the wildcard-based names, even though they sometimes give strange results, since when generating a full XBots list (320 bots!) the normal names aren't enough, and names cannot be duplicated or else you will find many Bot1, Bot2 etc. while playing UT. Being the wildcard-based names generated randomly they will lessen dramatically the chance of having the same name for more than one bot.

I recommend adding many new names to each skin, and if you don't use XBots it's probably better if you remove most of the wildcard-based names.








________________________________________________________________________________

  8. ADVANCED OPTIONS
________________________________________________________________________________


I already went over the usage of the Folder Scanner and Name Editor in the previous two chapters, so here I'll describe only the other obscure options.


Max Generator loops is the number of times the Generator will try to find an unique name before giving up. Basically every time a new name is chosen the bot list gets compared, and if the chosen name is already assigned to a bot the loop number is increased and the generator restarts the generation of the current bot. If the loop number is higher than the one specified in this field, then the Generator gives up and keeps the name even if its duplicated.
Higher numbers in this field lessen the chance of having duplicate names, but it can increase heavily the generation times. This matters especially when generating the full XBots lists, since name duplication is much more of an issue.


Complex Skin Factor is a value that can favour more "complex" skins (those with an higher amount of faces, for higher variation) over the more basic ones (mostly those who have a single face). The higher this value is the more you will see complex skins used, while if it's less than 1.0 then the effect is inverted.
The effect it has on the generation isn't very noticeable.


Overwrite Global Settings will overwrite also the global bot settings (those seen in the Bots tab when starting a practice match) when exporting to the user.ini file, while by default this program leaves them alone.
This is mostly useful when using the XBots list generation, since XBots messes up the difficulty settings (it doesn't change with the UT menu) so this setting can be used to change it manually.








________________________________________________________________________________

  9. XBOTS SUPPORT
________________________________________________________________________________


Last but not least comes the functionality relative to XBots, the mutator that extends the UT Bot list to either 192 (version 055) or 320 (version 9b) bots, meaning you will have a BIG number of random bots to play against.

The way the mutator works is basically taking multiple bot lists of 32 bots and mixing them together at the start of every match, to effectively have 32 random bots at disposal out of all the bot lists.



Normally you would have to fill all the extra bot lists manually, using the UT Bot Config interface, but with my program you can generate all the lists in a breeze.
Simply go in the XBots tab, select your XBots version and click on the "Generate All XBots Lists". Then navigate to your Unreal Tournament System folder and select your XBotsLists.ini File (If you have already edited it in the past then make a backup, since it will be overwritten!).

Instead of treating each extra list as a separate entity, the program generates all the bots at once and then splits them up in the different list to avoid name duplication. Note that if there is any bot list loaded into the program then those names will be taken in account to avoid name duplication, so you can import your user.ini list into the program before generating XBots lists to completely avoid duplications.

Generating this large number of bots might take quite a while, especially if there aren't many names to choose from. If you are using this XBots functionality I recommend to add many new names for every skin (Adding New Names chapter).



Import XBots List will import a single list (the one specified by the List Number) from the XBotsLists.ini file, loading it into the program. The single list export isn't available yet.








________________________________________________________________________________

 10. MENU OVERVIEW
________________________________________________________________________________


I will not describe each option as they are all fairly self-explanatory, however there are a couple of things I should clarify:

- New has the same effect of a new generation with all the options toggled on, except that the names will be "Bot N" where N is the list number of the bot (the specified name would be Bot %i).

- Load, Save and Save As read/write only the bot lists, without considering the rest of the content of the files. Use only Import from/Export to User.ini File when working with the UT User.ini file or else you will erase the other settings.

- Process Names will generate all the wildcards located in the names in the bot list.

- Generate All and Generate Selection only toggle the buttons at the bottom of the Generator tab, they do not actually start the generation function (this will probably get changed in future versions...)

- Set Spinner Values is a useful window that can set the values of all the Spinners in the Generator tab at once. The Voice Type's Chance will not be affected as I recommend keeping it at 0 at the moment.








________________________________________________________________________________

This software is copyright 2012, by DeathoX 8.
I am not responsible for any loss of data or any kind of damage resulting from the use of this software. This is an experimental build, and you are using it at you own risk. This software is freeware and does not have any kind of warranty.
You may NOT decompile this software or use it as a base for any other additional software.
You are NOT allowed to commercially exploit this software, i.e. put it on a CD or any other electronic medium that is sold for money without my explicit permission!
You MAY distribute this software through any electronic network (internet (web/ftp), FIDO, local BBS etc.), provided you include this file and leave the archive intact.
UnrealÂ® Tournament (c)1999 Epic Megagames, Inc. All Rights Reserved. Distributed by GT Interactive Software, Inc. under license. Unreal Tournament and the Unreal Tournament logo are registered trademarks of Epic Megagames, Inc. All other trademarks and trade names are properties of their respective owners.
