View Single Post
Old 03-13-10, 07:12 PM   #99
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by skwasjer View Post
@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?
TheDarkWraith is offline   Reply With Quote