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
|
Re: MegaHAL ChatBot
I just put in a new cvar to control the probability that ChatBot will respond. And certainly, one could make it so that it only responds when spoken to by name. I put that in there as well. And a cvar to control chatbot's name.
No it does not take up a slot. It's not a real bot. Just an imaginary one. |
Re: MegaHAL ChatBot
Well i installed the extension and the plugin and it says it's running but the bot doesn't like to respond for some reason. I've tried setting CVARS but it still doesn't say anything so i'm kind of confused to how this works.
|
Re: MegaHAL ChatBot
Links are down D:
|
Re: MegaHAL ChatBot
Quote:
|
Re: MegaHAL ChatBot
I'm experiencing some very frequent crashes when the bot is generating responses
edit: This is on a Windows TF2 server |
Re: MegaHAL ChatBot
Do you have a mdmp I can use to debug?
|
Re: MegaHAL ChatBot
I don't think TF2 uses mdmp dumps anymore.
edit: yeah, no dump what-so-ever D: But this time when I tried it, it worked for half a minute before crashing. Still crashed, though. edit2: and this time 10 seconds. I can run the extension + plugin just fine with replies off, but sometimes when the bot has to generate responses, it crashes. I wouldn't mind running a debug version of the extension to help you track down the issue, though! |
Re: MegaHAL ChatBot
Here's a debug build: http://downloads.afronanny.org/megahal.ext.dll
By the way, I downloaded the windows server and am running this without crashes when it's generating a reply. It may need a higher playercount before it starts crashing but we'll see. I appreciate your help in tracking down the problem. |
Re: MegaHAL ChatBot
I ran the debug build and the bot crashed after a few responses. Where are the logs stored?
edit: found the logs. Here's what it said: error.log Code:
MegaHALv8 status.log Code:
MegaHALv8 Code:
*DEAD* Christian Brutal Sniper : okay we are moveing out |
Re: MegaHAL ChatBot
I just compiled it with MegaHAL's debug files, looks it'll write to stdout when some of the memory functions are called (malloc, realloc). Redownload megahal.ext.dll that i linked to above.
I'm not sure where the debug logs are located :X |
Re: MegaHAL ChatBot
status.log
Code:
MegaHALv8 |
Re: MegaHAL ChatBot
I'll look over the MegaHAL code for pointer calls and add checks where necessary.
EDIT: I just started crashing too. Time for the debugger EDIT#2: I stopped crashing. |
Re: MegaHAL ChatBot
Is this still unstable?
|
Re: MegaHAL ChatBot
I've been running it for a couple months and it seems pretty stable. Haven't seen any crashes relating to this extension for a while. The only thing I would consider adding is a word filter for the input. People have been teaching chatbot bad, bad things.
|
Re: MegaHAL ChatBot
I'll try it out on my server :P
|
Re: MegaHAL ChatBot
Training from file: 100%
Unable to open file `Unable to open file `%s''[SM] Loaded extension megahal.ext.so successfully. Crash Stack after saying "What does BotName think about dogs" Code:
Program received signal SIGSEGV, Segmentation fault. |
Re: MegaHAL ChatBot
This is loaded but doesn't seems to be doing anything at all. I think I might be putting megahal-ext folder in the wrong place. Where do I put this folder?
|
Re: MegaHAL ChatBot
By default it doesn't reply unless you set sm_megahal_talk to 1
|
Re: MegaHAL ChatBot
Works but not at all how I thought it would.
Me: Chatbot ChatBot: Who are you Chatbot. Me: Chatbot you are cool. ChatBot: Because I decided to have a child, and here you are cool. I hope it learns fast. |
Re: MegaHAL ChatBot
It takes a while to learn, but you just gotta talk to it for a while. Respond to what it says but don't tell it that it is wrong. Then it'll start telling you you're wrong.
|
Re: MegaHAL ChatBot
Is there any hope you can make it support multiple running instances of one srcds-installation (+ l4d2-forks, which is the same as multiple instances)?
It's a great plugin but to save ressources I'm running the fork-command with one installation, which crashes the server since both plugin-instances use the same files. It would be a shame to be forced to waste the double amount of disk-space and additional ressources to make it work, although the libraries/minds would be seperated then. It would be also nice if people would be able to share the chatbots "minds" and maybe able to combine them. |
Re: MegaHAL ChatBot
I'm working on a new Markov implementation. Implementing MegaHAL is not working out as well as it could. It could support 1 brain with multiple forks if I used SQLite or something. I'll think about it.
|
Re: MegaHAL ChatBot
kk, thanks that would be really awesome. I'd be willing to betatest in this case.
|
Re: MegaHAL ChatBot
Quote:
|
Re: MegaHAL ChatBot
When people found I loaded this they started to spam the chatbot. When spammed the chatbot reliably crashes the server. I have no crash dump but I could try and get gdb running again when the server is less crowded. Could you add some anti-spam code to this when you get a moment?
|
Re: MegaHAL ChatBot
Quote:
|
Re: MegaHAL ChatBot
Could this be worked around in the SP file by setting the reply chance to 100% and blocking future learning and replies until a response is received?
|
Re: MegaHAL ChatBot
Download link is incorrect, use this instead.
|
Re: MegaHAL ChatBot
Is it abble to speak in another language than english?
|
Re: MegaHAL ChatBot
Site seems to be down.
Would it be possible for extension to be reuploaded? - Thanks |
All times are GMT -4. The time now is 20:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.