def updateSOSRNG(self): if self.sosRNG: if self.manager.sosInitialSeed is None: self.manager.readSOSInitialSeed() values = self.manager.updateSOSFrameCount() # Handle infinite loop if values is None: message = QMessageBox() message.setText( "Exiting an infinite loop. Retry the battle and start updating before taking any actions." ) message.exec_() self.toggleSOSRNG() return difference, initialSeed, currentSeed, frameCount, chainCount = values # Check to see if frame changed at all if difference != 0: self.lineEditSOSInitialSeed.setText(hexify(initialSeed)) self.lineEditSOSCurrentSeed.setText(hexify(currentSeed)) self.lineEditSOSFrame.setText(str(frameCount)) self.lineEditSOSChainCount.setText(str(chainCount))
def updateEggRNG6(self): if self.eggRNG: ready, seed1, seed0 = self.manager.eggStatus() if ready == 0: self.labelEggReadyStatus6.setText("No egg yet") else: self.labelEggReadyStatus6.setText("Egg ready") self.lineEditEggSeed1_6.setText(hexify(seed1)) self.lineEditEggSeed0_6.setText(hexify(seed0))
def updateMainRNG6(self): if self.mainRNG: values = self.manager.updateFrameCount() # Handle infinite loop if values is None: self.toggleMainRNG6() message = QMessageBox() message.setText( "Exiting an infinite loop. Make sure no patches are installed and the game is on the latest version" ) message.exec_() return difference, initialSeed, currentSeed, frameCount, save, tiny3, tiny2, tiny1, tiny0 = values # Check to see if frame changed at all if difference != 0: self.lineEditInitialSeed6.setText(hexify(initialSeed)) self.lineEditCurrentSeed6.setText(hexify(currentSeed)) self.lineEditFrame6.setText(str(frameCount)) self.lineEditSaveVariable.setText(hexify(save)) self.lineEditTiny3.setText(hexify(tiny3)) self.lineEditTiny2.setText(hexify(tiny2)) self.lineEditTiny1.setText(hexify(tiny1)) self.lineEditTiny0.setText(hexify(tiny0))
def updateMainRNG7(self): if self.mainRNG: values = self.manager.updateFrameCount() # Handle infinite loop if values is None: self.toggleMainRNG7() message = QMessageBox() message.setText("Exiting an infinite loop. Make sure no patches are installed and the game is on the latest version") message.exec_() return difference, initialSeed, currentSeed, frameCount = values # Check to see if frame changed at all if difference != 0: self.lineEditInitialSeed7.setText(hexify(initialSeed)) self.lineEditCurrentSeed7.setText(hexify(currentSeed)) self.lineEditFrame7.setText(str(frameCount))