[Pogamut-list] Preset objects/attributes being cleared. Why?
jakub.gemrot
pogamut-forum at diana.ms.mff.cuni.cz
Tue Apr 27 20:57:10 CEST 2010
Re: Preset objects/attributes being cleared. Why?
Author: jakub.gemrot
Hi,
you've written, that you have manually instantiated DummyBot
dummy = new DummyBot();
dummy.prePogaInit(this);
dummy.testInt = 5;
And after that, you're writing you're using UT2004BotRunner.
Actually UT2004BotRunner instantiate its own new controller for the bot - you can't instantiate your own DummyBot and expect UT2004BotRunner will use that instance. Or am I missing something?
I think you're trying to find a way how to easily parametrize your bot when starting them. Am I right?
Well - this is currently a bit hard to do with Pogamut 3 as you would need to alter UT2004BotModule and probably even make a descendant of UT2004BotLogicController. But I can pull it out if you need it.
Cheers!
Jakub
--
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