BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: pusikas on January 17, 2007, 03:11:44 pm

Title: Load order of modules
Post by: pusikas on January 17, 2007, 03:11:44 pm
Today was the first time I had a problem with the order in which modules are loaded in my 2.10 bot. There was a short discussion in this (http://bebot.link/index.php/topic,235.msg4556) thread. Anyways, this was all completely off topic in the Online.php thread, but my own solution and Xenixa's got me thinking. The following concept may be complete bogus, or totally unnecessary. I have no idea what the new version brings, and how load order of modules is handled there.
Uhm... that's about it. I think this way modules should automatically get loaded in one of the many correct orders. AOChat.php and MySQL.php would still be loaded first, Bot.php thereafter, modules that rely upon other modules last. All modules that got loaded after Bot.php would output that they have been loaded themselves. Would that work? Would anyone need or want this?

Would be cool if someone tells me this is a stupid idea before I go and break my bot just for the fun of it.  ;D
Title: Re: Load order of modules
Post by: Khalem on January 22, 2007, 06:42:49 pm
Im not sure which way is the best to go about this.

However we do recognize the need to have a method of either tracking dependencies and module loading order.

Ideally it would likely be part of the hooking revamp planned for 0.5 where we will be using wrapper functions to register modules and possibly dependencies etc.
Ï would love to see some more discussion around this.
SimplePortal 2.3.7 © 2008-2024, SimplePortal