Even though "SetGameOption" is CALLED at various times, I could never hook it with a mod script because "lobby.lua", in which the function is defined, is LOADED before mods are loaded. I am now understanding that I could only hook functions that are in modules loaded after mods are recognized (at least that would be the case unless I start changing the contents of or adding to the "gamedata" folder). Hence the problem with AIs...since "aitypes.lua" is also loaded before mods, it cannot be hooked with scripts in the mod directory.
Question: Is there any way that a lua script could force the engine to reload some other lua script?|||Scolex, its not a stupid question, but we have all looked at making a mod manager compatible AI mod and we haven't found a way...
Plus in the end its quite easy to just make sure all players have the mod installed (mod manager doesnt do automatic downloads anyway).|||Duncane
Thank you for your response. I do really appreciate all your help so far.
I'm just trying to understand the AI as much as possible as quickly as possible, but I'm starting from scratch here. I'm not asking this question because I don't think you guys have spent enough time looking or anything...I'm just trying to figure out how all this ai stuff works. Some of you have been messing around with this stuff for over a year already and are obviously quite intelligent, but I promise that I am a fast learner, will catch-up quickly, and will return your intellectual investment if you are willing to continue fielding my noob questions.|||Feel free to ask as many question as you like, but remember it can be several days before people have the time to response

No comments:
Post a Comment