[Pogamut-list] Preset objects/attributes being cleared. Why?

pogamut-forum at diana.ms.mff.cuni.cz pogamut-forum at diana.ms.mff.cuni.cz
Tue Apr 27 17:39:54 CEST 2010


Re: Preset objects/attributes being cleared. Why?

Author: 

Descendant of UT2004BotLogicController. There is no possible place to reset it.
The main of DummyBot is following:

        UT2004BotModule myModule = new UT2004BotModule(DummyBot.class);
        UT2004BotFactory factory = new UT2004BotFactory(myModule);

        // TODO here you can rename your bot, the name of the class is used now
        UT2004BotRunner botRunner = new UT2004BotRunner(factory, "DummyBot", "localhost",3003);
        IAgent agent = botRunner.startAgent();


        // wait until the bot finishes and close Pogamut platform
        new WaitForAgentStateChange(agent.getState(), IAgentStateStopped.class).await();
        Pogamut.getPlatform().close();

I'm had a problem before where I had forgotten to change EmptyBot to DummyBot so it spawned the wrong bot. Changed the new module line to the correct and everything worked, I'm thinking it has something to do with how it makes new bots. This is the line: 

new UT2004BotModule(DummyBot.class);

Will continue working on it =/

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=113&post_reply=1#form>





More information about the Pogamut-list mailing list