List remaining missing items

merge/2021-11-19
kaetemi 3 years ago
parent 5fc80fca13
commit 93dc106d95
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -423,7 +423,7 @@ def generateParents():
print(path)
with open(path, "w") as f:
f.write("<?xml version=\"1.0\"?>\n")
f.write("<FORM Revision=\"4.0\" State=\"modified\">\n")
f.write("<FORM Version=\"4.0\" State=\"modified\">\n")
f.write(" <STRUCT>\n")
f.write(" <STRUCT Name=\"basics\">\n")
f.write(" <ATOM Name=\"name\" Value=\"" + displayName + "\"/>\n")
@ -490,7 +490,7 @@ def generateParents():
# print(path)
# with open(path, "w") as f:
# f.write("<?xml version=\"1.0\"?>\n")
# f.write("<FORM Revision=\"4.0\" State=\"modified\">\n")
# f.write("<FORM Version=\"4.0\" State=\"modified\">\n")
# f.write("</FORM>\n")
# f.flush()
@ -704,7 +704,7 @@ def generateSitems():
print(path)
with open(path, "w") as f:
f.write("<?xml version=\"1.0\"?>\n")
f.write("<FORM Revision=\"4.0\" State=\"modified\">\n")
f.write("<FORM Version=\"4.0\" State=\"modified\">\n")
if parent:
f.write(" <PARENT Filename=\"" + parent + ".sitem\"/>\n")
f.write(" <STRUCT>\n")
@ -808,7 +808,7 @@ def generateSitems():
os.makedirs(sbrickFolder)
with open(sbrickFile, "w") as f:
f.write("<?xml version=\"1.0\"?>\n")
f.write("<FORM Revision=\"4.0\" State=\"modified\">\n")
f.write("<FORM Version=\"4.0\" State=\"modified\">\n")
f.write(" <STRUCT>\n")
f.write(" <STRUCT Name=\"Basics\">\n")
f.write(" <ATOM Name=\"FamilyId\" Value=\"" + brickFamily + "\"/>\n")
@ -864,7 +864,7 @@ def generateSitems():
os.makedirs(sphraseFolder)
with open(sphraseFile, "w") as f:
f.write("<?xml version=\"1.0\"?>\n")
f.write("<FORM Revision=\"4.0\" State=\"modified\">\n")
f.write("<FORM Version=\"4.0\" State=\"modified\">\n")
f.write(" <STRUCT>\n")
f.write(" <ATOM Name=\"brick 0\" Value=\"" + sbrickName + ".sbrick\"/>\n")
f.write(" <ATOM Name=\"castable\" Value=\"false\"/>\n")

@ -1,9 +1,33 @@
import os
sitemPath = "R:\\leveldesign\\game_element\\sitem"
fileMap = {}
def listPathExt(path, ext):
for p in os.listdir(path):
fp = path + "\\" + p
if os.path.isdir(fp):
listPathExt(fp, ext)
elif os.path.isfile(fp):
if fp.lower().endswith(ext):
fileMap[p] = fp
listPathExt(sitemPath, ".sitem")
with open("sitem_list.txt", "w") as w:
with open("sitem_list_r2.txt", "r") as r:
for l in r:
w.write(l)
with open("sitem_list_wk.txt", "r") as r:
for l in r:
if len(l.strip()) > 0 and not l.startswith(";"):
with open("sitem_missing.txt", "w") as wm:
with open("sitem_list_r2.txt", "r") as r:
for l in r:
w.write(l)
if not l.strip() in fileMap:
wm.write(l)
with open("sitem_list_wk.txt", "r") as r:
for l in r:
if len(l.strip()) > 0 and not l.startswith(";"):
w.write(l)
if not l.strip() in fileMap:
wm.write(l)
wm.flush()
w.flush()

@ -400,4 +400,4 @@ ictauwp.sitem
iczauwv.sitem
iczauwp.sitem
icrav.sitem
icrap.sitam
icrap.sitem

@ -38,7 +38,7 @@ iczauwp.sitem
; refugee
icrav.sitem
icrap.sitam
icrap.sitem
; second heavy matis armor
;icmah2b.sitem

@ -0,0 +1,169 @@
iccm1bm.sitem
iccm1pd.sitem
iccm1sa.sitem
iccm1ss.sitem
icf.sitem
icf_2.sitem
icf_3.sitem
icfacb_3.sitem
icfacs_3.sitem
icfacv_3.sitem
icfm1bm.sitem
icfm1bm_2.sitem
icfm1bm_3.sitem
icfm1pd.sitem
icfm1pd_2.sitem
icfm1pd_3.sitem
icfm1ps.sitem
icfm1ps_2.sitem
icfm1ps_3.sitem
icfm1sa.sitem
icfm1sa_2.sitem
icfm1sa_3.sitem
icfm1ss.sitem
icfm1ss_2.sitem
icfm1ss_3.sitem
icfm2bm.sitem
icfm2bm_2.sitem
icfm2bm_3.sitem
icfm2ms.sitem
icfm2ms_2.sitem
icfm2ms_3.sitem
icfm2pp.sitem
icfm2pp_2.sitem
icfm2pp_3.sitem
icfm2sa.sitem
icfm2sa_2.sitem
icfm2sa_3.sitem
icfm2ss.sitem
icfm2ss_2.sitem
icfm2ss_3.sitem
icfsb.sitem
icfsb_2.sitem
icfsb_3.sitem
icfss.sitem
icfss_2.sitem
icfss_3.sitem
icm.sitem
icm_2.sitem
icm_3.sitem
icmacb_3.sitem
icmacs_3.sitem
icmacv_3.sitem
icmm1bm.sitem
icmm1bm_2.sitem
icmm1bm_3.sitem
icmm1pd.sitem
icmm1pd_2.sitem
icmm1pd_3.sitem
icmm1ps.sitem
icmm1ps_2.sitem
icmm1ps_3.sitem
icmm1sa.sitem
icmm1sa_2.sitem
icmm1sa_3.sitem
icmm1ss.sitem
icmm1ss_2.sitem
icmm1ss_3.sitem
icmm2bm.sitem
icmm2bm_2.sitem
icmm2bm_3.sitem
icmm2ms.sitem
icmm2ms_2.sitem
icmm2ms_3.sitem
icmm2pp.sitem
icmm2pp_2.sitem
icmm2pp_3.sitem
icmm2sa.sitem
icmm2sa_2.sitem
icmm2sa_3.sitem
icmm2ss.sitem
icmm2ss_2.sitem
icmm2ss_3.sitem
icmsb.sitem
icmsb_2.sitem
icmsb_3.sitem
icmss.sitem
icmss_2.sitem
icmss_3.sitem
ict.sitem
ict_2.sitem
ict_3.sitem
ictacb_3.sitem
ictacs_3.sitem
ictacv_3.sitem
ictm1bm.sitem
ictm1bm_2.sitem
ictm1bm_3.sitem
ictm1pd.sitem
ictm1pd_2.sitem
ictm1pd_3.sitem
ictm1ps.sitem
ictm1ps_2.sitem
ictm1ps_3.sitem
ictm1sa.sitem
ictm1sa_2.sitem
ictm1sa_3.sitem
ictm1ss.sitem
ictm1ss_2.sitem
ictm1ss_3.sitem
ictm2bm.sitem
ictm2bm_2.sitem
ictm2bm_3.sitem
ictm2ms.sitem
ictm2ms_2.sitem
ictm2ms_3.sitem
ictm2pp.sitem
ictm2pp_2.sitem
ictm2pp_3.sitem
ictm2sa.sitem
ictm2sa_2.sitem
ictm2sa_3.sitem
ictm2ss.sitem
ictm2ss_2.sitem
ictm2ss_3.sitem
ictsb.sitem
ictsb_2.sitem
ictsb_3.sitem
ictss.sitem
ictss_2.sitem
ictss_3.sitem
icz.sitem
icz_2.sitem
icz_3.sitem
iczm1bm.sitem
iczm1bm_2.sitem
iczm1bm_3.sitem
iczm1pd.sitem
iczm1pd_2.sitem
iczm1pd_3.sitem
iczm1ps.sitem
iczm1ps_2.sitem
iczm1ps_3.sitem
iczm1sa.sitem
iczm1sa_2.sitem
iczm1sa_3.sitem
iczm1ss.sitem
iczm1ss_2.sitem
iczm1ss_3.sitem
iczm2bm.sitem
iczm2bm_2.sitem
iczm2bm_3.sitem
iczm2ms.sitem
iczm2ms_2.sitem
iczm2ms_3.sitem
iczm2pp.sitem
iczm2pp_2.sitem
iczm2pp_3.sitem
iczm2sa.sitem
iczm2sa_2.sitem
iczm2sa_3.sitem
iczm2ss.sitem
iczm2ss_2.sitem
iczm2ss_3.sitem
iczsb.sitem
iczsb_2.sitem
iczsb_3.sitem
iczss.sitem
iczss_2.sitem
iczss_3.sitem
Loading…
Cancel
Save