Jump to content
  • Advertisement
Sign in to follow this  
Ben Greenwood

Getting a Simple Quake 2 Bot To Work

This topic is 3414 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm interested in programming, having done a bit of C++ for a few months, so I thought I'd try and see what it takes to do something really simple in Quake 2. I saw this page that explains how to compile a simple client side bot, and then get it join a dedicated server that's running on my computer. But for some reason, it doesn't work. I'm sure this is really simple to sort out, if you know how to program, so if anyone could help me out, that'd be great. The bot tutorial is here: http://ai-depot.com/GameAI/Bot-ClientSide.html and the bot code is the one in the second paragraph here: http://www.telefragged.com/Q2BotCore/ I loaded up the workspace that comes with the bot, and it compiled the bot_test.exe properly, but for some reason it won't join my dedicated server. It gives me the message "Usage:\n bot_test <hostname>\n". I figure that means I need to tell it what to connect to, so I tried running it like this "bot_test.exe +connect 127.0.0.1", but it still didn't connect to my dedicated server. I know I'm probably 10 years late for starting to mod Quake 2 but I figured I might as well start trying to program games somewhere. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
I would suggest creating a real bot, that is, a server side bots. Client side bots are most often considered cheats. It also avoids connection/networking stuff.

Share this post


Link to post
Share on other sites
Looking at the bot_test source code, the way to run the executable would be "bot_test.exe 127.0.0.1" without the +connect thingy.

I don't know how you run the executable, but you should try running it from a command prompt so the bot can print error messages.

hope that helps

Share this post


Link to post
Share on other sites
Quote:
Original post by DrEvil
I would suggest creating a real bot, that is, a server side bots. Client side bots are most often considered cheats. It also avoids connection/networking stuff.


Well I've always thought that approach seems like it makes more sense. Don't suppose you know anywhere I could find a tutorial for how to make a very simple one for Quake 2 do you? There's a tutorial for how to make one for Half-Life on that ai-depot site I mentioned none for Quake 2.

matchu, thanks for the advice. That worked. Awesome. But now that I've been told to do a server-side one, I'm kind of wondering how to get started with that...

Share this post


Link to post
Share on other sites
Actually I think I already found one under "Quake II Oak II Tutorial" here:

http://www.quake2.com/dll/

I've got the source code for Quake 2 and I'm going to try getting the "Lesson 1: Spawning a bot" tutorial to work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!