HotCrazy 11 Posted February 3, 2019 Alguém tem o tutorial de como compactar os arquivos da pasta pack do cliente best production? não estou conseguindo compactar os arquivos. Share this post Link to post Share on other sites
0 Paradox 851 Posted February 3, 2019 7 horas atrás, HotCrazy disse: Alguém tem o tutorial de como compactar os arquivos da pasta pack do cliente best production? não estou conseguindo compactar os arquivos. Como assim tutorial? É só colocar o nome do ficheiro e enter 1 HotCrazy reacted to this Share this post Link to post Share on other sites
0 HotCrazy 11 Posted February 3, 2019 4 horas atrás, Paradox disse: Como assim tutorial? É só colocar o nome do ficheiro e enter Faço isso tudo, e aparece packing completed, porém não aparece nenhum arquivo compactado. segue as imagens. http://prntscr.com/mg1d3r http://prntscr.com/mg1e8c http://prntscr.com/mg1eel Share this post Link to post Share on other sites
0 Paradox 851 Posted February 3, 2019 24 minutos atrás, HotCrazy disse: Faço isso tudo, e aparece packing completed, porém não aparece nenhum arquivo compactado. segue as imagens. http://prntscr.com/mg1d3r http://prntscr.com/mg1e8c http://prntscr.com/mg1eel Tenta criar uma pasta chamada pack ou então verifica se o directório final está correto no ficheiro bat e py 1 HotCrazy reacted to this Share this post Link to post Share on other sites
0 HotCrazy 11 Posted February 3, 2019 4 minutos atrás, Paradox disse: Tenta criar uma pasta chamada pack ou então verifica se o directório final está correto no ficheiro bat e py import os,sys,shutil mypath = os.path.dirname(os.path.realpath(__file__)) startm2=0 fu_stop=0 debug=0 while 1: print "commands start/stop" for packName in str(raw_input("Name of archive: ").lower()).split(" "): if packName == "": pass elif packName == "start": startm2=1 elif packName == "stop": startm2=0 elif packName == "debug": debug=1 else: pathList = { "bgm":"bgm", "effect":"d:/ymir work/effect", "etc":"d:/ymir work", "guild":"d:/ymir work/guild", "icon":"icon", "item":"d:/ymir work/item", "locale":"locale", "monster":"d:/ymir work/monster", "monster2":"d:/ymir work/monster2", "npc":"d:/ymir work/npc", "npc2":"d:/ymir work/npc2", "npc_pet":"d:/ymir work/npc_pet", "npc_mount":"d:/ymir work/npc_mount", "update1":"d:/ymir work/update1", "pc_assassin":"d:/ymir work/pc/assassin", "pc_common":"d:/ymir work/pc/common", "pc_sura":"d:/ymir work/pc/sura", "pc_shaman":"d:/ymir work/pc/shaman", "pc_warrior":"d:/ymir work/pc/warrior", "pc2_assassin":"d:/ymir work/pc2/assassin", "pc2_common":"d:/ymir work/pc2/common", "pc3_common":"d:/ymir work/pc3/common", "pc2_sura":"d:/ymir work/pc2/sura", "pc2_shaman":"d:/ymir work/pc2/shaman", "pc2_warrior":"d:/ymir work/pc2/warrior", "property":"property", "season1":"season1", "season2":"season2", "sound":"sound", "terrain":"d:/ymir work/terrainmaps", "textureset":"textureset", "tree":"d:/ymir work/tree", "zone":"d:/ymir work/zone", } # if packName == "locale_client": # fu_stop = 1 # os.system("cd locale_tr & python write2File.pyexec") for lang in ('de', 'en', 'ro', 'es',): if lang == packName: for filename in ('item_names.txt', 'mob_names.txt',): shutil.copy("locale_tr\\%s\\%s" % (lang,filename), filename) fu_stop = 1 os.system("dump_proto.exe") if debug == 0: for filename in ('item_names.txt', 'mob_names.txt',): os.remove(filename) shutil.move("item_proto","locale_tr\\%s\\item_proto" % lang) shutil.move("mob_proto","locale_tr\\%s\\mob_proto" % lang) if fu_stop == 1: fu_stop = 0 else: f = open("bin/make_xml.xml", "w") f.write("<ScriptFile>\n") f.write("\t<CreateEterPackXml Input=\"" + packName + ":") if packName in pathList: f.write(pathList[packName] + "/\" ") else: f.write("\" ") f.write("ArchivePath=\"../Metin2Client/pack/" + packName + "\" ") f.write("XmlPath=\"bin/_create.xml\">\n") for ignore_ext in ('db','png','psd','pyexec','rar','zip',): f.write("\t\t<Ignore Pattern=\"[a-zA-z0-9]+.%s\" />\n" % ignore_ext) for ignore_single_file in ('item_names.txt','mob_names.txt',): f.write("\t\t<Ignore Pattern=\"%s\" />\n" % ignore_single_file) f.write("\t</CreateEterPackXml>\n") f.write("</ScriptFile>\n") f.close() os.system("\"" + mypath + "\\bin\\FileArchiver.exe\" bin/make_xml.xml") print("XML File created.") packFile = [] f = open("bin/_create.xml", "r") for line in f: if line.find("/" + packName + "/") != -1: searchStr = "/" + packName + "/" line = line[:line.find(searchStr)] + line[line.find(searchStr) + len(searchStr):] if not (packName in pathList): searchStr = "ArchivedPath=\"/" if line.find(searchStr) != -1: line = line[:line.find(searchStr) + len(searchStr) - 1] + line[line.find(searchStr) + len(searchStr):] packFile.append(line) f.close() os.system("\"" + mypath + "\\bin\\FileArchiver.exe\" " + "bin/_create.xml") if debug == 0: os.remove("bin/make_xml.xml") os.remove("bin/_create.xml") print("Packing completed.") if startm2==1: os.system("cd \"" + mypath + "\\..\\Metin2Client\\\" & Metin2Distribute.exe") já tentei todos esses directorios ai e nada. Share this post Link to post Share on other sites
0 Paradox 851 Posted February 3, 2019 6 minutos atrás, HotCrazy disse: import os,sys,shutil mypath = os.path.dirname(os.path.realpath(__file__)) startm2=0 fu_stop=0 debug=0 while 1: print "commands start/stop" for packName in str(raw_input("Name of archive: ").lower()).split(" "): if packName == "": pass elif packName == "start": startm2=1 elif packName == "stop": startm2=0 elif packName == "debug": debug=1 else: pathList = { "bgm":"bgm", "effect":"d:/ymir work/effect", "etc":"d:/ymir work", "guild":"d:/ymir work/guild", "icon":"icon", "item":"d:/ymir work/item", "locale":"locale", "monster":"d:/ymir work/monster", "monster2":"d:/ymir work/monster2", "npc":"d:/ymir work/npc", "npc2":"d:/ymir work/npc2", "npc_pet":"d:/ymir work/npc_pet", "npc_mount":"d:/ymir work/npc_mount", "update1":"d:/ymir work/update1", "pc_assassin":"d:/ymir work/pc/assassin", "pc_common":"d:/ymir work/pc/common", "pc_sura":"d:/ymir work/pc/sura", "pc_shaman":"d:/ymir work/pc/shaman", "pc_warrior":"d:/ymir work/pc/warrior", "pc2_assassin":"d:/ymir work/pc2/assassin", "pc2_common":"d:/ymir work/pc2/common", "pc3_common":"d:/ymir work/pc3/common", "pc2_sura":"d:/ymir work/pc2/sura", "pc2_shaman":"d:/ymir work/pc2/shaman", "pc2_warrior":"d:/ymir work/pc2/warrior", "property":"property", "season1":"season1", "season2":"season2", "sound":"sound", "terrain":"d:/ymir work/terrainmaps", "textureset":"textureset", "tree":"d:/ymir work/tree", "zone":"d:/ymir work/zone", } # if packName == "locale_client": # fu_stop = 1 # os.system("cd locale_tr & python write2File.pyexec") for lang in ('de', 'en', 'ro', 'es',): if lang == packName: for filename in ('item_names.txt', 'mob_names.txt',): shutil.copy("locale_tr\\%s\\%s" % (lang,filename), filename) fu_stop = 1 os.system("dump_proto.exe") if debug == 0: for filename in ('item_names.txt', 'mob_names.txt',): os.remove(filename) shutil.move("item_proto","locale_tr\\%s\\item_proto" % lang) shutil.move("mob_proto","locale_tr\\%s\\mob_proto" % lang) if fu_stop == 1: fu_stop = 0 else: f = open("bin/make_xml.xml", "w") f.write("<ScriptFile>\n") f.write("\t<CreateEterPackXml Input=\"" + packName + ":") if packName in pathList: f.write(pathList[packName] + "/\" ") else: f.write("\" ") f.write("ArchivePath=\"../Metin2Client/pack/" + packName + "\" ") f.write("XmlPath=\"bin/_create.xml\">\n") for ignore_ext in ('db','png','psd','pyexec','rar','zip',): f.write("\t\t<Ignore Pattern=\"[a-zA-z0-9]+.%s\" />\n" % ignore_ext) for ignore_single_file in ('item_names.txt','mob_names.txt',): f.write("\t\t<Ignore Pattern=\"%s\" />\n" % ignore_single_file) f.write("\t</CreateEterPackXml>\n") f.write("</ScriptFile>\n") f.close() os.system("\"" + mypath + "\\bin\\FileArchiver.exe\" bin/make_xml.xml") print("XML File created.") packFile = [] f = open("bin/_create.xml", "r") for line in f: if line.find("/" + packName + "/") != -1: searchStr = "/" + packName + "/" line = line[:line.find(searchStr)] + line[line.find(searchStr) + len(searchStr):] if not (packName in pathList): searchStr = "ArchivedPath=\"/" if line.find(searchStr) != -1: line = line[:line.find(searchStr) + len(searchStr) - 1] + line[line.find(searchStr) + len(searchStr):] packFile.append(line) f.close() os.system("\"" + mypath + "\\bin\\FileArchiver.exe\" " + "bin/_create.xml") if debug == 0: os.remove("bin/make_xml.xml") os.remove("bin/_create.xml") print("Packing completed.") if startm2==1: os.system("cd \"" + mypath + "\\..\\Metin2Client\\\" & Metin2Distribute.exe") já tentei todos esses directorios ai e nada. Muda a pasta do Cliente para Metin2Client e coloca-a na mesma pasta em que tens a " MakePack " 1 HotCrazy reacted to this Share this post Link to post Share on other sites
0 HotCrazy 11 Posted February 3, 2019 17 minutos atrás, Paradox disse: Muda a pasta do Cliente para Metin2Client e coloca-a na mesma pasta em que tens a " MakePack " Infelizmente nada veio a funcionar =( Share this post Link to post Share on other sites
0 Marcos Pinheiro 22 Posted February 8, 2019 Na mesma pasta onde tem o Makepack cria uma pasta chamada Metin2Client, dentro da pasta Metin2Client cria uma pasta chamada pack. Share this post Link to post Share on other sites
0 rpm22 0 Posted February 21, 2019 Mesmo problema, não consigo com que isso funcione, ja experimentei criar pastas também e nada. se alguém puder ajudar agradecia Share this post Link to post Share on other sites
0 Kirryto 2 Posted May 4, 2019 Depois de muito tentar conseguir, Cria uma pasta com o nome Metin2Client na mesma pasta que a MakePack, não dentro da MakePack, dai dentro da pastas Metin2Cliente cria uma pasta com o nome pack. A imagem ilustra se não conseguir só chamar 065999466705 1 cejota1 reacted to this Share this post Link to post Share on other sites
0 мαя¢σs ๖ۣۣۜDaniel 69 Posted December 19, 2019 Meu makepack não funciona , executo o ficheiro .bat ele abre fecha, rapidamente, ja tive este problema porém não me lembro como resolvi... Já utilizei um pograma de runtimes nao sei que que instala os visual c++ etc, mas não me resolveu, alguem me ajuda? Share this post Link to post Share on other sites
0 OldGame 1 Posted May 15, 2021 .... OMG instala o python 2.4 ... e maravilhas irao acontecer Share this post Link to post Share on other sites
Alguém tem o tutorial de como compactar os arquivos da pasta pack do cliente best production?
não estou conseguindo compactar os arquivos.
Share this post
Link to post
Share on other sites