nate97 / src

An opensource Toontown game source code.
4 stars 2 forks source link

Going anywhere from the TTC playground crashes client. #11

Open Maxwell175 opened 6 years ago

Maxwell175 commented 6 years ago

Hello,

When I start a local server, start the local client, and create a toon, I end up in the TTC playground. The problem is that I cannot go anywhere from there. If I try to enter a building, crash. Try to go to a street, crash.

$ ./start-game-localhost.sh 
Username: Maxwell
===============================
Starting Toontown Infinite...
Username: Maxwell
Gameserver: 127.0.0.1
===============================
Warning: pandac.PandaModules is deprecated, import from panda3d.core instead
:ClientStart: Reading preferences.json...
:ClientStart: Starting the game...
:ClientStart: Setting the default font...
TTLocalizer: Running in language: english
from toontown.toonbase.TTLocalizerEnglish import *
OTPLocalizer: Running in language: english
from otp.otpbase.OTPLocalizerEnglish import *
Known pipe types:
  glxGraphicsPipe
(2 aux display modules not yet loaded.)
:ClientStart: Loading the default GUI sounds...
Preloading suits...
Preloading Toon heads...
Preloading avatars...
:pnmimage:png(warning): iCCP: known incorrect sRGB profile
:nativenet(error): Buffered_DatagramConnection Constructor rbufsize = 4096000 wbufsize = 4096000 write_flush_point = 1400
DCFile::read of astron/dclass/otp.dc
DCFile::read of astron/dclass/toon.dc
{401000001: <toontown.distributed.ToontownDistrict.ToontownDistrict instance at 0x7fbdedbcab90>}
__handleAvatarChooserDone: 100000001, 'Ned', ('css', 'ls', 'l', 'm', 15, 0, 15, 15, 10, 7, 0, 7, 5, 19), 1
:NewsPageButtonManager(warning): Should not get here. NewsPageButtonManager.exitOff
0
Reading DNA file... phase_4/dna/storage.pdna
Reading DNA file... phase_3.5/dna/storage_interior.pdna
Reading DNA file... phase_4/dna/storage_TT.pdna
Reading DNA file... phase_4/dna/storage_TT_sz.pdna
Reading DNA file... phase_4/dna/toontown_central_sz.pdna
:CharNeutralState(warning): entered StateData before it was loaded
:DistributedObject(warning): no loader.getInteractiveProp self.interactiveProp is None
:DistributedObject(warning): no loader.getInteractiveProp self.interactiveProp is None
:DistributedObject(warning): no loader.getInteractiveProp self.interactiveProp is None
:DistributedObject(warning): no loader.getInteractiveProp self.interactiveProp is None
:DistributedObject(warning): no loader.getInteractiveProp self.interactiveProp is None
:CharWalkState(warning): entered StateData before it was loaded
:LocalAvatar(warning): redundant call to stopUpdateSmartCamera
Traceback (most recent call last):
  File "/usr/share/panda3d/direct/distributed/ConnectionRepository.py", line 609, in readerPollUntilEmpty
    while self.readerPollOnce():
  File "/usr/share/panda3d/direct/distributed/ConnectionRepository.py", line 616, in readerPollOnce
    self.handleDatagram(self.private__di)
  File "otp/distributed/OTPClientRepository.py", line 1944, in handleDatagram
    self.handler(msgType, di)
  File "toontown/hood/QuietZoneState.py", line 153, in handleWaitForQuietZoneResponse
    base.cr.handlePlayGame(msgType, di)
  File "otp/distributed/OTPClientRepository.py", line 1559, in handlePlayGame
    self.handleMessageType(msgType, di)
  File "otp/distributed/OTPClientRepository.py", line 1838, in handleMessageType
    self.gotInterestDoneMessage(di)
  File "otp/distributed/OTPClientRepository.py", line 1864, in gotInterestDoneMessage
    self.handleInterestDoneMessage(di)
  File "/usr/share/panda3d/direct/distributed/DoInterestManager.py", line 617, in handleInterestDoneMessage
    messenger.send(event)
  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 326, in send
    self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 411, in __dispatch
    method (*(extraArgs + sentArgs))
  File "toontown/distributed/ToontownClientRepository.py", line 975, in _handleEmuSetZoneDone
    messenger.send(event)
  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 326, in send
    self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 411, in __dispatch
    method (*(extraArgs + sentArgs))
  File "toontown/hood/QuietZoneState.py", line 196, in _handleQuietZoneComplete
    self.fsm.request('waitForZoneRedirect')
  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 281, in request
    exitArgList)
  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 228, in __transition
    self.__enter(aState, enterArgList)
  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 214, in __enter
    aState.enter(argList)
  File "/usr/share/panda3d/direct/fsm/State.py", line 202, in enter
    self.__enterFunc(*argList)
  File "toontown/hood/QuietZoneState.py", line 237, in enterWaitForZoneRedirect
    self.fsm.request('waitForSetZoneResponse')
  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 281, in request
    exitArgList)
  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 228, in __transition
    self.__enter(aState, enterArgList)
  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 214, in __enter
    aState.enter(argList)
  File "/usr/share/panda3d/direct/fsm/State.py", line 202, in enter
    self.__enterFunc(*argList)
  File "toontown/hood/QuietZoneState.py", line 261, in enterWaitForSetZoneResponse
    base.cr.sendSetZoneMsg(zoneId)
  File "toontown/distributed/ToontownClientRepository.py", line 933, in sendSetZoneMsg
    localAvatar.setLocation(parentId, zoneId)
  File "otp/avatar/DistributedPlayer.py", line 93, in setLocation
    DistributedAvatar.DistributedAvatar.setLocation(self, parentId, zoneId)
  File "/usr/share/panda3d/direct/distributed/DistributedNode.py", line 49, in setLocation
    DistributedObject.DistributedObject.setLocation(self, parentId, zoneId)
  File "/usr/share/panda3d/direct/distributed/DistributedObject.py", line 497, in setLocation
    self.cr.storeObjectLocation(self, parentId, zoneId)
AttributeError: 'NoneType' object has no attribute 'storeObjectLocation'
:task(error): Exception occurred in PythonTask readerPollTask-94193718599072
:ToonBase(warning): Handling Python exception.
Traceback (most recent call last):
  File "/stuff/ttr/toontownRaw/src/toontown/toonbase/ClientStart.py", line 203, in <module>
    base.run()
  File "otp/otpbase/OTPBase.py", line 247, in run
    self.cr.timeManager.setExceptionInfo()
  File "otp/ai/TimeManager.py", line 162, in setExceptionInfo
    self.sendUpdate('setExceptionInfo', [info])
  File "/usr/share/panda3d/direct/distributed/DistributedObject.py", line 364, in sendUpdate
    fieldName, sendToId or self.doId, args)
ValueError: Value out of range on field: setExceptionInfo['Traceback (most recent call last):\n  File "otp/otpbase/OTPBase.py", line 236, in run\n    taskMgr.run()\n  File "/usr/share/panda3d/direct/task/Task.py", line 517, in run\n    self.step()\n  File "/usr/share/panda3d/direct/task/Task.py", line 471, in step\n    self.mgr.poll()\n  File "/usr/share/panda3d/direct/distributed/ConnectionRepository.py", line 609, in readerPollUntilEmpty\n    while self.readerPollOnce():\n  File "/usr/share/panda3d/direct/distributed/ConnectionRepository.py", line 616, in readerPollOnce\n    self.handleDatagram(self.private__di)\n  File "otp/distributed/OTPClientRepository.py", line 1944, in handleDatagram\n    self.handler(msgType, di)\n  File "toontown/hood/QuietZoneState.py", line 153, in handleWaitForQuietZoneResponse\n    base.cr.handlePlayGame(msgType, di)\n  File "otp/distributed/OTPClientRepository.py", line 1559, in handlePlayGame\n    self.handleMessageType(msgType, di)\n  File "otp/distributed/OTPClientRepository.py", line 1838, in handleMessageType\n    self.gotInterestDoneMessage(di)\n  File "otp/distributed/OTPClientRepository.py", line 1864, in gotInterestDoneMessage\n    self.handleInterestDoneMessage(di)\n  File "/usr/share/panda3d/direct/distributed/DoInterestManager.py", line 617, in handleInterestDoneMessage\n    messenger.send(event)\n  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 326, in send\n    self.__dispatch(acceptorDict, event, sentArgs, foundWatch)\n  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 411, in __dispatch\n    method (*(extraArgs + sentArgs))\n  File "toontown/distributed/ToontownClientRepository.py", line 975, in _handleEmuSetZoneDone\n    messenger.send(event)\n  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 326, in send\n    self.__dispatch(acceptorDict, event, sentArgs, foundWatch)\n  File "/usr/share/panda3d/direct/showbase/Messenger.py", line 411, in __dispatch\n    method (*(extraArgs + sentArgs))\n  File "toontown/hood/QuietZoneState.py", line 196, in _handleQuietZoneComplete\n    self.fsm.request(\'waitForZoneRedirect\')\n  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 281, in request\n    exitArgList)\n  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 228, in __transition\n    self.__enter(aState, enterArgList)\n  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 214, in __enter\n    aState.enter(argList)\n  File "/usr/share/panda3d/direct/fsm/State.py", line 202, in enter\n    self.__enterFunc(*argList)\n  File "toontown/hood/QuietZoneState.py", line 237, in enterWaitForZoneRedirect\n    self.fsm.request(\'waitForSetZoneResponse\')\n  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 281, in request\n    exitArgList)\n  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 228, in __transition\n    self.__enter(aState, enterArgList)\n  File "/usr/share/panda3d/direct/fsm/ClassicFSM.py", line 214, in __enter\n    aState.enter(argList)\n  File "/usr/share/panda3d/direct/fsm/State.py", line 202, in enter\n    self.__enterFunc(*argList)\n  File "toontown/hood/QuietZoneState.py", line 261, in enterWaitForSetZoneResponse\n    base.cr.sendSetZoneMsg(zoneId)\n  File "toontown/distributed/ToontownClientRepository.py", line 933, in sendSetZoneMsg\n    localAvatar.setLocation(parentId, zoneId)\n  File "otp/avatar/DistributedPlayer.py", line 93, in setLocation\n    DistributedAvatar.DistributedAvatar.setLocation(self, parentId, zoneId)\n  File "/usr/share/panda3d/direct/distributed/DistributedNode.py", line 49, in setLocation\n    DistributedObject.DistributedObject.setLocation(self, parentId, zoneId)\n  File "/usr/share/panda3d/direct/distributed/DistributedObject.py", line 497, in setLocation\n    self.cr.storeObjectLocation(self, parentId, zoneId)\nAttributeError: \'NoneType\' object has no attribute \'storeObjectLocation\'\n']
Maxwell175 commented 6 years ago

I added a pprint in otp/avatar/DistributedPlayer.py line 93 and this is the last thing that I see before the crash:

**removed**
401000001
61022
nate97 commented 6 years ago

The temporary solution to this is to compile Astron version v0.1.0 https://github.com/nate97/Astron/releases