Shockbot - taking its first steps

Discuss Artificial Intelligence and Bot programming.
Electro
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia
Contact:

Post by Electro »

Urre: yeah still sick, got it bad :(
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/
frag.machine
Posts: 2126
Joined: Sat Nov 25, 2006 1:49 pm

Post by frag.machine »

Electro wrote:Urre: yeah still sick, got it bad :(
Wow, hope you get better soon dude. Also, very impressive work.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
Electro
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia
Contact:

Post by Electro »

thanks frag.machine!

The beginnings (very damn good beginnings i might add!) of Ledge Avoidance is in place now :) MASSIVE thanks to Urre for helping out with the intricacy that is traceline madness ;)

Next up methinks is jumping AI, and getting that to work with the ledge avoidance to completely rid the need of and 'jump' flags on nodes.

Getting the jumping predictions to take into account air control will be tricky :)
Getting them to do run-ups if they need to shouldn't be too much of a drama.

I'm packing/moving within the next 2 weeks... so that'll probably slow things down even more (as if they weren't slow already).
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/
scar3crow
InsideQC Staff
Posts: 1054
Joined: Tue Jan 18, 2005 8:54 pm
Location: Alabama

Post by scar3crow »

Shit I don't even take into account air control... Bugger it, just get the run-up working! ; )
Urre
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon
Contact:

Post by Urre »

I think he's nuts :P
I was once a Quake modder
Orion
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Post by Orion »

Any news Electro?
Electro
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia
Contact:

Post by Electro »

Hmm.. yeah a little...some pretty basic retreating and chasing stuff is in place now.

Next i might do spamming. Which will let me ponder/procrastinate jump ai (with air control predictions) just a little bit longer ;)
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/
frag.machine
Posts: 2126
Joined: Sat Nov 25, 2006 1:49 pm

Post by frag.machine »

Electro wrote:Next i might do spamming.
Yay! A spam bot in QuakeC!
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
Urre
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon
Contact:

Post by Urre »

Electro: It's not even possible to do the in-air turning stuff you can do in Quake on bots, since they don't have that weird client bug which causes the extra directional speed you gain from slowly turning in mid-air. It comes from mouse movement interpretation, and bots currently don't have fake mouse input, you set their angles directly in the code. Even if fake mouse input was implemented, I'm very unsure it'd still be possible, since it runs on the server, and would most likely be treated very differently.

You could obviously do it by adding specific code for this kind of behaviour on bots, that they get more forward momentum if in-air and their view-angles change at a steady speed in a particular direction. But ehh... yes...

You should just do jump-test predictions with STW or something similar, and stopping in mid-air wouldn't be hard to do either if you just find a use for it, and define where it's used. The latter is the hard part, but not even nearly as impossible as the turning stuff. You could just tracebox down until trace_endpos is where you want it to be, and make the bot do input in the reverse direction of his current velocity.

Just my two cents. I'd just really like you to get this out and playable, rather than get stuck on something no-one's ever considered sane :P
I was once a Quake modder
Electro
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia
Contact:

Post by Electro »

Lies! All of it! hehe

I'm determined to get it working, and it's definitely possible, even if faked.
Frogbot had it, which is what is telling me that it's definitely possible and I shouldn't give up so easily. There's definitely other parts of the bot that need more attention first, so i'll be doing those in favour of predicted air control of course ;)

I'll probably actually add button support before i add projectile spamming.
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
Contact:

Post by Electro »

*sneaks in button support before anyone realises*

Image

The bot obviously starts 'outside' and understands the sequence of buttons and doors required to get to the red armor.

I don't support buttons that get shot to activate yet, but easy to add in now ;)
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/
Orion
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Post by Orion »

Cool! :)

Electro, can you implement random accuracy, colors, etc in the profile editor?
Because it's too many things to tweak, it would be nice if you implement a random button that will pick random shirt and pants color, accuracy, and all of his behavior, except the names and chat messages, of course. :wink:
Electro
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia
Contact:

Post by Electro »

Orion: sure can, and will do! :)

There's a few more things i want to do with that little app to polish it up. :D
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/
Urre
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon
Contact:

Post by Urre »

Electro wrote:Frogbot had it
Seriously? That I need to see. Isn't frogbots source open?
I was once a Quake modder
scar3crow
InsideQC Staff
Posts: 1054
Joined: Tue Jan 18, 2005 8:54 pm
Location: Alabama

Post by scar3crow »

FrogBot had it to the extent where I would go "Yup, I am playing a bot."

Seriously, blast a bot with a rocket in dm6 in the ra/rl room, without an ounce of mistake he would always manage to find himself up in the air, and guide himself EXACTLY onto the ra spot, usually right as it respawned... It happened so consistently, with such ridiculous accuracy many times, that it was most definitely a bot, rather than an emulated opponent.
Post Reply