Forum

good tutorial for making a bot from scratch?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

good tutorial for making a bot from scratch?

Postby ceriux » Tue Apr 21, 2009 8:45 pm

based off the player model.
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Wazat » Tue Apr 21, 2009 9:09 pm

I wonder if Coffee's site is still up. My understanding is Tutor Bot was a wonderful way to learn AI and bot building.

Someone may know of the link and/or have an archive.
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.
Wazat
 
Posts: 771
Joined: Fri Oct 15, 2004 9:50 pm
Location: Middle 'o the desert, USA

Postby ceriux » Tue Apr 21, 2009 9:36 pm

User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby MauveBib » Tue Apr 21, 2009 9:57 pm

Yes, the AI cafe is without a doubt the best site for this. It doesn't start from scratch, it starts with a simple template bot called the tutor bot then each tutorial adds a new feature to the bot. The tutorials are very well written and I (and many others) learnt an awful lot from them. I highly recommend them.

The link to the tutorial page seems to be broken in the site, so here's a direct link to the tutorials page:

http://minion.planetquake.gamespy.com/tutorial/main.htm

And here's a link to the tutor bot page for the download:

http://minion.planetquake.gamespy.com/tutor.htm
Apathy Now!
User avatar
MauveBib
 
Posts: 634
Joined: Thu Nov 04, 2004 1:22 am

Postby ceriux » Tue Apr 21, 2009 10:12 pm

i found those... iv applied the tutor bot to a vannilla quake mod directory, and the bot doesnt seem to spawn.
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby MauveBib » Tue Apr 21, 2009 10:30 pm

Did you read the instructions in tutor.qc? If you follow them correctly it will work.
Apathy Now!
User avatar
MauveBib
 
Posts: 634
Joined: Thu Nov 04, 2004 1:22 am

Postby ceriux » Tue Apr 21, 2009 10:44 pm

got it working, wasnt paying attention. my next problem seems that tutor bot completely changes some aspects of the game. such as i noticed i started getting random weapons on spawn . some that wernt even on the map. also the bots dont show up in the scoreboard o.O?
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Electro » Tue Apr 21, 2009 11:33 pm

I'd highly recommend stripping the bot RIGHT back, get rid of all the player animation and think stuff in it.

Then implement proper botclient stuff that is supported by FTE and Darkplaces. This will allow the bots to use real player physics, and show them on the scoreboard. As well as keeping the amount of bs pollution in your qc to get things working to a minimum.
Benjamin Darling
http://www.bendarling.net/

Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
Electro
 
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia

Postby MauveBib » Tue Apr 21, 2009 11:45 pm

The tutor bot is initially rubbish, the downloaded version supports basically nothing, has fake weapon pickups, not on the scoreboard etc.

The idea is that you follow the tutorials and gradually add these features to the bot, learning in the process. The resulting bot is a lot better, though still not brilliant, but it teaches you an awful lot in the process.

If you want to make a DP only bot the tutor bot isn't a great place to start. I have a project called MauveBot that is roughly speaking a DP specific tutor bot equivilent; a plugin bot written to be as simple and short as possible. I wrote it for Nexuiz but it should work fine for Quake. I'll see if I can dig it up.
Apathy Now!
User avatar
MauveBib
 
Posts: 634
Joined: Thu Nov 04, 2004 1:22 am

Postby ceriux » Wed Apr 22, 2009 12:34 am

awsome thanks.
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby MauveBib » Wed Apr 22, 2009 2:06 am

Ok, here's the MauveBot: http://elf.planetquake.gamespy.com/mauvebot.zip.

It's a very, very simple bot for Darkplaces that can be plugged into any mod incredibly easily. The bot is dumb as hell, but that's because there are only 250ish lines of code in the whole thing :)

It should be a decent framework for building a DP bot, as it has nothing but the basics scetched out.
Apathy Now!
User avatar
MauveBib
 
Posts: 634
Joined: Thu Nov 04, 2004 1:22 am

Postby ceriux » Wed Apr 22, 2009 2:13 am

awsome thanks!
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Team Xlink » Fri Sep 04, 2009 11:02 pm

I hope this isn't a topic bump, it was on the first page still.

MauveBib, in the MauveBot, what exactly makes it DarkPlaces specific?

I assume these things might tie it to be DarkPlaces specific.

DP Extensions
(I am not sure if it uses this or not but a lot of DarkPlaces specific mods do.)

And

sv_user.qc
(This one I am not 100% sure on, but it is very good for AI it results ins some very realistic looking bots, the best example of a good use of it for AI is Electro's ShockBot, the most realistic bot I have seen so far it doesn't look like a bot, it looks like a human player.)


A bot that requires only 250 lines of code, is a very good base for a bot.

The MauveBot is as close to a bot template/skeleton that I could find.
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby MauveBib » Sat Sep 05, 2009 12:34 am

Team Xlink: The whole thing is hugely DP dependant, especially the botclient and movement code etc, which is entirely handled by DP.
Apathy Now!
User avatar
MauveBib
 
Posts: 634
Joined: Thu Nov 04, 2004 1:22 am

Postby FrikaC » Tue Sep 08, 2009 1:44 pm

FrikBot was supposed to be a bot template/skeleton. I guess I failed.
FrikaC
Site Admin
 
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Next

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest