Game Development Community

dev|Pro Game Development Curriculum

Football AI demo movie

by Mathieu Marquis-Bolduc · 06/23/2006 (5:48 pm) · 15 comments

Hey everybody,

Due to popular demand (thats at least 3 people!), I've uploaded a video showing my football AI demo in action. You can see it here on google video. I apologize for the severe compression, can't do better.

I've mainly worked on the offensive play. I seems simple when you see it in action, but there is a lot to it!
The demo currently features:

7 goals and sub-goals;

PlayBall, CatchBall, GrabFreeBall, Offense, OffenseWithBall, OffenseWithoutBall, Defense, ProtectPlayer

8 possible actions, (that are often combined);

RunToGoal, AvoidEnemyPlayers, RunToBall, SeparateFromPlayers, RunToPlayer, CallProtectPlayer, PassToPlayer, InterposeBetween, StayInPassDistance

3 events;

Kickoff, BallCatched, BallThrown

and a grand total of 11 logic clauses:

BallClose/IsCloseToBall, BallHolderInMyTeam, IsBallHolder / HaveBall, AreClose, Protected, InDanger/IsInDanger, InThrowDistance, Always.

At first it is a lot of work, even with the fully operational AI engine. But once you reach a critical mass of goals, events, actions and clause to work with, you can add new behaviors with real ease, just by playing in the behavior rules script file.

I will most probably include this full demo when I'll release the AI engine to the public. The demo is by no mean a functionnal football game, but I think it will work nicely at exposing how to work with the decision making engine. The latter should come as a dynamic link library, with mandatory header files and all necessary and usefull bits of code and scripts to make it run great with TGE.

#1
06/23/2006 (5:55 pm)
It looks good, but it was difficult to see the ball. It looks like you know what you're doing :]
#2
06/23/2006 (5:58 pm)
looking cool! love to see the finished product! was a little dissapointed for it not to be football football (world cup!), but hey, not everyone is perfect :)
#3
06/23/2006 (6:01 pm)
Cool man. I was afraid it was going to be that "other" football with the World Cup and all going on ya know but very cool stuff. It might be better if you could slow down their run speed a bit, Kork runs way to fast by default.
#4
06/23/2006 (7:14 pm)
Long live American Football! ;)
#5
06/24/2006 (1:48 am)
Bah real football is better :P Come on England! Nice video, cool idea on the AI engine.
#6
06/24/2006 (6:41 am)
Sweet vid! The running speed really makes it look like it could be a violent sport, a la Mutant sports League on Genesis.
#7
06/24/2006 (8:43 am)
That looks awesome!
#8
06/24/2006 (11:39 am)
Neato. Looks like you've set up a great framework and makes a great addition to the stock TGE AI. Are your goal sets heirarchical? Seems to be (Offense breaks down into subgoals I'm assuming).

Are you planning on supporting other platforms besides Windows (the .dll keyed me in here)? Or a better question: are you releasing source or as a linked lib?

Great job and keep it up!
#9
06/24/2006 (6:51 pm)
Thanks for the encouragements guys :)

First, though I speak french, I live in North America, so I call soccer, soccer and american football, football. But no sport war here or I change the demo to curling ;)

Yes, goals are somewhat hierarchical. Each agent's goal are maintained in a data structure just a tad more complex than a stack. So goals are typically achieved by queueing sub-goals, until you reach actual actions. You can queue goals and actions in the same rule, tough.

Im strongly hesitating to release it with source. I dont see much increased value for the user of being able to tinker with the source, and releasing further versions will be a lot easier if it comes as a dll. The main goal is to have an decision engine the user dont ever need to tinker in.

I may release it for other platforms if the demand is there, but completing the feature set is a bigger priority. There is very, very few platform dependant code in it, at any rate.
#10
06/24/2006 (8:04 pm)
Very Nice work, its really cool to see in action. By the way....curling would be awesome :P
#11
06/26/2006 (6:03 am)
Cool. I was assuming it was going to be soccer as well. Anyway the AI work looks really good.

BTW both Footballs are great sports :)
#12
07/28/2006 (9:39 am)
I am very interested in your work. Please let me know when you make the DLL available. I would like to have the source code (if you're willing to provide it) to get it working/integrated with TSE. Please email me.
#13
09/12/2006 (6:51 pm)
Hello all. I cannot believe its already september and that I posted this in June. I just want to tell everyone, Im working on an additional system that is as big as the GOAD presented here, and significally more advanced in terms of technology. It should not compete with the GOAD system, instead I believe they will be complementary with each other. It proved to be much more work to implemented than I thought, but Im at the point where a very simple shooter demo is shaping up, so I hope to have an additionnal video demo to show soon.

Thanks again for your interest in my project!
#14
02/05/2007 (10:03 am)
Hi, this is great stuff. I really want to talk with you more about your system.
really great stuff.
#15
02/12/2007 (4:26 pm)
Anthony, I replied to your email twice, maybe your spam filter is blocking me? Please check it :)