IPB

Welcome Guest ( Log In | Register )

 
Closed TopicStart new topic
> 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
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
General SSC
post Sep 26 2003, 02:25 AM
Post #3


Member
**

Group: Members
Posts: 14
Joined: 12-September 03
Member No.: 10



whats armoryheal ???
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ICEDajay
post Sep 26 2003, 02:23 PM
Post #4


Member
**

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



ArmouryHeal is a little plugin that turns allows the armoury to heal players who use it (as well as restocking ammo.) I have seen it being used on a few servers, you can tell that they're using it as armouries will have a spinning medpack above them. I've seen another which gives marines a radar beeping sound (like in the aliens films) so when they get close to you it starts beeping faster and faster.

For a good list of NS plugins, look here
Remember bots dont know how to use plugins that require the player to do something special.
enjoy

aj
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Anubis
post Feb 7 2004, 06:53 AM
Post #5


Member
**

Group: Members
Posts: 13
Joined: 30-January 04
Member No.: 207



after finishing part one of this installation i tried to host a game but it crashed as i hosted it, im using 3.0 but i dont think that would make a difference.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ICEDajay
post Feb 7 2004, 09:44 AM
Post #6


Member
**

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



i wrote this tutorial way before 3.0 was released, perhaps that does make a difference, im sure cheeseh will help out but you may have a more individual problem?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 7 2004, 11:56 AM
Post #7


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



if it crashes before the game starts it cannot find the DLL file. It crashes because of steam (steam sucks) won didn't crash when this happened.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sgt. Hardcore
post Mar 22 2004, 01:18 PM
Post #8


Member
**

Group: Members
Posts: 23
Joined: 22-March 04
Member No.: 274



Hi all

I followed the instructions listed here to enable both RCBot v1.3 & Whichbot v0.86 using Metamod v1.17. All was fine but the game often crashed after playing about 20-30 mins. So I checked ModNS and downloaded Metamod v1.16.2 hoping that it would help me prevent the crashing.

But after overwriting the metamod.dll and launching a server, I can't add RCBot into the game. I don't know about Whichbot. It said that "rcbot is an unknown command". Also at the loading screen, I got a message that the Metamod is too old for this plugins. So is this bot compatible with Metamod v1.16.2?

I really want to play with both RCBot & Whichbot with minimal server crashed

PS I'm using NS v2.0
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sandman[SA]
post Mar 23 2004, 04:26 AM
Post #9


RCBot Waypointer
*****

Group: Moderator
Posts: 987
Joined: 15-September 03
From: Philadelphia
Member No.: 19



RCbot 1.3 requires metamod 1.17 and is NOT backward compatable with metamod 1.16.2.


Now back to your topic, server is crashing. Are you using any other plugins other than metamod, rcbot and whichbot? If so, please list them and if possable, version numbers would be helpfull.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sgt. Hardcore
post Mar 23 2004, 04:33 AM
Post #10


Member
**

Group: Members
Posts: 23
Joined: 22-March 04
Member No.: 274



I don't have any other Metamod plugins except for RCBot v1.3 & Whichbot v0.86.
Most of the crashes occured when I'm commanding giving medikit or ammo or building something. Once the server crashed when I tried to add 15 RCBot but it maybe CPU problem.

So mostly the server crashed when I'm commanding. But there are times the server crahed while I'm not commanding.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sandman[SA]
post Mar 23 2004, 07:07 AM
Post #11


RCBot Waypointer
*****

Group: Moderator
Posts: 987
Joined: 15-September 03
From: Philadelphia
Member No.: 19



Ok, since you have confemed that you do have RCbot and Whichbot working together but are finding crash problems "after" the game has begun then you have another problem that is not setup related. Please start a new topic in the "Install problems" board of this forum.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

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: 11th November 2024 - 11:04 AM