Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
SoccerGoal event not detected

 
Post new topic   Reply to topic Printable version
 View previous topic  How to read a staff application plugin Post :: Post Getting a player's position?  View next topic  
Author Message
tansey
Novice


Joined: Nov 03 2004
Posts: 53
Offline

PostPosted: Wed Nov 03, 2004 12:57 am    Post subject: SoccerGoal event not detected Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Wed Nov 03, 2004 2:09 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Wed Nov 03, 2004 11:47 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
tansey
Novice


Joined: Nov 03 2004
Posts: 53
Offline

PostPosted: Wed Nov 03, 2004 1:05 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Wed Nov 03, 2004 5:46 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Thu Nov 04, 2004 5:27 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Fri Nov 05, 2004 1:22 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 27 page(s) served in previous 5 minutes.

phpBB Created this page in 0.478519 seconds : 32 queries executed (95.0%): GZIP compression disabled