Example #1
0
def finderCheck():
    centerCameraOnPlayer()
    if bActive:
        global iRegenCount
        iRegenCount += 1
        MapFinderStatusScreen.update()
        if matchRules():
            finderSave()
        else:
            finderNext()
Example #2
0
def finderCheck():
    centerCameraOnPlayer()
    if bActive:
        global iRegenCount
        iRegenCount += 1
        MapFinderStatusScreen.update()
        if matchRules():
            finderSave()
        else:
            finderNext()
Example #3
0
def save():
    global iRegenCount, iSavedCount, mr
    iSavedCount += 1
    sMFSavePath = options.getSavePath()
    (fileName, _) = AutoSave.getSaveFileName(sMFSavePath)
    fullFileName = fileName + "_" + str(iRegenCount) + "_" + str(iSavedCount)

    # screenshot
    screenFile = fullFileName + ".jpg"
    gc.getGame().takeJPEGScreenShot(screenFile)

    # report file
    reportFile = fullFileName + ".txt"
    file = open(reportFile, "a")
    ruleFile = options.getRuleFile()

    ## HOF MOD V1.61.005
    # don't change unless file format changes!
    file.write("HOF MOD V1.61.004,HOF MOD V1.61.005,\n")
    ## end HOF MOD V1.61.005

    file.write("Name,Name," + str(fileName) + "_" + str(iRegenCount) + "_" +
               str(iSavedCount) + "\n")
    file.write("Rule File,Rule File," + str(ruleFile) + "\n")
    file.write("Range,Range," + str(Rules['Range']) + "\n")

    lKeys = mr.keys()
    lKeys.sort()
    for x in lKeys:
        if (x < 900):
            file.write(
                str(x) + "," + str(CodeText[x]) + "," + str(mr[x]) + "\n")
    file.close()

    # saved game
    saveFile = fullFileName + ".CivBeyondSwordSave"
    gc.getGame().saveGame(saveFile)

    MapFinderStatusScreen.update()
    MapFinderStatusScreen.resetStatus()
    next()
Example #4
0
def save():
    global iRegenCount, iSavedCount, mr
    iSavedCount += 1
    sMFSavePath = options.getSavePath()
    (fileName, _) = AutoSave.getSaveFileName(sMFSavePath)
    fullFileName = fileName + "_" + str(iRegenCount) + "_" + str(iSavedCount)

    # screenshot
    screenFile = fullFileName + ".jpg"
    gc.getGame().takeJPEGScreenShot(screenFile)

    # report file
    reportFile = fullFileName + ".txt"
    file = open(reportFile, "a")
    ruleFile = options.getRuleFile()

    ## HOF MOD V1.61.005
    # don't change unless file format changes!
    file.write("HOF MOD V1.61.004,HOF MOD V1.61.005,\n")
    ## end HOF MOD V1.61.005

    file.write("Name,Name," + str(fileName) + "_" + str(iRegenCount) + "_" + str(iSavedCount) + "\n")
    file.write("Rule File,Rule File," + str(ruleFile) + "\n")
    file.write("Range,Range," + str(Rules["Range"]) + "\n")

    lKeys = mr.keys()
    lKeys.sort()
    for x in lKeys:
        if x < 900:
            file.write(str(x) + "," + str(CodeText[x]) + "," + str(mr[x]) + "\n")
    file.close()

    # saved game
    saveFile = fullFileName + ".CivBeyondSwordSave"
    gc.getGame().saveGame(saveFile)

    MapFinderStatusScreen.update()
    MapFinderStatusScreen.resetStatus()
    next()