Register for your free account! | Forgot your password?

You last visited: Today at 02:51

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

Advertisement



Proto Sortierer - by Max Chri

Discussion on Proto Sortierer - by Max Chri within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1


 
elite*gold: 1810
Join Date: Jan 2012
Posts: 2,208
Received Thanks: 1,630
Proto Sortierer - by Max Chri

Proto Sortierer




Kleines Release, das mal ein wenig Ordnung in die schlampigen Resultate
von Webzen bringt. Und zwar sortiert dieses Tool eure item_names,
item_proto, mob_names und mob_proto.


Um die gewünschten Dateien zu sortieren, müsst ihr sie in das
gleiche Verzeichnis verschieben, indem sich der Proto Sortierer
befindet.


Da teilweise über 15000 Berechnungen (je nach Größe eurer Protos)
kalkuliert werden, kann der Vorgang ein paar Sekunden in Anspruch nehmen.


Im Download befinden sich zwei Test-Protos, mit denen ihr
euch schnell vertraut machen könnt und die Prozedur des
Tools im Überblick habt.


Die Version 1.0 übernimmt keine Einträge, die z.B mit 110000~110099
beginnen, da es ganz einfach nicht als Zahl, sondern als String gelesen wird.
Solltet ihr es unbedingt wünschen, kann ich diese Funktion in einer weiteren
Version ergänzen.


Attached Files
File Type: rar Proto Sortierer 1.0.rar (448.7 KB, 98 views)
MaxChri is offline  
Thanks
5 Users
Old 03/26/2016, 15:45   #2
 
elite*gold: 0
Join Date: Oct 2014
Posts: 17
Received Thanks: 1
Wow! It's very good. But i download and say "Virus".
iStark# is offline  
Old 03/26/2016, 17:30   #3
 
.Liron's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 292
Received Thanks: 519
Habe ihn getestet, mein Problem, das er einfach c.a 1200 Zeilen weglässt. Bitte fixen!
.Liron is offline  
Old 03/26/2016, 17:34   #4
 
elite*gold: 0
Join Date: Apr 2015
Posts: 428
Received Thanks: 361
Das geht mit Navicat (bzw. SQL) etc. um einiges einfacher eine Tabelle zu sortieren.
#Metho is offline  
Thanks
1 User
Old 03/28/2016, 15:24   #5


 
elite*gold: 1810
Join Date: Jan 2012
Posts: 2,208
Received Thanks: 1,630
Quote:
Originally Posted by Lord Metho View Post
Das geht mit Navicat (bzw. SQL) etc. um einiges einfacher eine Tabelle zu sortieren.
Alles klar, auf einen Button zu klicken ist ja dann doch zu schwer...

Quote:
Originally Posted by .Liron View Post
Habe ihn getestet, mein Problem, das er einfach c.a 1200 Zeilen weglässt. Bitte fixen!
Kann nicht sein, check mal die Syntax ob alles stimmt.

Quote:
Originally Posted by iStark# View Post
Wow! It's very good. But i download and say "Virus".
Ignore the false positive detections. Maybe the calculation is to complex.
MaxChri is offline  
Old 03/28/2016, 15:49   #6
 
elite*gold: 0
Join Date: Jul 2011
Posts: 25
Received Thanks: 15
How can it be complex?

Import the text into a vector, vector.sort and rewrite it.

Thats nothing complex and shouldnt case any false positive at all, unless you used a packer/obsfuscator for it.
redryan is offline  
Old 03/28/2016, 19:54   #7
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,901
Received Thanks: 3,341
Langeweile hat mich mal wieder motiviert:

das ganze als Py Script und unterstützung der ~ Teile sowie mit ner ausführzeit von unter 2 sekunden für alle scripte:

Code:
def SortFile(in_file, out_file):
	tmp_str = ""
	tmp_arr = {}
	try:
		t_f = open(in_file, "r")
		f = t_f.readlines()
		t_f.close()
		o = open(out_file, "w")
	except:
		print "CANNOT OPEN FILES"
		return
	for line in f:
		if(line[-1] != "\n"):
			line +="\n"
		if(line[0] == "\n"):
			line = line[1:]
		
		try:
			i = line.split("\t")
			x = int(i[0])
		except:
			if(line.find("~") != -1):
				tmp_arr[ int(i[0].split("~")[0])] = line
				continue
			print "NOT A int: " + i[0]
			tmp_str = tmp_str + line
			continue
		if(i[0].find("~") == -1):
			tmp_arr[int(i[0])] = line
		
	z = sorted(tmp_arr)
	for y in z:
		print y
		tmp_str = tmp_str + str(tmp_arr[y])		
	o.write(tmp_str[:len(tmp_str) -2])
	o.close()


files = [
	"item_proto.txt",
	"mob_proto.txt",
	"item_names.txt",
	"mob_names.txt"
]

for x in files:
	SortFile(x, x + "_new")
xCPx is offline  
Thanks
1 User
Old 04/01/2016, 08:31   #8
 
Kampfzwerg!'s Avatar
 
elite*gold: 0
Join Date: Feb 2015
Posts: 306
Received Thanks: 171
wieso ein tool dafür schreiben wenn man das schon
in seinem convert script drin haben kann?
Code:
cur.execute("select * from item_proto order by vnum asc, locale_name asc;")
schöne grüße

Kampfzwerg
Kampfzwerg! is offline  
Reply


Similar Threads Similar Threads
[RELEASE] Item-Proto Entpacker für Viruz[XML->PROTO|PROTO->XML]
07/07/2016 - Metin2 PServer Guides & Strategies - 20 Replies
Vorab ist nichts besonderes! Info: - PROTO->XML - XML->PROTO - Funktioniert mit der Viruz Item_proto, als auch mit der normalen 40k Item_proto. - Der Unpacker stammt von Mr.Lucifer @ epvp. - Packer wurde 2014 für eigenen Gebrauch gebastelt, war eigentlich mal die dump_proto der YMIR. - Die "Spalte" "name" wird automatisch auf die von "gb2312name" geändert, Aufbau sollte (in etwa) sein, wie von Tims alten Entpacker. Video("<!--AddonType="0"-->& quot; könnt ihr ...
[MINI-RELEASE]Item Proto Unpacker [NEUE PROTO]
08/18/2014 - Metin2 PServer Guides & Strategies - 15 Replies
Moin, Ich habe den " Mr.Lucifer's NeXus Archiver" gefunden leider muss man immer wieder den Startbefehl ändern... Lösung: http://gaming-company.de/SOFTWARE/METIN2_ITEM_PRO TO_UNPACKER/Images/GERMAN_1.0.png http://gaming-company.de/SOFTWARE/METIN2_ITEM_PRO TO_UNPACKER/Images/ENGLISH_1.0.png Ist einfach aber funktioniert :)
[EU] 8 x 80 - Warlord/Amani Bear/ Plagued Proto/ Rusted Proto Imba Account
10/25/2010 - World of Warcraft Trading - 1 Replies
For sale is my beloved account </3 Selling this as i'm finally moving on from wow and moving to a different city for my girlfriends as she's just fell pregnant Horde and Alliance2 X 80 Hunter - Warlord Title - Headless Horseman Mount/ twilight drake Alliance 1 x 80 Shaman - 5.7k Gs Alliance 1 x 80 Priest - Normal Gear 5.6kish Alliance 1 x 80 Mage - 5.7k Gs with loads of justice points and green proto Horde 1 x 80 Druid - 5.4gs - Plagued Proto Drake/ Amani War Bear/ Rusted Proto Drake/...



All times are GMT +1. The time now is 02:51.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.