SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Reply
 
Thread Tools
ExAI - Extended Behavior for SP Bots Details »»
ExAI - Extended Behavior for SP Bots
Version: 2, by CobaltBW (Community Noise Maker) CobaltBW is offline
Developer Last Online: May 2020

Version: SRB2 Rating: (3 votes - 3.80 average)
Released: 12-27-2019 Last Update: 12-31-2019 Installs: 7
Scripts Re-Useable Content

ExAI is a small project of mine which expands on the behavior of single player bots to make the AI more intelligent and versatile.
  • Built from the same code used to create 2.2's standard AI.
  • All six vanilla characters now have AI custom-tailored to make use of their abilities. (Usable with botskin)
  • Optional: Bot is customized to engage in combat (enabled by default)
  • Various other tweaks and added quirks to give the AI a bit more personality.

Commands are as follows:
ai_sys - Turns on/off all ExAI script functionality.
ai_attack - Turns on/off AI aggression against enemies.
ai_seekdist - Distance to seek out enemies. Measured in fracunits.
ai_debug - Streams local variables and cmd info in the console.

Download Now

File Type: lua VL_ExAI-v2.lua (21.0 KB, 741 views)

Screenshots

Click image for larger version

Name:	srb20243.gif
Views:	654
Size:	5.04 MB
ID:	24472   Click image for larger version

Name:	srb20235.gif
Views:	537
Size:	6.18 MB
ID:	24473   Click image for larger version

Name:	srb20234.gif
Views:	488
Size:	7.44 MB
ID:	24474   Click image for larger version

Name:	srb20228.gif
Views:	489
Size:	6.69 MB
ID:	24475   Click image for larger version

Name:	srb20227.gif
Views:	467
Size:	5.00 MB
ID:	24476  

Click image for larger version

Name:	srb20247.gif
Views:	465
Size:	5.97 MB
ID:	24478  

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 01-02-2020   #22
CobaltBW
Community Noise Maker
Developer
 
CobaltBW's Avatar
Default

Quote:
Originally Posted by Sting the Cat View Post
Wasn't there a Heroes mod for 2.1 or something?
Rings a bell, but I wouldn't know anything about the specifics of it.

Quote:
Originally Posted by Pyrakid Wolfo View Post
She does give me pity shield, but isn't that a bit broken? I mean, I literally can't take damage. Seems OP.
This mod is more of a demonstration on how to create intelligent AI for SRB2. Game balance wasn't exactly the top of my concerns. :p
__________________
~CobaltBW

Check out my soundcloud profile for music stuff
CobaltBW is offline   Reply With Quote
Old 01-02-2020   #23
Pyrakid Wolfo
 
Pyrakid Wolfo's Avatar
Default

There was a heroes mod, not compatible with 2.2 tho its in archived
Pyrakid Wolfo is offline   Reply With Quote
Old 01-08-2020   #24
Pyrakid Wolfo
 
Pyrakid Wolfo's Avatar
Default

Eh I think it should be balanced, for casual fun! What else is this mod for? What is this mod for?z
Pyrakid Wolfo is offline   Reply With Quote
Old 01-14-2020   #25
NAR the Fox
Self-taught Lua Amateur
 
NAR the Fox's Avatar
Default

Switching on the fly just works and I love it.


I even love how Fang just stays far away for his pop gun to work. So when you have to switch to Tails in a situation where you're surrounded by enemies, he'll kill those enemies for you and then return to you so you can fly.
Attached Thumbnails
Click image for larger version

Name:	srb20119.gif
Views:	468
Size:	2.65 MB
ID:	25538  
__________________
You can just call me "NARbluebear"
My YouTube Channel

4:3 will get ported to 2.2, so keep an eye out!
NAR the Fox is offline   Reply With Quote
Old 01-28-2020   #26
Makavo
 
Makavo's Avatar
Default

Finally! Tails can actually be helpful for once! And a suggestion: could you make it so the A.I can collect rings you've lost, or even can be able to platform by itself? (Without having to rely on the player's input to do it.)
__________________
Good day, I am Mak.

Last edited by Makavo; 01-28-2020 at 11:26 PM.
Makavo is offline   Reply With Quote
Old 01-29-2020   #27
CobaltBW
Community Noise Maker
Developer
 
CobaltBW's Avatar
Default

Quote:
Originally Posted by Makavo View Post
And a suggestion: could you make it so the A.I can collect rings you've lost, or even can be able to platform by itself? (Without having to rely on the player's input to do it.)
To some extent, they already have less dependent movement patterns, but it depends on the context. With the exception of combat, all of the AI's current functions are intended to help the AI stay near the player, and so the AI will use special abilities and attempt to maneuver around terrain if the situation calls for it. Additionally, the AI will attempt to read sector heights to see if they need to jump and/or activate their ability to avoid falling in a pit.

It's not in the cards right now, but if a future patch increases lua functionality for bot scripting, then I may experiment with an AI that is proficient at collecting items.
__________________
~CobaltBW

Check out my soundcloud profile for music stuff
CobaltBW is offline   Reply With Quote
Old 02-12-2020   #28
Evertone
Professional map cloner
 
Evertone's Avatar
Default well ain't this kinda broken

Cool mod tho
Attached Thumbnails
Click image for larger version

Name:	srb20116.png
Views:	74
Size:	121.0 KB
ID:	26477  
__________________
i tried using slade, accidentally summoned satan, 666/10 would rip and tear again
Evertone is offline   Reply With Quote
Old 02-13-2020   #29
XleederTH
íReremy
 
XleederTH's Avatar
Default

Quote:
Originally Posted by Sting the Cat View Post
Wasn't there a Heroes mod for 2.1 or something?
Yeah, but that mod wasn't using the bot's(NPC) system the game provides, in it sense the mod kinda made its own "bots" with a lua that tried to make them pass a NPCs. It uses some sprite told to follow Sonic or whatever, and that only had that behavior (that includes jumping).
__________________
Nothing for nothing, is the key :v
Visit my youtube channel!
XleederTH is offline   Reply With Quote
Old 03-26-2020   #30
Frostiikin
Meme Queen Supreme
 
Frostiikin's Avatar
Default

I can't seem to figure out what a bot sonic does in this, can you explain what specifically he does here? Like, i cant get him to thok no matter what i do
Frostiikin is offline   Reply With Quote
Old 03-26-2020   #31
CobaltBW
Community Noise Maker
Developer
 
CobaltBW's Avatar
Default

The Sonic bot uses thok conservatively because the AI isn't yet well equipped to judge whether a huge burst of speed will send the bot careening into the abyss. Sonic will only thok if he is too far away from Player 1, or to avoid falling off of a platform.
__________________
~CobaltBW

Check out my soundcloud profile for music stuff
CobaltBW is offline   Reply With Quote
Old 03-26-2020   #32
Frostiikin
Meme Queen Supreme
 
Frostiikin's Avatar
Default

Ah, okay. This mod seems really cool, I really hope both this and your momentum mod get put into the vanilla game in say 2.3 or something.
Frostiikin is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.