Beispiel #1
0
def importPlayer(parent, playerId):
    if parent.selected_char == None:
        print("No character selected")
        return
    folderPath = charactersPath + parent.selected_char
    playerAddr = game_addresses.addr['p%d_addr' % (playerId)]

    TekkenImporter = importLib.Importer()
    TekkenImporter.importMoveset(playerAddr, folderPath)
    print("\nSuccessfully imported %s !" % (parent.selected_char))
def importPlayer(parent, playerId):
    if parent.selected_char == None:
        print("No character selected")
        return
    folderPath = charactersPath + parent.selected_char

    TekkenImporter = importLib.Importer()
    playerAddr = TekkenImporter.getPlayerAddress(playerId - 1)
    TekkenImporter.importMoveset(playerAddr,
                                 folderPath,
                                 charactersPath=charactersPath)
    print("\nSuccessfully imported %s !" % (parent.selected_char))
def startMonitor(parent, playerId):
    if parent.selected_char == None:
        raise Exception("No character selected")
    print("Starting monitor for p%d..." % (playerId))
    monitorId = playerId - 1
    creatingMonitor[monitorId] = True
    
    TekkenImporter = importLib.Importer()
        
    monitor = threading.Thread(target=monitoringFunc, args=(playerId, TekkenImporter, parent))
    runningMonitors[monitorId] = monitor
    monitor.start()
    creatingMonitor[monitorId] = False