Esempio n. 1
0
def ConvertPath_External(mod_name, target):
    util.InitialiseLog(target + ".log")
    util.StartTimer()
    util.LogInfo("Skyrim-NX-Toolkit {} - convert_path".format(
        util.GetToolkitVersion()))
    ConvertPath(mod_name, target)
    util.EndTimer()
Esempio n. 2
0
def LoadOrder_External(origin, target, loadOrderName):
    util.InitialiseLog(os.path.join(origin, loadOrderName) + ".log")
    util.StartTimer()
    util.LogInfo("Skyrim-NX-Toolkit {} - load_order".format(
        util.GetToolkitVersion()))
    LoadOrder(origin, target, loadOrderName)
    util.EndTimer()
Esempio n. 3
0
def PackMod_External(mod_name, target):
    util.InitialiseLog(target + ".log")
    util.StartTimer()
    util.LogInfo("Skyrim-NX-Toolkit {} - pack_mod".format(
        util.GetToolkitVersion()))
    PackMod(mod_name, target)
    util.EndTimer()
Esempio n. 4
0
def ConvertMod_External(origin, target, oldrim):
	print("<{}>".format(origin))
	util.InitialiseLog(origin + ".log")
	util.StartTimer()
	util.LogInfo("Skyrim-NX-Toolkit {} - convert_mod".format(util.GetToolkitVersion()))
	ConvertMod(origin, target, oldrim)
	util.EndTimer()
Esempio n. 5
0
def RepackMod_External(origin, target):
    util.InitialiseLog(origin + ".log")
    util.StartTimer()
    util.LogInfo("Skyrim-NX-Toolkit {} - repack_mod".format(
        util.GetToolkitVersion()))
    RepackMod(origin, target)
    util.EndTimer()
Esempio n. 6
0
    while i < len(buffer):
        buffer[i:i] = b'\x00\x00\x00'
        i += 4

    util.LogDebug("BUFFER<{}>".format(buffer))
    with open(filename, "wb") as outFile:

        outFile.write(b'\xff\xfe\x00\x00')
        outFile.write(buffer)
    return True


def ConvertTXT(target, filename):
    return ConvertTXT_Internal(filename)


def ConvertTXTAsync(target, filename, logname, ret):
    util.InitialiseMPLog(logname)
    retVal = ConvertTXT(target, filename)
    ret["retVal"] = retVal


if __name__ == '__main__':
    filename = sys.argv[1]
    util.InitialiseLog(filename + ".log")
    util.StartTimer()
    util.LogInfo("Skyrim-NX-Toolkit {} - convert_txt".format(
        util.GetToolkitVersion()))
    ConvertTXT_Internal(filename)
    util.EndTimer()