os.makedirs(contentPacksFilepath) __builtin__.ContentPackError = ContentPackError __builtin__.contentPacksMgr = ContentPacksManager( filepath=contentPacksFilepath, sortFilename=contentPacksSortFilename) contentPacksMgr.applyAll() import time import sys import random import __builtin__ try: launcher except: from toontown.launcher.TTILauncher import TTILauncher launcher = TTILauncher() __builtin__.launcher = launcher notify.info("Loading Clients") notify.info('Starting Toontown Planet...') if launcher.isDummy(): http = HTTPClient() else: http = launcher.http tempLoader = Loader() backgroundNode = tempLoader.loadSync(Filename('phase_3/models/gui/loading-background')) from direct.gui import DirectGuiGlobals from direct.gui.DirectGui import * notify.info('Setting the default Toontown Planet font...') import ToontownGlobals
if not os.path.exists(contentPacksFilepath): os.makedirs(contentPacksFilepath) __builtin__.ContentPackError = ContentPackError __builtin__.contentPacksMgr = ContentPacksManager( filepath=contentPacksFilepath, sortFilename=contentPacksSortFilename) contentPacksMgr.applyAll() import time import sys import random import __builtin__ try: launcher except: from toontown.launcher.TTILauncher import TTILauncher launcher = TTILauncher() __builtin__.launcher = launcher notify.info('Starting the game...') if launcher.isDummy(): http = HTTPClient() else: http = launcher.http tempLoader = Loader() backgroundNode = tempLoader.loadSync( Filename('phase_3/models/gui/loading-background')) from direct.gui import DirectGuiGlobals from direct.gui.DirectGui import * notify.info('Setting the default font...') import ToontownGlobals DirectGuiGlobals.setDefaultFontFunc(ToontownGlobals.getInterfaceFont)