Dark Nexus Posted June 29, 2005 Report Posted June 29, 2005 I don't know about the other builds, but on build 45, for me anways, when i use tell(makeChangeArena(name)); it never seems to update the actual arena name in botInfo. even after moving from a public arena to a private arena, it continues to output the public arena as it's current arena name.
»Maverick Posted June 29, 2005 Report Posted June 29, 2005 better email such bug reports to him directly since catid doesn't visit these boards... at all .. <_<
50% Packetloss Posted June 29, 2005 Report Posted June 29, 2005 Any you have this line? case EVENT_ArenaEnter: { arena = (char*)event.p[0]; }
50% Packetloss Posted June 29, 2005 Report Posted June 29, 2005 Ok, I see the problem. void __stdcall handleInGameFlag(hostMessage *m); is where h->imports->talk(makeArenaEnter(h->botInfo.initialArena, h->Me, h->billerOnline));is done. So each time the S2C_ENTERINGARENA packet is sent to the bot, it runs the above function and then makes that call to the dll. The problem with the call is the botInfo.initialArena variable, it isn't being update with the new arena name when you do tell(...blah). A quick fix would be to add a strncpy(botInfo.initialArena, name, 64); botinfo.initialArena[63] = 0; to the function void Host::changeArena(char *name); But this isn't exactly the proper way of doing things. The server can deny an arena change by re-route players to another arena. But I could be wrong, I haven't really played around with all this stuff <_< . Edit: If you know C++, then you should have no trouble diagnosing these things. Just change your core and see if it works. Then contact catid with the problem.
Dark Nexus Posted June 30, 2005 Author Report Posted June 30, 2005 i !@#$%^&*umed it was something on the bots end, but i ended up finding a way around it so didn't pursue it. thanks <_< EDIT: and speaking of re-routing, is there a way to re-route players to different arenas within MERV? (yes this is pertaining to my secure plugin)
50% Packetloss Posted June 30, 2005 Report Posted June 30, 2005 You can try setting the player-limits in the arena, but other than that, nope. You have to use ASSS for that.
»D1st0rt Posted June 30, 2005 Report Posted June 30, 2005 Not unless you can figure out parameters of *sendto that don't crash the server, though I think its meant for internally sending players to another ip/port
50% Packetloss Posted June 30, 2005 Report Posted June 30, 2005 From what I have been told, the command is ment to send players to another server. But how it works exactly, I'm not sure. I'll ask ekted next time he is online, I think his comp had some hardware problems and he hasn't been online.
»Maverick Posted June 30, 2005 Report Posted June 30, 2005 if you can send players to another server then you must be able to let them change arena too? ... Just a thought
»D1st0rt Posted June 30, 2005 Report Posted June 30, 2005 This is the discussion we had a while ago about ithttp://forums.minegoboom.com/viewtopic.php?t=3159
»Maverick Posted August 12, 2005 Report Posted August 12, 2005 Thanks for letting me know about this. A fixed version of the core hasbeen uploaded to my website. If you like I'll credit you in thediscovery and update the version number or whatever, this coming weekend. (Summer school finals.) Please test the uploaded core for me and let meknow of any add'l probs. --Catid
50% Packetloss Posted August 13, 2005 Report Posted August 13, 2005 Yah, have him credit Dark Nexus, he found the bug.
Recommended Posts