|
You last visited: Today at 13:48
Advertisement
[Problem]With Convert item_proto
Discussion on [Problem]With Convert item_proto within the Metin2 Private Server forum part of the Metin2 category.
03/29/2016, 09:38
|
#1
|
elite*gold: 0
Join Date: Sep 2012
Posts: 146
Received Thanks: 15
|
[Problem]With Convert item_proto
Hey devs,
I have problem with converting item proto using convertproto.py
if any1 can correct it will be good
I get error while converting
File "convert_proto.py", line 857, in item_proto
item_proto_line = "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t% s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\ t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s" % (row[0], "\"" + row[1] + "\"", "\"" + get_item_type(row[3], row[0]) + "\"" , "\"" + get_item_subtype(row[3], row[4], row[0]) + "\"", row[6] , get_antiflag(row[7], row[0]), get_flag(row[8], row[0]), get_wearflag(row[9], row[0]), get_immuneflag(row[10]), row[11], row[12], row[13], row[14], row[16], get_limittype(row[17]), row[18], get_limittype(row[19]), row[20], get_apply(row[21]), row[22], get_apply(row[23]), row[24], get_apply(row[25]), row[26], row[27], row[28], row[29], row[30], row[31], row[32], row[39], row[40], row[41])
TypeError: cannot concatenate 'str' and 'long' objects
I tell you why it is happening normal convert proto the vnum_range will be last so it wont make problem but here we added vnum_range next to vnum that is row 2... so its making problem So any one who correct this will be helpful i tried but it says
" TypeError: not enough arguments for format string "
Here is my Convert proto.py
Error section
out_file_itemproto = open("item_proto.txt", "w")
out_file_itemnames = open("item_names.txt", "w")
print "Converting item_proto..."
for row in rows:
item_proto_line = "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t% s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\ t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s" % (row[0], "\"" + row[1] + "\"", "\"" + get_item_type(row[3], row[0]) + "\"" , "\"" + get_item_subtype(row[3], row[4], row[0]) + "\"", row[6] , get_antiflag(row[7], row[0]), get_flag(row[8], row[0]), get_wearflag(row[9], row[0]), get_immuneflag(row[10]), row[11], row[12], row[13], row[14], row[16], get_limittype(row[17]), row[18], get_limittype(row[19]), row[20], get_apply(row[21]), row[22], get_apply(row[23]), row[24], get_apply(row[25]), row[26], row[27], row[28], row[29], row[30], row[31], row[32], row[39], row[40], row[41])
item_names_line = "%s\t%s" % (row[0], row[2])
out_file_itemproto.write(item_proto_line + "\r\n")
out_file_itemnames.write(item_names_line + "\r\n")
out_file_itemproto.close()
Thanks in Advance
|
|
|
03/31/2016, 14:59
|
#2
|
elite*gold: 0
Join Date: Sep 2012
Posts: 146
Received Thanks: 15
|
No one knows ? :S
|
|
|
04/02/2016, 13:06
|
#3
|
elite*gold: 0
Join Date: Sep 2012
Posts: 146
Received Thanks: 15
|
Come on guys any expert in python?
|
|
|
04/05/2016, 15:39
|
#4
|
elite*gold: 0
Join Date: Sep 2012
Posts: 146
Received Thanks: 15
|
Guys i really need help !
|
|
|
04/06/2016, 05:48
|
#5
|
elite*gold: 260
Join Date: Jul 2009
Posts: 1,123
Received Thanks: 180
|
Do you want item proto convert to what? If you have a Webserver, you can use my solutions to dump item proto from db to XML or txt. Take a look to my signature!
|
|
|
|
Similar Threads
|
Kick to convert: easy and fast way to convert your item_proto/mob_proto to txt files!
09/07/2016 - Metin2 PServer Guides & Strategies - 21 Replies
Hi all,
this is my first release :)
This "kick converter" will allow you to generate txt files (item_names, item_proto, mob_proto, mob_names) for the rev-34k game.
The script was written in python by me, so you need python 2.7 and MySQLDB (python extension) installed on your server.
If you found any error, please report it to me and I'll fix it as soon as possibile.
PS: If you get errors while converting the item_proto, please remove items that have type 29 or type 31.
|
[CONVERT]XML to SQL item_proto
04/20/2014 - Metin2 Private Server - 0 Replies
Hy, I just converted my item_proto_dump.xml to item_proto.sql but auth & ch1 didn't start:
Syserr:
SYSERR: Apr 20 20:10:33 :: SetBilling: cannot find login key 1996488704
SYSERR: Apr 20 20:10:33 :: SetBilling: cannot find login key 2936524900
SYSERR: Apr 20 20:10:33 :: SetBilling: cannot find login key 1644167168
SYSERR: Apr 20 20:10:33 :: SetBilling: cannot find login key 1644167168
Converter used:
http://i.imgur.com/rhxxMdQ.png
|
convert my item_proto xml to sql
08/28/2013 - Metin2 Private Server - 0 Replies
Hallo All
I Have Problem When I Convert Item_proto.xml to sql
he make the refined_vnum 0
I Want Some One Convert This Item_proto.xml to sql and keep the refined_vnum ;)
|
Convert item_proto.sql to item_proto.txt (r34083)
07/26/2013 - Metin2 Private Server - 0 Replies
Solved
|
All times are GMT +2. The time now is 13:48.
|
|