Пример #1
0
from extractFuncs.mainFunc import confirmExit, \
    getImg2DirPort, outPutErrorLog, getExtractIndex, printErrorLog, \
    outPutFileAndNPK, getTypeList
from os import system
from extractFuncs.toolFunc import getEmptyList
from extractTools.login import checkLogin

codeFlag = "7"

if not checkLogin(codeFlag):
    system("pause")
    exit()

imgDir, port, saveMainDir, extractMode, npk = getImg2DirPort()

objLst, mobLst = getTypeList(["passiveobject", "monster"], port)

# 主程序
while True:
    result = getExtractIndex("obj", objLst)
    if len(result) == 1:
        flag = printErrorLog(result)
        if flag == 0:
            print("程序已退出。")
            break
        else:
            continue
    # 提取
    allObjID, errorLog = result

    directExtractFile, couldRepeatGetFileList, allMobID, allApcID = getEmptyList(
Пример #2
0
from extractFuncs.getInfo import extractNpc
from extractFuncs.mainFunc import confirmExit, getImg2DirPort, outPutErrorLog, getExtractIndex, outPutFileAndNPK, \
    getTypeList
from extractFuncs.toolFunc import iep
from extractTools.login import checkLogin

codeFlag = "8"

if not checkLogin(codeFlag):
    system("pause")
    exit()

# -----------主程序
imgDir, port, saveMainDir, extractMode, npk = getImg2DirPort()

npcLst, itemShopLst = getTypeList(["npc", "itemshop"], port)

while True:
    result = getExtractIndex("npc", npcLst)
    if len(result) == 1:
        errorLog = result
        break
    npcID, errorLog = result

    directExtractFiles, allItemID, npcWritID, itemshopWriteID, npcItemDIct, errorLog = extractNpc(
        npcLst, itemShopLst, npcID, port, errorLog)

    name = "\\NPC\\{}".format("_".join(npcID))

    lstDict = {
        "npc": [npcWritID, npcLst],
Пример #3
0
from extractFuncs.mainFunc import confirmExit, \
    getImg2DirPort, outPutErrorLog, getExtractIndex, outPutFileAndNPK, getTypeList
from extractFuncs.toolFunc import fromPvfGetContent, getLstPath, fileText2List
from extractTools.login import checkLogin
from sys import exit

codeFlag = "5"

if not checkLogin(codeFlag):
    system("pause")
    exit()

imgDir, port, saveMainDir, extractMode, npk = getImg2DirPort()

objLst, mobLst, wdmLst, twnLst, npcLst, itemShopLst = \
    getTypeList(["passiveobject", "monster", "worldmap", "town", "npc", "itemshop"], port)

# -----------主程序
while True:
    result = getExtractIndex("twn", twnLst)
    if len(result) == 1:
        errorLog = result
        break
    allTwnID, errorLog = result
    directExtractFile = []
    uiPath = []
    mapFilePath = []
    allWdmID, allItemID = [], []
    for twnId in allTwnID:
        twnPath = getLstPath('town', twnId, twnLst)
        twnC = fromPvfGetContent(port, twnPath)
Пример #4
0
from extractFuncs.getInfo import dgnFunc, repeatGet, reCSort
from extractFuncs.mainFunc import time, confirmExit, getImg2DirPort, outPutErrorLog, getExtractIndex, \
    printErrorLog, getMapDict, getInDictMapInfo, outPutFileAndNPK, getTypeList
from extractFuncs.toolFunc import ObjMobIDToPath, correctDirName
from extractTools.login import checkLogin

codeFlag = "2"

if not checkLogin(codeFlag):
    system("pause")
    exit()

imgDir, port, saveMainDir, extractMode, npk = getImg2DirPort()

dgnLst, mapLst, objLst, mobLst = getTypeList(
    ["dungeon", "map", "passiveobject", "monster"], port)

map2DgnDict = getMapDict(port, mapLst, imgDir)
# {dgnIndex: [mapIndex, mapPath, mapCList]}

dgnNameList = []
nameRepeatFlag = 0
# -----------主程序
while True:
    result = getExtractIndex("dgn", dgnLst)
    if len(result) == 1:
        flag = printErrorLog(result)
        if flag == 0:
            print("程序已退出。")
            break
        else:
Пример #5
0
    getImg2DirPort, outPutErrorLog, getExtractIndex, printErrorLog, \
    getPartSetIndexDict, outPutFileAndNPK, getTypeList
from extractFuncs.toolFunc import ife, iep, checkInList, listJoin, getEmptyList
from extractTools.login import checkLogin
from sys import exit

codeFlag = "1"

if not checkLogin(codeFlag):
    system("pause")
    exit()

imgDir, port, saveMainDir, extractMode, npk = getImg2DirPort()
stkLst, equLst, objLst, mobLst, apcLst, apdLst, creLst = \
    getTypeList(["stackable", "equipment",
                 "passiveobject", "monster",
                 "aicharacter", "appendage", "creature"], port)
# -----------主程序
while True:
    result = getExtractIndex("equ/stk", [stkLst, equLst])
    if len(result) == 1:
        flag = printErrorLog(result)
        if flag == 0:
            print("程序已退出。")
            break
        else:
            continue
    allItemID, errorLog = result

    allStkID = listJoin(allItemID, stkLst)
Пример #6
0
if not checkLogin(codeFlag):
    system("pause")
    exit()

imgDir, port, saveMainDir, extract, npk = getImg2DirPort()

extractMode = False
if extract == '1':
    extractMode = True

# 获取当前日期,做ID计数器
start_id = int(datetime.now().strftime('%Y%m%d') + '00')
shpID = 100301
# -----------主程序
apcLst, equLst, objLst, mobLst = getTypeList(
    ["aicharacter", "equipment", "passiveobject", "monster"], port)
while True:
    if extractMode:
        errorLog = []
        allApcID = apcLst[2:][::2]
    else:
        result = getExtractIndex('apc', apcLst)
        if len(result) == 1:
            errorLog = result
            break
        allApcID, errorLog = result
        # -----------获取提取DGN路径
        # print(allApcID)
        if len(allApcID) == 0:
            with open(saveMainDir + '\\error.log', 'w', encoding='utf-8') as f:
                for line in errorLog: