Forum: General

Bot's name

Hi!

I'm trying to asign a different name to each bot i create using the following methods:

new UT2004BotRunner(SmartBot.class, nameBot()).setMain(false).startAgents(4);
new UT2004BotRunner(SmartBot.class, "MasterBot").setMain(true).startAgent();

I undertand that the first 4 bots will have the same name followed by a number:

bot1
bot2
..

but i don't see why MasterBot's name it's "MasterBot5" if i wrote only "MasterBot". Any clue?

Thank you!
Yeah,

actually when your starting the agent and rely on the name set by the runner, you will always get number suffix.

Use getBotInitialized() and set custom name for your bot there.

Cheers!
Jimmy
Hi!

Thanks Jimmy! It works nicely :-)

Joan Marc