hch
2025-07-09 1cf37b4b51fc287ca3e443afb72604ec88f72cc4
PySysDB/Éú³ÉIpyGameDataPY/IpyGameDataPYCreater.py
@@ -57,7 +57,7 @@
    StructFileName = sys.argv[1]
    if StructFileName == "PySysDBPY.h":
        IpyGameDataPYFile = CodeProjectPath + "\\ZoneServerGroup\\map1_8G\\MapServer\\MapServerData\\Script\\"
        LoadStructPath = "ChConfig.GetDBPath()"
        LoadStructPath = "ChConfig.GetServerConfigPath()"
    elif StructFileName == "PySysDBG.h":
        IpyGameDataPYFile = CodeProjectPath + "\\CoreServerGroup\\GameServer\\Script\\"
        LoadStructPath = "ChConfig.GetAppPath()"
@@ -94,12 +94,14 @@
                continue
            
            if "struct" in line:
                tagIndex = line.index("tag")
                line = line.strip()
                if "{" in line:
                    tableName = line[tagIndex + 3:line.index("{")]
                    tableName = line[6:line.index("{")]
                else:
                    tableName = line[tagIndex + 3:]
                tableName = tableName.replace(" ", "") # è¡¨åè‹±æ–‡å
                    tableName = line[6:]
                tableName = tableName.replace("\t", "").replace(" ", "") # è¡¨åè‹±æ–‡å
                if tableName.startswith("tag"):
                    tableName = tableName[3:]
                continue
            
            noteInfo = " #" # å­—段注释说明
@@ -115,7 +117,7 @@
            if not fieldType:
                if "struct" not in line and "{" not in line and "}" not in line:
                    print "### ç±»åž‹å®šä¹‰é”™è¯¯è¡¨ ###"
                    print "struct tag%s" % tableName
                    print "struct %s" % tableName
                    print line
                    raise
                continue