Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Client for Machine Learning

I'm working on a project where I'm training a bot to play this game and I'm trying to make a version of the client that exposes the game state information and controls and let's me communicate with my training files in python. For that last part, I'll planning on trying to use SWIG, since that works for C.
That being said, I've been having a hard time understanding the code structure enough to get that done. Can someone point me in the direction of where the client and server communicate? 
I briefly looked into xrcon but the console commands that the server supports didn't seem enough to spoof a player and all that. It seems like what I want is to have the client console exposed, since there are commands to connect to the server, press buttons, and lookup environment information, etc. Is there an easy way to run a headless mode of the game with access to the console?
Any help would be appreciated, thanks!

I like the enthusiasm here -- our bots can use some intelligence (in addition to perfect aiming) in strategy.

However, this sounds very difficult. If this is a dissertation/thesis/term project, then you probably want to evaluate the time feasibility. However, if this is a pet project, then go for it!

I don't have much answer for you, but here are some food for thought:

Sending out commands to console is not fast enough, especially with Python.

Perhaps you can study how demo files are recorded and parsed back, and see whether you can inject your own function there.

Are you training your machine to beat the current bots? I'm not sure our bots are deterministic. You may need to collect humongous amount of data to start. Let alone the complexity of the nature of the game -- I can't imagine how wide your feature set could be.

What's your cost function? Final total score? Survival? Damage caused? Damage taken? This gets tricky quickly:
  • For example, for survival, perhaps you just need to find a spot where the other bots won't see you, and stay there until the game ends. Does that count?
  • For scores, just make your bot a super aim bot. I believe our current bots don't have perfect aims.
  • Does your bot listen for the direction of footsteps (and other enemy sounds) and then shoot perfectly?
That said, I think there are many interesting smaller scoped problems, even without the complexity of enemies.  For example, could your machine look at a map, and figure out how to travel around in it, making use of jumpads, teleporters, etc.? If so, we can either automatically calculate waypoints, or even implement your AI model.

Best of luck!

Possibly Related Threads…
Thread Author Replies Views Last Post
  New QuakeC virtual machine Lyberta 5 6,096 07-14-2017, 04:01 PM
Last Post: poVoq
  Rcon client Sl@va 1 2,795 05-26-2015, 04:25 PM
Last Post: -z-
  Getting Position of Other Players/Bots Client-Side ehrenbrav 7 7,694 05-10-2015, 12:42 PM
Last Post: ehrenbrav
  Learning QuakeC? phim 13 17,510 12-24-2013, 03:07 AM
Last Post: aa
  Lightning Gun / Machine Gun thread _Subzero_ 56 51,707 08-14-2012, 06:49 AM
Last Post: Lee_Stricklin
  IRC client in the game (working prototype) Akari 4 9,157 04-09-2011, 02:52 PM
Last Post: atomic1fire
  Xonotic's Direction? What do we have to do Learning from nexuiz's mistakes. kojn^ 67 71,353 06-13-2010, 09:20 AM
Last Post: MirceaKitsune

Forum Jump:

Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-