Ra'Jiska said:
What I'd like to do is finding a way to not be dependant of a 'non official' file (non official = file not given in default version of Module System).
The PW module system is almost totally rewritten from the Native module system, with processing scripts that are compatible with most Native code but also include extra features for PW, including a simple form of "lazy evaluation", Python generation of triggers and scripts, and more. This means that Native code will be possible to integrate into PW, but parts of PW are not possible to integrate into a Native based module system without also implementing major changes to the processing code (which would be more difficult than just using PW as a base). In other words, you can't just copy certain PW files or scripts into a Native module system, since they require underlying systems specific to PW.
What is meant by "lazy evaluation" is calculations that can be done when the module system is being built (rather than by module code when the game is running), such as adding and subtracting ids (item, scene prop, etc.), or inserting lists of operations into the current code block (necessary for certain PW features that use automatic code generation). Examples of features that require the lazy evaluation functions are: banner chooser, profile options, administrator panel, item crafting stockpiles, resource processing scripts, the animation menu, and chest load outs.
Ra'Jiska said:
Also, are there any other exterior 'non official' files imported in the module system ?
As for file names: module_generated_scripts.py, module_generated_strings.py, header_debug.py (optional, not required by released official PW code), header_lazy_evaluation.py; but certain "official" files have extra features that rely on other parts of the PW module system, such as module_scripts.py, module_items.py, module_scene_props.py, and probably more.
Basically, to use PW code you should base on the entire module system, or take out small parts and adapt them if necessary for the different systems in Native.