Alright, so i'm making a server for Disney's now closed game Toontown Online, But i have run into a problem after i added this coding in. The game NEEDS this part, it is essential to the game, without it, the game will not send the client, "AvatarChooser.enter" and players wont be able to create their Characters! I will put more code out if needed, but this for now.
class DistributedDistrict(DistributedObject):
__module__ = __name__
notify = directNotify.newCategory('DistributedDistrict')
neverDisable = 1
def __init__(self, cr):
print 'DistributedDistrict: BlankTest Canvas is now Online..'
DistributedObject.__init__(self, cr)
self.name = 'BlankTest Canvas'
self.available = 0
self.avatarCount = 0
self.newAvatarCount = 0
def announceGenerate(self):
DistributedObject.announceGenerate(self)
self.cr.activeDistrictMap[self.doId] = self
messenger.send('shardInfoUpdated')
def delete(self):
if base.cr.distributedDistrict is self:
base.cr.distributedDistrict = None
if self.cr.activeDistrictMap.has_key(self.doId):
del self.cr.activeDistrictMap[self.doId]
DistributedObject.delete(self)
messenger.send('shardInfoUpdated')
return
def setAvailable(self, available):
self.available = available
messenger.send('shardInfoUpdated')
def setName(self, name):
self.name = name
messenger.send('shardInfoUpdated')
simbase = DistributedDistrict()
#run() # Initialize the Panda3D API.
I get this error:
TypeError: __ init __() takes exactly 2 arguments (1 given)
Any help would be glady appreciated!!
Error happens at:
simbase = DistributedDistrict()
#run() # Initialize the Panda3D API.