from pandac.PandaModules import *
loadPrcFile('config/config_client.prc')
loadPrcFileData('', 'multisamples 1000')
loadPrcFileData('', 'framebuffer-multisample 1')
loadPrcFileData('', 'default-model-extension .egg')
#loadPrcFileData('', 'window-title Grand Theft Toontown')
from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()
from direct.distributed.ClientRepository import *
from direct.interval.IntervalGlobal import *
from direct.gui.DirectGui import *

base.cr = ClientRepository([])
base.cTrav = CollisionTraverser()
aspect2d.setAntialias(AntialiasAttrib.MMultisample)

vfs = VirtualFileSystem.getGlobalPtr()
vfs.mount(Filename("phase_0.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_3.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_3.5.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_4.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_5.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_5.5.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_6.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_7.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_8.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_9.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_10.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_11.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_12.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_13.mf"), ".", VirtualFileSystem.MFReadOnly)
from panda3d.core import *
loadPrcFile('config/config_client.prc')
loadPrcFileData('', 'framebuffer-multisample 1')
loadPrcFileData('', 'multisamples 2048')
loadPrcFileData('', 'tk-main-loop 0')
#loadPrcFileData('', 'notify-level debug')
loadPrcFileData('', 'audio-library-name p3fmod_audio')
loadPrcFileData('', 'egg-load-old-curves 0')
loadPrcFileData('', 'textures-power-2 none')
loadPrcFileData('', 'win-size 256 256')
from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()
from direct.gui.DirectGui import *
from direct.actor.Actor import Actor
from direct.particles.ParticleEffect import ParticleEffect
from lib.coginvasion.globals import CIGlobals
from lib.coginvasion.cog.Suit import Suit
from direct.interval.IntervalGlobal import *
from lib.coginvasion.cog.DistributedSuit import DistributedSuit
from direct.distributed.ClientRepository import ClientRepository
from lib.coginvasion.toon.Toon import Toon
from lib.coginvasion.toon import NameTag, ToonDNA, ToonHead
from direct.directutil import Mopath
from direct.showbase.Audio3DManager import Audio3DManager
from direct.showutil.Rope import Rope
import glob

base.enableParticles()

base.cr = ClientRepository([])
base.cr.isShowingPlayerIds = False
def windowEvent(win):
    ShowBase.windowEvent(base, win)
    base.marginManager.updateMarginVisibles()
# Filename: SuitPathEditor.py
# Created by:  blach (27Dec15)

from panda3d.core import *
loadPrcFile('config/config_client.prc')
loadPrcFileData('', 'window-title Suit Path Editor')
loadPrcFileData('', 'cursor-filename none')
loadPrcFileData('', 'framebuffer-multisample 0')

from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()

from direct.fsm.FSM import FSM
from direct.gui.DirectGui import *
from direct.controls.ControlManager import CollisionHandlerRayStart
from lib.coginvasion.globals import CIGlobals
from lib.coginvasion.dna.DNALoader import *
from lib.coginvasion.npc.NPCWalker import NPCWalkInterval

import yaml, os

base.cTrav = CollisionTraverser()

defaultDNA = ['phase_4/dna/storage.pdna', 'phase_5/dna/storage_town.pdna']

areas = {
    CIGlobals.ToontownCentral: [
        'phase_4/dna/storage_TT.pdna', 'phase_4/dna/storage_TT_sz.pdna',
        'phase_4/dna/cog_toontown_central_sz.pdna'
    ],
    CIGlobals.DonaldsDock: [
from panda3d.core import *
loadPrcFile('config/config_client.prc')
loadPrcFileData('', 'framebuffer-multisample 1')
loadPrcFileData('', 'multisamples 16')
from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()
from direct.gui.DirectGui import *
from lib.coginvasion.gui.Dialog import GlobalDialog
from direct.distributed.ClientRepository import ClientRepository
from direct.interval.IntervalGlobal import *
from lib.coginvasion.toon import ParticleLoader
from direct.showbase.Audio3DManager import Audio3DManager
from direct.actor.Actor import Actor
from lib.coginvasion.globals import CIGlobals
import sys

from lib.coginvasion.toon.Toon import Toon
from lib.coginvasion.npc.NPCGlobals import NPC_DNA

cbm = CullBinManager.getGlobalPtr()
cbm.addBin('ground', CullBinManager.BTUnsorted, 18)
cbm.addBin('shadow', CullBinManager.BTBackToFront, 19)
cbm.addBin('gui-popup', CullBinManager.BTUnsorted, 60)


class game:
    process = 'client'


import __builtin__
__builtin__.game = game()
Exemplo n.º 6
0
# Embedded file name: lib.coginvasion.standalone.StandaloneToon
from panda3d.core import *
loadPrcFile('config/config_client.prc')
loadPrcFileData('', 'framebuffer-multisample 0')
loadPrcFileData('', 'multisamples 16')
loadPrcFileData('', 'tk-main-loop 0')
loadPrcFileData('', 'egg-load-old-curves 0')
cbm = CullBinManager.getGlobalPtr()
cbm.addBin('ground', CullBinManager.BTUnsorted, 18)
cbm.addBin('shadow', CullBinManager.BTBackToFront, 19)
cbm.addBin('gui-popup', CullBinManager.BTUnsorted, 60)
from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()
from direct.showbase.Audio3DManager import Audio3DManager
base.audio3d = Audio3DManager(base.sfxManagerList[0], camera)
base.audio3d.setDistanceFactor(25)
base.audio3d.setDropOffFactor(0.025)
from direct.distributed.ClientRepository import ClientRepository
import __builtin__

class game:
    process = 'client'


__builtin__.game = game()
from lib.coginvasion.toon import LocalToon
from lib.coginvasion.login.AvChoice import AvChoice
base.cTrav = CollisionTraverser()
base.shadowTrav = CollisionTraverser()
base.cr = ClientRepository(['phase_3/etc/direct.dc', 'phase_3/etc/toon.dc'])
base.cr.isShowingPlayerIds = False
#															  #
#                                                             #
#                        FEATURES:                            #
#                 Control the Toontown VP.                    #
#                                                             #
#                                                             #
#                          BUGS:                              #
#              Audio cuts off on some actions.                #
#                                                             #
###############################################################

from pandac.PandaModules import *
loadPrcFile('config/config_client.prc')

from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()
from direct.actor.Actor import *
from direct.task import *
from math import *
from direct.showbase.ShowBase import *
from direct.task import *
from direct.interval.IntervalGlobal import *
from panda3d.core import *
from pandac.PandaModules import LMatrix4f
from panda3d.core import LMatrix4f
from direct.gui.OnscreenText import *
from direct.actor.Actor import *
from direct.showbase.DirectObject import *
from direct.gui.DirectGui import *
from direct.interval.MetaInterval import Sequence
    prc = aes.decrypt(prc, key, iv)
    for line in prc.split('\n'):
        line = line.strip()
        if line:
            loadPrcFileData('coginvasion config', line)

    print 'CIStart: Running production'
except:
    loadPrcFile('config/Confauto.prc')
    loadPrcFile('config/config_client.prc')
    print 'CIStart: Running dev'

sm.maybeFixAA()
from direct.showbase.ShowBaseWide import ShowBase

base = ShowBase()
base.cTrav = CollisionTraverser()
display = base.config.GetString('load-display')
audio = base.config.GetString('audio-library-name').replace('p3', '').replace(
    '_audio', '')
if display == 'pandagl':
    display = 'OpenGL'
else:
    if 'pandadx' in display:
        display = 'DirectX %s' % str(display.replace('pandadx', ''))
    else:
        display = 'unknown'
print 'CIStart: Using %s graphics library.' % display
if audio == 'miles':
    audio = 'Miles'
else:
from panda3d.core import *
loadPrcFile('config/config_client.prc')
loadPrcFileData('', 'default-model-extension .egg')
loadPrcFileData('', 'framebuffer-multisample 1')
loadPrcFileData('', 'multisamples 64')
from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()
from direct.distributed.ClientRepository import ClientRepository
from lib.toontown.globals import ToontownGlobals
from direct.interval.IntervalGlobal import *

import __builtin__


class game:
    process = "client"


__builtin__.game = game

vfs = VirtualFileSystem.getGlobalPtr()
vfs.mount(Filename("phase_0.mf"), ".", VirtualFileSystem.MFReadOnly)

#base.setBackgroundColor(1, 1, 0)

base.cr = ClientRepository([])
base.cTrav = CollisionTraverser()
base.cTrav.showCollisions(render)

AreaModels = [
    "phase_11/models/lawbotHQ/LB_Zone03a.bam",
loadPrcFileData('', 'framebuffer-multisample 1')
loadPrcFileData('', 'multisamples 2048')
loadPrcFileData('', 'tk-main-loop 0')
loadPrcFileData('', 'egg-load-old-curves 0')
loadPrcFileData('', 'textures-power-2 none')
loadPrcFileData('', 'load-display pandagl')
#loadPrcFileData('', 'fullscreen #t')
#loadPrcFileData('', 'win-size 1920 1080')

cbm = CullBinManager.getGlobalPtr()
cbm.addBin('ground', CullBinManager.BTUnsorted, 18)
cbm.addBin('shadow', CullBinManager.BTBackToFront, 19)
cbm.addBin('gui-popup', CullBinManager.BTUnsorted, 60)

from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()
from direct.showbase.Audio3DManager import Audio3DManager
base.audio3d = Audio3DManager(base.sfxManagerList[0], camera)
base.audio3d.setDistanceFactor(25)
base.audio3d.setDropOffFactor(0.025)
from direct.distributed.ClientRepository import ClientRepository

from lib.coginvasion.nametag import NametagGlobals
from lib.coginvasion.margins.MarginManager import MarginManager
from lib.coginvasion.margins import MarginGlobals
from direct.gui import DirectGuiGlobals

NametagGlobals.setMe(base.cam)
NametagGlobals.setCardModel('phase_3/models/props/panel.bam')
NametagGlobals.setArrowModel('phase_3/models/props/arrow.bam')
NametagGlobals.setChatBalloon3dModel('phase_3/models/props/chatbox.bam')
from panda3d.core import *
cbm = CullBinManager.getGlobalPtr()
cbm.addBin('ground', CullBinManager.BTUnsorted, 18)
cbm.addBin('shadow', CullBinManager.BTBackToFront, 19)
cbm.addBin('gui-popup', CullBinManager.BTUnsorted, 60)
loadPrcFile('config/config_client.prc')
loadPrcFileData('', 'tk-main-loop 0')
loadPrcFileData('', 'framebuffer-multisample 1')
loadPrcFileData('', 'multisamples 16')
from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()
from direct.controls.ControlManager import CollisionHandlerRayStart
from Tkinter import *
from direct.gui.OnscreenText import OnscreenText
from lib.coginvasion.globals import CIGlobals
from lib.coginvasion.suit.Suit import Suit
from direct.distributed.ClientRepository import ClientRepository
from collections import deque
from libpandadna import *
from lib.coginvasion.dna.DNALoader import *
from lib.coginvasion.npc.NPCWalker import NPCWalkInterval
#base.startTk()
import random

base.cTrav = CollisionTraverser()
base.cr = ClientRepository([])
base.shadowTrav = CollisionTraverser()
base.lifter = CollisionHandlerFloor()
base.pusher = CollisionHandlerPusher()

from pandac.PandaModules import *
loadPrcFile('config/Confauto.prc')
loadPrcFile('config/config_client.prc')
from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()
from direct.distributed.ClientRepository import ClientRepository
from direct.interval.IntervalGlobal import *
from direct.gui.DirectGui import *

vfs = VirtualFileSystem.getGlobalPtr()
vfs.mount(Filename("phase_0.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_3.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_3.5.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_5.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_5.5.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_6.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_7.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_8.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_9.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_10.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_11.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_12.mf"), ".", VirtualFileSystem.MFReadOnly)
vfs.mount(Filename("phase_13.mf"), ".", VirtualFileSystem.MFReadOnly)

import __builtin__

class game:
	process = 'client'
__builtin__.game = game

#from lib.toontown.makeatoon.MakeAToon import MakeAToon
Exemplo n.º 13
0
__builtin__.game = game()
import time
import os
import sys
import random
import __builtin__

print "CIStart: Starting the game."
from panda3d.core import *

print "CIStart: Using Panda3D version {0}".format(PandaSystem.getVersionString())
loadPrcFile("config/Confauto.prc")
loadPrcFile("config/config_client.prc")
from direct.showbase.ShowBaseWide import ShowBase

base = ShowBase()
base.cTrav = CollisionTraverser()
if base.config.GetString("load-display") == "pandagl":
    print "CIStart: Using OpenGL graphics library."
elif base.config.GetString("load-display") == "pandadx9":
    print "CIStart: Using DirectX 9 graphics library."
else:
    print "CIStart: Using an unknown graphics library."
if base.config.GetString("audio-library-name") == "p3miles_audio":
    print "CIStart: Using Miles audio library."
elif base.config.GetString("audio-library-name") == "p3fmod_audio":
    print "CIStart: Using FMOD audio library."
elif base.config.GetString("audio-library-name") == "p3openal_audio":
    print "CIStart: Using OpenAL audio library."
else:
    print "CIStart: Using no or an unknown audio library."
from pandac.PandaModules import *
loadPrcFile('config/config_client.prc')
from direct.showbase.ShowBaseWide import ShowBase
base = ShowBase()