Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 22:34

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

Advertisement



[Tutorial] Using ZeroSignal's Python scripts for editing SData files and not only

Discussion on [Tutorial] Using ZeroSignal's Python scripts for editing SData files and not only within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,451
[Tutorial] Using ZeroSignal's Python scripts for editing SData files and not only

Hello everyone,

I see some posts from people that claim not to be able to edit the .SData files in .csv, which means using ZeroSignal's Python scripts for unpacking them and opening them in a .csv editor.

This tutorial is not rocket science, it is basic knowledge, and I hope that there won't be any questions for anybody after reading this whole post.

What can be edited in .csv ? With this method you can edit .SData files, .svmap files, .MLT files and .ITM files.

Let's begin. First of all, you need to download Python. There's newer versions, but I've been always using 2.6 and never had any problems with it. You can download any version from .
The installation is pretty straight forward. The default installation root location is C:\, don't change it, you'll see later why.

Next you need to download the Python Scripts .

Copy the contents of the .zip file in the Python folder, basically C:\Python<version>, in my case it's C:\Python26. Your Python folder must contain both Python default files and the files from the shay_data_edit_0-1c.zip file.

Before we proceed to the actual file unpacking, you should make sure you have downloaded and installed , which is a great, freeware program that can safely open, edit and save .csv files.

You should also download the , which can both encrypt and decrypt the ep5 and lower .SData files, by dragging the respective .SData file on them.
For an easier future, place both files in both Input\SData and Output\SData folders. This way you can encrypt/decrypt .SData files right before unpacking/right after packing them.

We're done with getting everything ready to work, now let's do the actual work.
Paste an Item.SData file in the Input\SData folder. If it's encrypted, simply drag it over ShaiyaSdataToolDecrypt.exe, delete the current Item.SData and rename the Item.SData.decrypted to Item.SData.
Open the Command Prompt(Win + R, cmd, Enter), and type in the command to move to the Python directory, as follows : CD "C:\Python26". Again, this is my case, it depends on where you installed Python. I recommended you use the default location so you don't have to type something like CD "C:\Hi\My\Name\Is\Python\Python26", this is useless.

On the following line, you type a next command, which calls the Python script responsible for unpacking the Item.SData, as follows : Item_csv.
You can go to Output\SData and find a new file, named Item.complete.csv. Open it in OpenOffice, and select the value delimiter as comma ONLY, no spaces, no semicolon, just comma.

After you're done editing the .csv file, you can pack it using the following command : Item_sdata.
You will see a new file in the Output\SData folder, named Item.SData, which is decrypted by default.

Below you have the explanation given by ZeroSignal in his release thread. There are people who didn't understand his explanation, but I hope after my detailed one, you will understand how simple it is by reading ZeroSignal's guide.

Enjoy !
nubness is offline  
Thanks
40 Users
Old 11/23/2013, 17:36   #2
 
Shànks♠'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,777
Received Thanks: 686
Any help plz I can't convert the Item.SData to .csv file . I done everything step by step but nothing...
Shànks♠ is offline  
Old 11/23/2013, 19:47   #3
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,451
Are you using an Item.SData that Shaiya Studio cannot read ?
nubness is offline  
Old 11/24/2013, 12:02   #4
 
Shànks♠'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,777
Received Thanks: 686
yup
Shànks♠ is offline  
Old 11/24/2013, 14:36   #5
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,451
Sorry to disappoint, you'd have to modify the scripts if you want this to work for you, there's new columns in the new Item.SData.
nubness is offline  
Old 11/24/2013, 15:55   #6
 
Shànks♠'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,777
Received Thanks: 686
What should I modify on the scripts then?
Shànks♠ is offline  
Old 11/24/2013, 16:12   #7
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,451
Relax, you cannot do it. Just stop trying to make ep6 servers, they'll never be fully functional anyway.
nubness is offline  
Thanks
1 User
Old 11/24/2013, 16:43   #8
 
Shànks♠'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,777
Received Thanks: 686
nah I'm not trying to make an ep6 just an test ep4.5
Shànks♠ is offline  
Old 11/24/2013, 16:56   #9
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,451
Then use ep5.4 .SData's.
nubness is offline  
Old 12/24/2013, 15:05   #10
 
AriezOMG's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 552
Received Thanks: 1,003
I read through this to try and find a bit of info, and I feel that the discouragement was unnecessary. Just because he doesn't know how doesn't mean he can't, just takes a bit of python research. This is actually a very useful tutorial, especially for someone trying to create files for future developers.
AriezOMG is offline  
Thanks
1 User
Old 12/24/2013, 15:16   #11
 
Shànks♠'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,777
Received Thanks: 686
I found the problem why I couldnt open the SData(Encrypt,decrypt and somehow the file crashed). I used another .SData but I think my python has a problem. I tried again with another version of python but nothing.If anyone would like to help abit!
Shànks♠ is offline  
Old 12/24/2013, 15:38   #12
 
AriezOMG's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 552
Received Thanks: 1,003
Well, from what I was told in the past, after shstudio has tampered with an sdata file, there's no going back to CSV. Perhaps that has something to do with it?
AriezOMG is offline  
Old 12/24/2013, 19:31   #13
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,451
Quote:
Originally Posted by AriezOMG View Post
Well, from what I was told in the past, after shstudio has tampered with an sdata file, there's no going back to CSV. Perhaps that has something to do with it?
Shaiya Studio works just fine with most files, except for those which are composed out of multiple files (my own observation), those being the NpcQuest.SData and the .svmap files. In rest, it never caused me any trouble with any other files.
nubness is offline  
Thanks
3 Users
Old 02/20/2014, 16:16   #14
 
elite*gold: 0
Join Date: Mar 2011
Posts: 51
Received Thanks: 30
ok so ive followed a number of tutorials on how to set python up and all i ever get is python is not recognized as an internal or external command
andya78 is offline  
Old 03/03/2014, 16:50   #15
 
[Admin]ßІί†ž's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 157
Received Thanks: 466
You must create a path environment variable in windows first.
[Admin]ßІί†ž is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Shaiya ep5 Skill.Sdata Editing
08/25/2013 - Shaiya PServer Guides & Releases - 5 Replies
Hello All. I am creating this post in regard to when one is editing a Skill.Sdata from an ep5 client. I am attempting to create and release an ep5 Skill.Sdata where skills are customized in such a way that for example: A warrior/fighter could use any and all skills no matter what type of weapon was being used. For this, I am requesting a bit of insight into what each of the categories in the Skill.Sdata labeled NeedWeapon1-15 represent. When I attempt to place all "1"s in the categories for...
Skills.SData editing Infos
07/23/2012 - Shaiya Private Server - 0 Replies
I never used shStudio but i checked the Thread and it seems to be very limited about Skillediting and today i found a old file of me where i researched infos of the Skills.SData file and i thought i could just share it. The Information inside the brackets tell the Size in Bytes. If you have Informations that are missing in my Post, feel free to share so we might be able to collect the Full Informations of that file.
[REQUEST]XXX.SDATA decryptor for episode 5 files+ npcquest.sdata
06/13/2012 - Shaiya - 1 Replies
Can somebody help me with a SDATA decryptor and a episode 5 npcquest.sdata that is decrypted?
[GUIDE] Editing Item.SData in Hex
06/07/2012 - Shaiya PServer Guides & Releases - 42 Replies
I am releasing this to help in knowlege of Item.SData sorry for my bad english I use the program Hex Workshop Hex Editor. http://img682.imageshack.us/img682/2929/editandoi temsdata.jpg



All times are GMT +2. The time now is 22:34.


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.