MegaHAL ChatBot
MegaHAL Chatbot After months of development and testing, I give you the Chatbot extension. This extension brings you the full artificial intelligence of MegaHAL. It sits around and listens and learns, and will reply to input from chat when you want it to. Quote:
Download it here Source code is here Cvars: sm_megahal_talk (Default: 0) - Chatbot will reply to all input from the chat. sm_megahal_learn (Default: 1) - Chatbot will listen to all input from chat but not reply to it. sm_megahal_replychance (Default: 0.75) - Chance that chatbot will generate a reply sm_megahal_replywhenspokento (Default: 1) - Only reply when spoken to (may not reply if sm_megahal_replychance is not 1.0) sm_megahal_botname (Default: ChatBot) - The name that MegaHAL will use when printing its reply to chat. Credits: Jason Hutchens - Author of MegaHAL Afronanny - Putting it into an extension Please give any crash info here or PM me with it. |
Re: MegaHAL ChatBot
Looks like guaranteed fun! GJ :)
|
Re: MegaHAL ChatBot
Have installed this on a Linux TF2 server. (I've checked the it's all loaded fine, no errors in error log either.)
Should the files in sourcemod/megahal-ext/ be updating and changing as MegaHAL learns? If so, then they aren't for me. Where is what is learnt stored? |
Re: MegaHAL ChatBot
It would be good if it ignored chat lines that started with either "!" or "/", as it's not so satisfying when it responses to triggers.
|
Re: MegaHAL ChatBot
Quote:
Also, try re-downloading the plugin. I added a check so it will not reply to chat commands. |
Re: MegaHAL ChatBot
Quote:
Thanks for making the update. I'm wondering, won't this make it ignore anything that contains an '!' anywhere, rather than at the beginning? Code:
if (StrContains(arg1, "!") == 0 || StrContains(arg1, "/") == 0) Code:
new char = arg1[0]; |
Re: MegaHAL ChatBot
No. StrContains returns the position of the character, or -1 if it isn't found.
Quote:
|
Re: MegaHAL ChatBot
So it basically never saves then. The only time that it would "unload" is when a server does a clean shut down or if the admin manually unloads it. If the server crashes, everything will be lost. You should dump the information regularly to prevent this from happening.
|
Re: MegaHAL ChatBot
Updated the extension and the plugin.
- Extension is now using actual version numbers - Added the MH_Save native - Plugin calls MH_Save on map end so that the MegaHAL brain is saved often |
Re: MegaHAL ChatBot
Seems like a good idea and concept but how do you work with it? Do you have it learn a fair but then let it talk or does it do it automatically? Can you make it so it doesn't respond to everything you say like if you just call it's name, it responds? Does it take up a slot? Sorry for all the questions. :3
|
All times are GMT -4. The time now is 01:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.