Register for your free account! | Forgot your password?

You last visited: Today at 20:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE][PY] XML Generator

Discussion on [RELEASE][PY] XML Generator within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2009
Posts: 103
Received Thanks: 53
Thumbs up [RELEASE][PY] XML Generator

Hi guys, this is topic all the quotation. I am translate to your all epvp users.

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." 
poXavincS is offline  
Thanks
1 User
Old 10/17/2013, 18:45   #2
 
kstmr's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 95
Received Thanks: 29
ty but i realy didnt understood what you said
please use english or at least german so some one might translate for us
or ask a friend of yours to translate it for us
kstmr is offline  
Old 10/18/2013, 08:12   #3
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
If this is your first start, you're very backward. This system already public. Before opening the thread please check whether what you're doing on the internet. Eternexus always is work good. XML is a simplified system without a better and nearer to the users.

When you're open topic, please write german/english. Because this community know german/english not turkish.

Mfg HaveBeen™
HaveBeen™ is offline  
Old 10/18/2013, 11:10   #4
 
elite*gold: 0
Join Date: Mar 2012
Posts: 25
Received Thanks: 7
Quote:
Originally Posted by HaveBeen™ View Post
If this is your first start, you're very backward. This system already public. Before opening the thread please check whether what you're doing on the internet. Eternexus always is work good. XML is a simplified system without a better and nearer to the users.

When you're open topic, please write german/english. Because this community know german/english not turkish.

Mfg HaveBeen™
yazık zavallı ve köle= kültürel yozlaşma
bürokrasi is offline  
Old 10/18/2013, 12:26   #5

 
elite*gold: 0
Join Date: Oct 2013
Posts: 1,139
Received Thanks: 1,084
Merhaba,

lütfen burda sadece Almanca veya Ingilizce yaz.
Diyer Diller burda Yasaktir.

Wenn jmd juckt was ich geschrieben hab
--> Google Übersetzer.
.Kaaarni' is offline  
Thanks
1 User
Old 10/18/2013, 13:12   #6
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
Quote:
Originally Posted by bürokrasi View Post
yazık zavallı ve köle= kültürel yozlaşma
Açıkcası modern dünyadan geri kalmışsın. Türkleri savunmanı anlarım ama yanlış yerde savunduğunun farkında bile değilsin. Türk forumunda biri ingilizce konuşsa olanlar olur. İngiliz forumunda türkçe yazılırsa hiçbir şey yapılmaz. Sen bunun düşüncesindesin çok yanlış yol izliyorsun. Modernleşsen iyi olur yoksa bu dünya seni paşa paşa unutur.
HaveBeen™ is offline  
Old 10/19/2013, 00:09   #7
 
elite*gold: 0
Join Date: Mar 2012
Posts: 25
Received Thanks: 7
Quote:
Originally Posted by HaveBeen™ View Post
Açıkcası modern dünyadan geri kalmışsın. Türkleri savunmanı anlarım ama yanlış yerde savunduğunun farkında bile değilsin. Türk forumunda biri ingilizce konuşsa olanlar olur. İngiliz forumunda türkçe yazılırsa hiçbir şey yapılmaz. Sen bunun düşüncesindesin çok yanlış yol izliyorsun. Modernleşsen iyi olur yoksa bu dünya seni paşa paşa unutur.
zekasız aptal
bürokrasi is offline  
Old 10/19/2013, 10:20   #8
 
elite*gold: 0
Join Date: Apr 2009
Posts: 103
Received Thanks: 53
Lightbulb

Quote:
Originally Posted by .нyMurs View Post
Merhaba,

lütfen burda sadece Almanca veya Ingilizce yaz.
Diyer Diller burda Yasaktir.

Wenn jmd juckt was ich geschrieben hab
--> Google Übersetzer.
You're right! I converted..
poXavincS is offline  
Old 10/19/2013, 15:38   #9
 
elite*gold: 0
Join Date: Mar 2013
Posts: 154
Received Thanks: 507
Quote:
Originally Posted by bürokrasi View Post
zekasız aptal
Zekasız olduğum için senden fazla bilgim varya. Daha fazla uzatmaya gerek yok, senin aptallığın kendinedir burayıda türk forumuna çevirme saygının ne olduğunu öğrenmeni tavsiye ederim. Belki o zaman uslu bir köpek olabilirsin.
HaveBeen™ is offline  
Reply


Similar Threads Similar Threads
[Release]Signaturen Generator V1.0
08/01/2013 - Metin2 PServer Guides & Strategies - 19 Replies
Ich stelle euch hier meinen Signaturgenerator zur Verfügung. Benötigt: -Webspace mit PhP 5.x -brain.exe V1.0: Features: -Alle Relevanten Charinfos sind enthalten
[Release] NPC Generator
10/18/2010 - Flyff PServer Guides & Releases - 34 Replies
Hallo E*PvP'er, da mein Biete Thread für den NPC Generator denke ich eventuell nicht gut ankam, da es so wenig Infos gab oder der Preis mit 20€ zu hoch war für euch. Naja, ich möchte keinen abschrecken oder ihm etwas "andrehen" =), ohne das er/sie die Gelegenheit hatte, das Programm zu Testen. Ich habe da eine simple aber gute Methode gefunden, euch diese Möglichkeit zu bieten.



All times are GMT +2. The time now is 20:01.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.