Quote:
Originally Posted by skwasjer
@maerean_m, is there a way to have completely 'new' .py scripts to autoload when the game starts, without the need to hook into a stock .py file and calling "MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now )" (I have made a blank/empty Page in menu editor). I have completely isolated functionality and would like to be able to install my mod without overwriting a stock file (which could potentially conflict with other mods).
|
import it. In the Page Default Hud.py file add a line in InitializeScript:
from xxx import xxx
where xxx = name of page (i.e. Pageobsperiscope).
Oh you're probably wanting to have the game automatically import a new Page without having to use import huh?