And you say this because... why?
sendPublic() works fine for everyone else...
Are you using all latest sources?
Doggeti - Sun Jan 26, 2003 10:44 am
Post subject:
Yes. I am using the latest source directly from
catid.sscentral.com.
Ok, you are right. i can't tell if the EVENT_SoccerGoal gets called or not but i can be sure that something must be wrong with the function 'sendPublic' or may way of using it
.
SOS - Sun Jan 26, 2003 11:59 am
Post subject:
No, you can't
There's nothing special to use about it, so that's out...
As I said, post the entire getEvent() function and I might be able to find the error
Doggeti - Mon Jan 27, 2003 9:39 am
Post subject:
OK. Though I don't know why you need the entire code here you have it (it's my spawn.cpp in attachment). I think that's the file that contains 'gotEvent'. If not please don't slap me
tikiman - Tue Jan 28, 2003 4:03 am
Post subject:
Has anyone gotten this working? I tried it similar to the way Doggeti did and I have the same problem: sendPrivate seems to work, sendPublic doesn't, no matter where I put it.
I looked up the !say command that comes with the bot core. It's in command.cpp and the only difference is that it gets passed a Host object and uses the Host sendPublic() function like the following:
h->sendPublic("hi");
If h is of type Host*. I tried creating one of these in spawn.cpp but with multiple errors. Here's what I did.
Host* h = new Host;
h->sendPublic("hi");
It doesn't seem to work. My C++ is really rusty though so that may be completely wrong.
SOS - Tue Jan 28, 2003 8:47 am
Post subject:
Well, sendPublic() always worked for me and it has not changed in the latest MERV versions...
A thought occurs: Can people talk public chat in your zone? There is that bug where only moderators can use public chat. Hrm, altough usually bots have staff access... so I dunno...
Dr Brain - Tue Jan 28, 2003 9:45 am
Post subject:
It works for me too, altho I have not tested it with the latest MERV version.
I HATE that pub chat bug, I had an event in my zone with 10 people, and I was the only one talkin... I thought they just didn't like speaking.
ExplodyThingy - Tue Jan 28, 2003 11:10 am
Post subject:
Since we dont seem to know the source of the problem, ever thought of doing a sendTeam(); or similar to see if that event is called? That will tell you if its the event or sendPublic();
Doggeti - Tue Jan 28, 2003 3:00 pm
Post subject:
LOL! I put sendTeam(s); into EVENT_SoccerGoal as Explody suggested and it didn't work.
SoccerGoal happens when the powerball crosses the goal-tile, right?
Anonymous - Wed Jan 29, 2003 1:21 pm
Post subject:
EVENT_SoccerGoal never happens and this is the problem. MERV bot has a bug.
Doggeti - Wed Jan 29, 2003 3:35 pm
Post subject:
I found a bug! *proud*
Ok, then i will download one of the older versions.
ExplodyThingy - Wed Jan 29, 2003 4:59 pm
Post subject:
If it doesnt work now, why would it have worked then?
And where are the older versions? Id like to get my hands on one of the 'emptier' ones, like build 2 or so, so i can see how it works by trial and fire a lot easier.
Doggeti - Thu Jan 30, 2003 1:57 pm
Post subject:
EEK, you are right. There's just one link on catid's site to the newest version. Mhm, then I have to wait until the next build
Anonymous - Mon Feb 03, 2003 7:07 pm
Post subject:
You can get the soccergoal event to run if your server's setting for every soccer goal is to give a reward. Just figured this out so apparently it's not an enormous bug(most zones will have a reward).
Doggeti - Tue Feb 04, 2003 8:10 am
Post subject:
I set server.cfg:Soccer:Reward to 1 and -1. Both didn't work. Are there other settings I have to change
Is this the correct Reward that you meant
Anonymous - Tue Feb 04, 2003 1:50 pm
Post subject:
[Soccer]
BallBounce=1
AllowBombs=0
AllowGuns=0
PassDelay=0
Mode=1
BallBlankDelay=200
UseFlagger=1
BallLocation=1
BallCount=1
SendTime=200
Reward=-1
CapturePoints=0
CatchMinimum=5
CatchPoints=10
WinBy=2
These are the setting in which I got the event to work.
Doggeti - Tue Feb 04, 2003 2:40 pm
Post subject:
Oops! That was my fault. There was still sendTeam in EVENT_SoccerGoal because I have tested it in order to know if it's EVENT_SoccerGoal or sendPublic that makes trouble. Giving Reward is the right solution. What shell I say ... IT WORKS