Let’s say someone makes a level for my game and wants to include custom logic. Experimentation shows that loci bricks work, as do scripts, but not modules.
This seems a pretty big problem in this context, and one that could be quite easy for the bge devs to solve.
For now I just use the python path method for the folder in which the game is stored. But that can’t be removed as far as I know.
What monster means is to have a script within the level file that appends the module path to the games python search path. It is with a script that uses the os functions, I can’t think of the exact code at the moment.
Once ‘imported’ the modules can then be run normally, using the module logic brick.
I like that monster, I hadn’t thought of that solution.