Botrix

From Valve Developer Community
Jump to: navigation, search

Icon-Released.png

This mod for Source has been released! Download it now.

Half-Life 2Botrix (BOT's matRIX) is a plugin for Half-Life 2: Deathmatch Half-Life 2: Deathmatch and Team Fortress 2 Team Fortress 2 that allows to play with bots (see Server-Side Bots).


Fast installation

Unzip contents of zip file into MOD folder (i.e. hl2mp/tf2).

Launch Half-Life 2 Deathmatch with -insecure parameter. Create new game, map dm_underpass. Type "botrix bot add" several times at the console to create bots.

Have fun!

Installation instructions

As you may know Steam differs notions of GAME FOLDER (where hl2.exe is) and MOD FOLDER (where gameinfo.txt is). Botrix plugin uses folder named "botrix" outside of the GAME FOLDER, which is a BASE FOLDER to store configuration and waypoints.

Example of SINGLE-PLAYER GAME:

   Base folder (where all games are):
       C:/Steam/SteamApps/common
   Game folder:
       C:/Steam/SteamApps/common/Half-Life 2 Deathmatch/
   Mod folder:
       C:/Steam/SteamApps/common/Half-Life 2 Deathmatch/hl2mp/
   Botrix folder:
       C:/Steam/SteamApps/common/botrix

Example of DEDICATED SERVER:

   Base folder (where all dedicated servers are):
       C:/DedicatedServer/
   Game folder:
       C:/DedicatedServer/HL2DM/
   Mod folder:
       C:/DedicatedServer/HL2DM/hl2mp/
   Botrix folder:
       C:/DedicatedServer/botrix

Contents of this zip file should be extracted to the BASE FOLDER. If your game/ server is not under folder named "Half-Life 2 Deathmatch", but instead, say, in folder "HL2DM", then you should move contents from folder "Half-Life 2 Deathmatch" (extracted from zip file) to folder "HL2DM". And also rename folder "half-life 2 deathmatch" into "HL2DM" inside folder "botrix/waypoints", so plugin can find waypoints files for your game. You should read configuration section of this file to know how to configure your game/mod folders.

This plugin is UNSIGNED, so you need to execute hl2.exe with -insecure parameter. You can also set it by Steam, just right-click on the game and select it's properties / set launch parameters or whatever.

This doesn't apply for dedicated servers. You can load UNSIGNED plugin without problems.

For now waypoints were created for 2 maps: dm_underpass and dm_steamlab. If you want to create waypoints use botrix commands to create and save them. After doing that, send me your files, and I will make sure to test and publish them on my site.

Any ideas are also appreciated, and if time will allow me, I could implement them in future versions.

Configuration

Inside botrix folder there is a file: config.ini.

Make sure that both game folder and mod folder appear in section [HalfLife2Deathmatch.mod], under "games" and "mods" keys.

For given example of SINGLE-PLAYER GAME you should have:

   games = Half-Life 2 Deathmatch
   mods = hl2mp

For given example of DEDICATED SERVER you should have:

   games = hl2dm
   mods = hl2mp

For DEDICATED SERVER there is a section in config.ini: [User access]. You should read comments inside config.ini for that section to know how to add admins for Botrix.

Botrix should work with other mods, say Counter-Strike: Source. Check out *.items.* and *.weapons sections to know how items and weapons are handled.

If you could make bots work for other mods, please send me your config file and I will publish it on my site.

Limitations = future work

  • Bots can't chat.
  • Support for other mods.

Official Steam Discussion Topic

See also