Bot Questions - SoccerGoal event not detected tansey - Wed Nov 03, 2004 12:57 am Post subject: SoccerGoal event not detected
I'm having trouble with my SoccerGoal event being detected by my mervbot. I checked the old posts and saw there was someone with the same problem but they never got a real answer.
I've tried running catid's soccerstats plugin that is supposed to print soccer stats when goals are scored I think, and that doesn't work. I also tried having the bot sendPublic when SoccerGoal is first called, and it never says the message I gave it.
Any ideas? All my other stuff works, code works, just this one thing.
Thanks for any help!
--tansey
50% Packetloss - Wed Nov 03, 2004 2:09 am Post subject:
Sometimes when the server ignores messages sent. I would just declare a global test variable like char buffer[256]="Im rick james, bitch"; then when the event happens you copy something else into the buffer and have a !test command print out what is in the buffer. You might even want to place a GetTickCount() in the string so that the message isnt the same each time you type the command. Sometimes servers will ignore spam or your client does, I havent been able to figure it out, just that messages are ignored at times.
Mr Ekted - Wed Nov 03, 2004 11:47 am Post subject:
Subgame drops repeats of public text by same player if it's within a certain time UNLESS there's intervening text.
tansey - Wed Nov 03, 2004 1:05 pm Post subject:
I think I found that basically mervbot's SoccerGoal event doesn't work.
Instead, I just had the bot detect arena messages of "Team Goal!" and "Enemy Goal!" which works just as well since it's a 2 freq game.
Thanks though guys.
--tansey
Cyan~Fire - Wed Nov 03, 2004 5:46 pm Post subject:
The soccer goal does work. Doubt yourself before doubting very tested software.
To find your error, do these things:
Make sure the Misc:NoTerminal setting is off for your MERV core.
In EVENT_Init and EVENT_Term, replace "DLL plugin" with your own plugin's name. Ex: "lvzbot plugin connected." or "lvzbot plugin could not connect."
Send an EVENT_Echo to the core in the EVENT_SoccerGoal code.
Now, watch the MERVBot terminal as it starts up. Check to see if the "plugin connected" message for your plugin is displayed. If it isn't, either upgrade your plugin source or MERVBot. If it is, see if your EVENT_Echo works. If it does, then subgame is ignoring your bot's messages or you're sending a malformed EVENT_Say. If it doesn't, then and only then may you doubt MERVBot and I will help you further.
D1st0rt - Thu Nov 04, 2004 5:27 pm Post subject:
I remember having a problem a while ago where the bot just didn't pick up the goals. If I remember what I did to fix it, I'll post again
Bak - Fri Nov 05, 2004 1:22 am Post subject:
the problem is in the settings... you need a negative reward amount or something like that for the event to work... here's a (what should be) working cfg snippit: