Author Topic: Any add-ons known to break seBotName?  (Read 1688 times)

This has been a problem now, setBotName won't give the bot the name I give it, however in Freebuild I can do it just fine.

Are there any add-ons that you know of that break setBotName? Because if you know one that I have, I can get rid of it.

Launch your server in custom gamemode to replicate the problem, trace(1); in console

Create the event and trigger it, kill something, close server.
Post console.log using dropbox/mediafire/pastebin

Launch your server in custom gamemode to replicate the problem, trace(1); in console

Create the event and trigger it, kill something, close server.
Post console.log using dropbox/mediafire/pastebin
Where do I find console.log, or do I take a picture of my console?


Looks like Slayer messes with it.

Leaving [Slayer_AiPlayer]AIPlayer::setBotName() - return 32158[/img]

Looks like Slayer messes with it.

Leaving [Slayer_AiPlayer]AIPlayer::setBotName() - return 32158
Oops, fail lol

Looks like Slayer packaged it wrong: This is correct
   Leaving AIPlayer::setBotName() - return Test

This is what breaks your setBotName
Leaving [Slayer_AiPlayer]AIPlayer::setBotName() - return 32158

No, Slayer does not break it. Please stop saying things that you don't actually know anything about.

Code: [Select]
package Slayer_AiPlayer
{
//Used by events to change the bot's name.
//@param string name The new name of the bot.
function AiPlayer::setBotName(%this, %name)
{
parent::setBotName(%this, %name);
if(%this.isHoleBot)
%this.hName = %name;
if(%this.isSlayerBot && isObject(%this.client))
%this.client.hName = %name;
}
};

The return value for this function is undefined behavior.

If you think that it sets the name above the bot. It's not supposed to.

No, Slayer does not break it. Please stop saying things that you don't actually know anything about.
I should of double checked the code before assuming anything



OP, can you explain more detail on how it doesn't work?

Okay, sorry for not responding earlier.
If you think that it sets the name above the bot. It's not supposed to.
I know, that's what setAIShapeName does.

OP, can you explain more detail on how it doesn't work?
Well, I give the boat a name using setBotName, and when I die it just either doesn't' show up or it's just Blockhead.

Well, I give the bot a name using setBotName, and when I die it just either doesn't' show up or it's just Blockhead.
noedit

Kyuande, for future reference, output events never have to return anything, especially because they all get schedule called anyway.