Exemple #1
0
#from ShowBaseGlobal import *
#import ToontownClientRepository

#cr = ToontownClientRepository.ToontownClientRepository("D:\\Cygwin\\home\\jnschell\\player\\toontown\\src\\configfiles\\toon.dc")

#import FSMInspector
#ins = FSMInspector.FSMInspector(ClassicFSM=cr.fsm)

#cr.fsm.request("connect", ["206.18.93.17", 6667])

from ToonBaseGlobal import *
from toontown.distributed import ToontownClientRepository
import os
from pandac.PandaModules import Filename

# Start up the client repository
fname = Filename(os.getenv("TOONTOWN") + "/src/configfiles/toon.dc")
cr = ToontownClientRepository.ToontownClientRepository(fname.toOsSpecific())

# Start the show
base.startShow(cr)
run()
Exemple #2
0
                       align=TextNode.ALeft)
loader.beginBulkLoad('init', TTLocalizer.LoaderLabel, 50, 0,
                     TTLocalizer.TIP_NONE)

ad = localizerAgent.getAd()
if ad:
    ad.reparentTo(backgroundNodePath)
    ad.setBin('fixed', 20)
    ad.setPos(.35, 1, .45)

from ToonBaseGlobal import *
from direct.showbase.MessengerGlobal import *

# cr
from toontown.distributed import ToontownClientRepository
cr = ToontownClientRepository.ToontownClientRepository(serverVersion, launcher)
cr.setDeferInterval(1)
cr.music = music
del music
base.initNametagGlobals()
base.cr = cr
loader.endBulkLoad('init')

# friend mgr
from otp.friends import FriendManager
from otp.distributed.OtpDoGlobals import *
cr.generateGlobalObject(OTP_DO_ID_FRIEND_MANAGER, 'FriendManager')

# start
base.startShow(cr)
Exemple #3
0
serverVersion = base.config.GetString('server-version', 'no_version_set')
version = OnscreenText(serverVersion,
                       pos=(-1.3, -0.975),
                       scale=0.06,
                       fg=Vec4(0, 0, 1, 0.6),
                       align=TextNode.ALeft)
version.setPos(0.03, 0.03)
version.reparentTo(base.a2dBottomLeft)
from toontown.suit import Suit
Suit.loadModels()
loader.beginBulkLoad('init', TTLocalizer.LoaderLabel, 138, 0,
                     TTLocalizer.TIP_NONE, 0)
from ToonBaseGlobal import *
from direct.showbase.MessengerGlobal import *
from toontown.distributed import ToontownClientRepository
cr = ToontownClientRepository.ToontownClientRepository(serverVersion)
cr.music = music
del music
base.initNametagGlobals()
base.setFrameRateMeter(settings['fpsMeter'])
base.cr = cr
loader.endBulkLoad('init')
from otp.friends import FriendManager
from otp.distributed.OtpDoGlobals import *
cr.generateGlobalObject(OTP_DO_ID_FRIEND_MANAGER, 'FriendManager')
base.startShow(cr)
backgroundNodePath.reparentTo(hidden)
backgroundNodePath.removeNode()
del backgroundNodePath
del backgroundNode
del tempLoader