He is use Windows 8 and EterNexus not work. So, this is XML Generator create it.
Go to pack your directory path.
He create open path is C:\Users\user\Desktop\Metin2\Araçlar\EPK-EIX\pack acıcı
Windows Button + R >> cmd [ENTER] open CMD
cd C:\Users\user\Desktop\Metin2\Araçlar\EPK-EIX\pack acıcı
python xmlOlustur.py xmlName directoryName, python xmlOlustur.py fatih Source
Ta Daaa
---------------
If you haven't python programmic language or not added windows path statement, .
PHP Code:
#-*- coding: cp1254 -*-
# Release: 14.10.2013 20:55
# Author: Fatih Mert DOĞANCAN
# Facebook: www.facebook.com/fthmad
# Facebook'tan ulabilirsiniz!!
# HER TÜRLÜ QUEST YAZILIR
# ---------------------------
# Kullanım:
# python xmlOlustur.py [xmlAdi|packAdi] [clientDosyalarininBulunduğuKlasör]
# Örnek
# cmd > cd C:\Users\user\Desktop\Metin2\Araçlar\EPK-EIX\pack acıcı
# python xmlOlustur.py fatih Source
# fatih.xml olustu!
from sys import argv
from os import getcwd,walk,path
class xmlOlustur(object):
def __init__(self):
self.data = {"len":len(getcwd()),"dizin":getcwd(),"packAdi":argv[1],"klasorAdi":argv[2]}
self.xml = {"dizin":self.data["dizin"]+"\\"+self.data["klasorAdi"],"baslangic":"""<!-- Bu dosya %s Tarafından oluşturulmuştur -->\n<Buildfile version="1.1"><Action type="create" output="%s">"""%("ucurutşulOLMX2MniteM"[::-1],self.data["packAdi"]),"bitis":"""</Action></Buildfile>"""}
def getir(self,klasor):
bin = []
for root,klasorlar,dosyalar in walk(klasor):
for dosyaAdi in dosyalar:
dosyaYol = path.join(root,dosyaAdi)
bin.append(dosyaYol)
return bin
def type(self,item):
if item[-3:] in ["sub","jpg","mp3","gr2"]: #0
return 0
elif item[-3:] in ["mse","tga","dds","spt","atr","wtr"]: #1
return 1
elif item[-3:] == "txt":
return 2
elif item[-2:] == "py":
return 2
else: #0
return 0
def olustur(self):
son = ""
son += self.xml["baslangic"]
for i in self.getir(self.xml["dizin"]):
item = """<File archivedPath="%s" type="%s"><![CDATA[[%s]]></File>"""%(i.replace("\\","/")[self.data["len"]+1:],self.type(i),i[self.data["len"]+1:])
son += item
son += self.xml["bitis"]
try:
with open(self.data["packAdi"]+".xml","wb") as dosya:
dosya.write(son)
except IOError:
return False
else:
return True
fatihMertDogancan = xmlOlustur()
if fatihMertDogancan.olustur():
print "%s.xml is created!"%argv[1]
else:
print "File not writing."