DCPacker Assertion failed: object != nullptr

Hello all!

I’ve been scratching my head on this issue for a while now and would like to know the reason of why this error comes up. If you need my direct class file or some python code I can provide for you.

I’d like to know how I can solve this problem and what I can do to figure out where its coming from, I’ve been using 2to3 to transform my Python 2 code into Python 3 code, and I know this could cause an error, I’d just like to know what this means, and what I can do to solve it

I already tried using “assert-abort 1” but it didn’t give me any information on the error.


“Note, this does involve code from Toontown, and if this is not welcome here I understand”

TTLocalizer: Running in language: english
from toontown.toonbase.TTLocalizerEnglish import *
OTPLocalizer: Running in language: english
from otp.otpbase.OTPLocalizerEnglish import *
DCFile::read of config/otp.dc
DCFile::read of config/toon.dc
:GarbageCollect(warning): garbage found, reverting gc threshold
Assertion failed: object != nullptr at line 948 of G:\Toontown-Sources\Panda3D Building Directory\Panda3D-1.10.9\Panda3D-1.10.9\panda3d-1.10.9\direct\src\dcparser\dcPacker.cxx

I can upload a GitHub link for my current files aswell.

Sorry, we can’t help you with things related to reverse engineering Toontown.