Author |
Message |
tansey Novice
Joined: Nov 03 2004 Posts: 53 Offline
|
Posted: 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 |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: 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. |
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: 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. _________________ 4,691 irradiated haggis! |
|
Back to top |
|
 |
tansey Novice
Joined: Nov 03 2004 Posts: 53 Offline
|
Posted: 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 |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: 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 _________________
 |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: 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:
[Soccer]
BallBounce=1
AllowBombs=1
AllowGuns=0
PassDelay=20
Mode=5
BallBlankDelay=100
UseFlagger=1
BallLocation=1
BallCount=3
SendTime=150
Reward=-1
CapturePoints=-20
CatchMinimum=300
CatchPoints=0
WinBy=100
DisableWallPass=1
DisableBallKilling=0 |
|
Back to top |
|
 |
|