• Do not use Works in Progress as a way of avoiding the releases system! Works in Progress can be used for sharing early betas and for getting suggestions for improvement. Releases of finished content are not allowed in this forum! If you would like to submit a finished addon, click here for instructions on how to do so.

AI Works

clairebun

Community Noise Maker
Sonic Team Junior
(View gifs here if any of the embeds aren't working)

Currently working on an all-encompassing AI system which allows bots to perform tasks in different gametypes. Lots of work to be done still.

jCThpJSh.gif


The AI is currently programmed to seek out targets such as rings and enemies. Basic tracking behaviors and action inputs have already been coded, although the majority of character specific abilities have not been started yet.

nfE58hPh.gif


Support for MapPaths is already implemented, allowing bots to use waypoints to figure out how to reach certain points of interests on the map. This image demonstrates 30 AI trekking through CEZ2, using a rudimentary start-to-finish path constructed for testing purposes.
uWL7KoS.gif


One of the more challenging aspects of orienting an AI to its terrain and surroundings is ensuring that the game doesn't run slowly on large maps or when multiple AI are running simultaneously. Fortunately, the current implementation for this AI is highly efficient. Since MapPaths does a lot of the work in telling which waypoints are connected and how, a single search and pathbuild is usually all the AI needs in order to get the job done.

For all other objects, the AI uses a series of blockmap searches within its "line of sight" to quickly seek out a nearby object of interest.

1648433253379.png



1648433271283.png


The image is a little outdated, because I have since coded player tracking, although the method is still a work in progress.

Ge3031r.gif


The finished AI will have certain elements of polish, such as aim smoothing to reduce jitter and make ringslinger bots less "perfect" with their aim.



A long term goal of this project is to offer a way to interface with other addons. Other characters and game modes will often require unique instructions for their AI, but it is difficult to combine their scripts without one AI overriding the other. I will probably post ideas later on how to counteract this. Later on, I may also post some previous prototypes I had experimented with before starting on this specific project. For now I'll open the floor for discussion.
 
The amount of things that might be possible with this... it's amazing! I can't wait to see where this will go.
 
Wow i love this. so it's bassicly fake players.. but instead of following it's a pathway! Cool!
Post automatically merged:

One question. Can you have multiple bots at once?
Post automatically merged:

Y'know im starting to like this fangame!
 
hey, I'm a srb2 bot's fan and I played exai, foxbot and buddyex, but this may be the biggest bots mod with race and coop, i hope this doesn't get cancelled.
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top