Register for your free account! | Forgot your password?

You last visited: Today at 21:37

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

Advertisement



[HELP] Python script

Discussion on [HELP] Python script within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 173
Received Thanks: 28
[HELP] Python script

Hi all,

I used this python script
Quote:
to unpack my *.SData, but there were some errors I could not know how to fix

Here the errors:
Quote:
Creating ./Output/SData/Item.complete.csv
Traceback (most recent call last):
File "src\SData.py", line 113, in <module>
main(sys.argv[1:])
File "src\SData.py", line 102, in main
result = SDataItems[SDataName](outFmt)
File "C:\Python27\src\Item.py", line 90, in MainItem
return ExtractItem(outFmt)
File "C:\Python27\src\Item.py", line 194, in ExtractItem
rec = unpack_fields(input, item_types, {})
File "C:\Python27\src\Utils.py", line 97, in unpack_fields
rec[ field[0]] = unpack_field(input, type)
File "C:\Python27\src\Utils.py", line 85, in unpack_field
len = struct.unpack('=I', input.read(4))[0]
struct.error: unpack requires a string argument of length 4
Press any key to continue . . .
This so far happened to Skill.SData, NPCQuest.SData, Item.SData, NPCKill.SData. I think the problem laid on the Utils.py script but I do not have much knowledge about Python. Anyone knows how to fix this, please help me. I did search but still a dead end. Please help.....
nick4ever is offline  
Old 01/02/2016, 18:17   #2
 
elite*gold: 0
Join Date: Dec 2007
Posts: 85
Received Thanks: 5
try another Python version. i use 2.6
snowofdragon is offline  
Old 01/04/2016, 09:12   #3
 
elite*gold: 0
Join Date: Oct 2012
Posts: 173
Received Thanks: 28
I believe that SDatas of EP 6.3 have a bit differrent to the old ones. Anybody successfully extract NPCQuest.SData to CSV then repack? Please help
nick4ever is offline  
Old 01/04/2016, 19:24   #4
 
elite*gold: 0
Join Date: Sep 2011
Posts: 43
Received Thanks: 71
If you use EP6 sdata, NpcQuest edit with sh studio 7.5.3 it's work, just in serverfile the format of Npc is ep5 and in client is ep6.
Rickicki77 is offline  
Old 01/04/2016, 20:33   #5
 
elite*gold: 0
Join Date: Oct 2012
Posts: 173
Received Thanks: 28
Hi @Rick,

Thank you for your reply, so what if I need to export NPCQuest.SData to csv sir?
nick4ever is offline  
Old 01/05/2016, 13:28   #6
 
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 391
The python scripts included with that release are old/outdated now. They work fine for Ep4/5 data's but anything higher has changes to the values/length etc.

You could edit the scripts to take into account the new data being found, but to do that you would probably need to have some understanding of reading the data in hex to see where it is skipping.
Truth1010 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[PHP] python Script mit PHP starten
09/05/2015 - Web Development - 4 Replies
Moin Leute, folgende Situation ich habe in Python 2.7 ein Script geschrieben. Das funktioniert soweit perfekt. Mein vorhaben jetzt ist es, dass User A auf einen Link klickt dieser löst dann wiederum das Python Script aus im script wird eine neue URL generiert diese soll sich beim User öffnen. So das ist die Situation wo ist jetzt mein Problem.
Python Script
08/30/2013 - Metin2 - 1 Replies
Hi Shop buy bot python script ?? link plizz
[HELP]Shop Buy Bot Python script :((
07/16/2013 - Metin2 - 3 Replies
Hi Shop buy bot python script ?? shop buy auto 27803 code item ? help help
Kab python script
06/08/2011 - Dekaron - 0 Replies
So i got prety much every script 2 fork 4 me except i cant make a script in python castle. My question is does anyone have any working python scripts or any idea how 2 make one.
Script for Python to Tomb
03/09/2009 - Dekaron - 4 Replies
Anyoen got the script for going from python to tomb I already have the adresses/



All times are GMT +2. The time now is 21:37.


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.