def syncReady(self):
     """ Now we've got the TimeManager manifested, and we're in
     sync with the server time.  Now we can enter the world.  Check
     to see if we've received our doIdBase yet. """
     if self.toonMgr:
         self.toonMgr.d_requestAvatar()
     else:
         self.acceptOnce(self.uniqueName('gotToonMgr'), self.getAv)
     DistributedSmoothNode.globalActivateSmoothing(1, 0)
Example #2
0
 def uberZoneInterestComplete(self, status):
     self.__gotTimeSync = 0
     if self.timeManager == None:
         print 'No time manager'
         DistributedSmoothNode.globalActivateSmoothing(0, 0)
         self.gotTimeSync(status)
     else:
         print 'Time manager found'
         DistributedSmoothNode.globalActivateSmoothing(1, 0)
         if self.timeManager.synchronize('startup'):
             self.accept('gotTimeSync', self.gotTimeSync, [status])
         else:
             self.gotTimeSync(status)
     return
 def enterPrepareShard(self, shardId):
     self.cr.distributedDistrict = self.cr.getDo(shardId)
     DistributedSmoothNode.globalActivateSmoothing(1, 0)
     h = HashVal()
     hashPrcVariables(h)
     pyc = HashVal()
     if not __dev__:
         self.cr.hashFiles(pyc)
     self.cr.timeManager.d_setSignature(self.cr.userSignature, h.asBin(),
                                        pyc.asBin())
     if self.cr.timeManager.synchronize('startup'):
         self.acceptOnce('gotTimeSync',
                         self.request,
                         extraArgs=['ShardReady', shardId])
     else:
         self.demand('ShardReady', shardId)
Example #4
0
 def enterPrepareShard(self, shardId):
     self.cr.distributedDistrict = self.cr.getDo(shardId)
     DistributedSmoothNode.globalActivateSmoothing(1, 0)
     h = HashVal()
     hashPrcVariables(h)
     pyc = HashVal()
     if not __dev__:
         self.cr.hashFiles(pyc)
     
     self.cr.timeManager.d_setSignature(self.cr.userSignature, h.asBin(), pyc.asBin())
     if self.cr.timeManager.synchronize('startup'):
         self.acceptOnce('gotTimeSync', self.request, extraArgs = [
             'ShardReady',
             shardId])
     else:
         self.demand('ShardReady', shardId)
Example #5
0
 def uberZoneInterestComplete(self, status):
     self.__gotTimeSync = 0
     if self.timeManager == None:
         print "No time manager"
         DistributedSmoothNode.globalActivateSmoothing(0, 0)
         self.gotTimeSync(status)
     else:
         print "Time manager found"
         DistributedSmoothNode.globalActivateSmoothing(1, 0)
         #h = HashVal()
         #hashPrcVariables(h)
         #pyc = HashVal()
         #if not __dev__:
         #	self.hashFiles(pyc)
         #self.timeManager.d_setSignature(self.userSignature, h.asBin(), pyc.asBin())
         #self.timeManager.sendCpuInfo()
         if self.timeManager.synchronize('startup'):
             self.accept('gotTimeSync', self.gotTimeSync, [status])
         else:
             self.gotTimeSync(status)
     return