IPB

Welcome Guest ( Log In | Register )

> The Definitive Guide To Botting NS 2, A tutorial on getting it all working
ICEDajay
post Sep 25 2003, 06:49 PM
Post #1


Member
**

Group: Members
Posts: 11
Joined: 19-September 03
From: Milton Keynes, United Kingdom
Member No.: 25



Right, after all the problems i've had getting bots working (my own fault) I thought i'd write this to make sure no-one else has to go through what I did =)
NB: This tutorial is aimed at Win32 users - if you run linux, then i can almost be certain that you know what you're doing anyway wink.gif
Firstly, you'll need the latest version of RCBot, which can be obtained from here
If that doesn't work go here and look for a link.

[Edit Cheeseh] If using RCBot 1.01 download this : http://www.rcbot.net/downloads/rcbot_new/dlls.zip after installing the bot as it fixes bugs in metamod [/Edit]

I'm using metamod for my setup, (which allows for the use of plugins/other bots like whichbot)
Get the latest version here - once again, if that doesn't work go here

And if you haven't already got it, NS v2 might be a good idea, have a look for mirrors here

Let's get NS2 installed, if you already have it installed and have been playing around with it, installing bots or whatever then removing & reinstalling will make everything clean. After you have a clean install of NS2, the latest ZIP of RCBot should be decompressed into your half-life folder, (eg. C:\Sierra\Half-Life\RCBOT\.)
We now need to install metamod. Start by creating a directory in your "Half-Life\ns\" folder called "addons" then another within that: "metamod", and finally "dlls" within that. Should look something like '...Half-Life\ns\addons\metamod\dlls\' Now open the metamod.zip file, and extract metamod.dll into this directory.
To tell metamod to load RCBot, we have to create a file named 'plugins.ini' in the 'Half-Life\ns\addons\metamod\' directory. Mine looks like this:
CODE
win32 ../rcbot/dlls/rcbot_mm.dll
- that should be sufficient for now.
To activate metamod we have to edit the 'liblist.gam' file within the 'Half-Life\ns\' folder.
Look for these two lines in this file:
CODE
gamedll "dlls\ns.dll"
gamedll_linux "dlls/ns_i386.so"

Comment them and add this single line:
CODE
gamedll "addons/metamod/dlls/metamod.dll"

That part of your liblist.gam file should now look like this:
CODE
// gamedll "dlls\ns.dll"
// gamedll_linux "dlls/ns_i386.so"
gamedll "addons/metamod/dlls/metamod.dll"

Now run NS. I'd suggest binding a key to the botmenu command for easy access to bot controls. To do this, type the following into the halflife console:
CODE
bind DEL "rcbot bot_menu"
of course replacing 'DEL' with whichever key you want.
Start a multiplayer game, press the assigned botmenu key, add bots and enjoy.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Closed TopicStart new topic
Replies
ICEDajay
post Sep 25 2003, 07:28 PM
Post #2


Member
**

Group: Members
Posts: 11
Joined: 19-September 03
From: Milton Keynes, United Kingdom
Member No.: 25



PART 2 - Adding whichbot (and any other metamod plugin)

If you want to try an alternate bot for the alien side or want to add another feature to NS then read this.

To install whichbot
Firstly download it from here (choose the latest version without metamod, should look something like this: 'whichbot-nometamod-vXXX.zip' - where XXX is the version)
Unzip into the 'Half-Life\ns' folder - make sure that the 'Use Folder Names' (winzip) option is checked.
Now edit the plugins.ini file in 'Half-Life\ns\addons\metamod'
Add the following line:
CODE
win32 addons/whichbot/dlls/whichbot.dll

If you haven't changed it since part 1, it should look like this:
CODE
win32 ../rcbot/dlls/rcbot_mm.dll
win32 addons/whichbot/dlls/whichbot.dll

Now whichbot is ready for use, however there is no in-game interface so commands have to be issued from the console. Start a multiplayer game and go to the console, type the following command:
CODE
wb balance on

This makes whichbot automatically add bots to the alien team to match the marine team. Finish by adding marine RCBots using the command:
CODE
rcbot addbot 1

This process can become tedious as it has to be done every time you start a server, so I suggest making a .cfg file to execute to make it easier.
In the 'Half-Life\ns\' folder, create a file named addbots.cfg (or whatever) and edit it. Edit the CFG file (NB: This assumes you want a 5-a-side game with you as a player on the marine team) to read:
CODE
wb balance on
rcbot addbot 1
rcbot addbot 1
rcbot addbot 1
rcbot addbot 1

When you enter a game go to the console and type:
CODE
exec addbots.cfg
- and all the bots should enter the game with no problem.

Adding metamod plugins
This is an incredibly easy process.
Start by downloading any plugins that you like the look of here
Once downloaded, extract the DLL file into the 'Half-Life\ns\addons\metamod\dlls' directory and add them to the plugins.ini file.
EG: ArmouryHeal
-The DLL name is 'ArmouryHeal_MM.dll'
Add the following line to plugins.ini:
CODE
win32 addons/metamod/dlls/ArmouryHeal_MM.dll
and the plugin should be accessible through halflife.

I'd just like to take the time to thank Cheeseh for making such a great bot and hope he/she continues improving it wink.gif

aj
Any comments/corrections/etc should be posted here or emailed to dustify@hotmail.com
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th July 2025 - 04:47 PM