shay data edit (0-1b)

07/21/2010 17:02 ZeroSignal#1
Released under GNU GENERAL PUBLIC LICENSE Version 3
DOWNLOAD:
[Only registered and activated users can see links. Click Here To Register...] - (Latest)
[Only registered and activated users can see links. Click Here To Register...] - (Old)

REQUIREMENTS:
Tested on Python 2.6 ([Only registered and activated users can see links. Click Here To Register...])
Windows Platform (Not sure if dependent)

SDATA EDITING:
SData editing is straight-forward. Place the unencrypted SData file in
".\Input\SData\*.SData"

Click on the corresponding batch command from the programs root folder matching
to the file you want to create.

The extract files will be contained in
".\Output\SData\*"

Example:
To make Cash.SData into a comma seperated file run "Cash_csv.bat".
Edit the "*.csv" with a CSV Editor (I used OpenOffice Calc).
To create it back into a SData file run "Cash_sdata.bat".


MAP EDITING:
Map extracting and combining requires you use the batch commands from command
prompt. This is because it accepts 1 parameter that is the map number.

Place the SVMAP file in
".\Input\Map\*.svmap"

Open command prompt and navigate to the programs root folder, then enter the
command along with the Map index you want to extract.

It will extract the file into several files located in
".\Output\Map\[Map_number]\*"

Example:
To extract 0.svmap into its respective CSV files in command prompt enter:
"Map_csv 0"
To re-combine it back into svmap type:
"Map_svmap 0"


MLT EDITING:
MLT extracting and combining requires you use the batch commands from command prompt.
This is because it accepts 1 parameter that is the MLT file name.

Place the MLT file in
".\Input\MLT\*.mlt"

Open command prompt and navigate to the programs root folder, then enter the
command along with the filename you want to extract.

Example:
To extract vimm_hair.MLT into its respective CSV files in command prompt enter:
"mlt_csv vimm_hair"
To re-combine it back into svmap type:
"mlt_mlt vimm_hair"


ITM EDITING:
ITM extracting and combining requires you use the batch commands from command prompt.
This is because it accepts 1 parameter that is the ITM file name.

Place the MLT file in
".\Input\ITM\*.itm"

Open command prompt and navigate to the programs root folder, then enter the
command along with the filename you want to extract.

Example:
To extract 02.ITM into its respective CSV files in command prompt enter:
"itm_csv 02"
To re-combine it back into svmap type:
"itm_itm 02"


CHANGELOG:
Code:
2010-10-31 ZeroSignal v0-1c
	* Added support for ITM File Extraction.
	* Added much better Error Handling.
	* Added some Util functions pack_field, unpack_field.
Please report all bugs, for general support ask someone else or learn the source code

Credits:
EarthCrush - Making an alpha ITM file.
All other Contributors.
07/23/2010 06:21 shinru2004#2
you should be more specific with instruction... i installed python and i know when i click the batch file it didnt just start up
07/23/2010 18:11 shinru2004#3
in the batch files change the command from python to C:\Python2x\Python.exe and then run from cmd line works fine then... otherwise you get "python is not recognized as an internal or external command"... and i have python set as a system variable sooo..
07/24/2010 05:17 ShaiyaEternity#4
What this f0r :)
07/25/2010 00:28 shinru2004#5
it extracts the decrypted files and the maps so you can edit them in csv format
07/25/2010 18:31 ProfNerwosol#6
ZeroSignal ... please PM me. I am curious as to what kind of problems you are having with ReqStr - Reqluc fields. I might be able to assist.
07/29/2010 03:50 mabuan#7
I have a problem when running it. Please see below:

Creating ./Output/SData/Skill.complete.csv
Traceback <most recent call last>:
File "scr\SData.py", line 113, in <module>
main<sys.argv[1:]>
File "scr\SData.py", line 102, in main
result = SDataItems[SdataName]<outFmt>
File "c:\Python27\scr\Skill.py", line 123, in MainSkill
return ExtractSkill<"Skill", outFmt>
File "c:\Python27\scr\Skill.py", line 191, in ExtractSkill
rec = unpack_fields<input, skill_types, {}>
File "c:\Python27\scr\Utils.py", line 49, in unpack_fields
rec[ field[0]] = input.read<len>
MemoryError
Press any key to continue ...


Please tell me how to fix it.
07/29/2010 18:26 shinru2004#8
is the Skill.sdata decrypted? if not it wont work
07/30/2010 03:13 mabuan#9
Quote:
Originally Posted by shinru2004 View Post
is the Skill.sdata decrypted? if not it wont work
Yes! I put Skill.SData into Input\SData folder and run file Skill_csv.bat then I saw it.
07/30/2010 04:14 shinru2004#10
you have to us command prompt... run CMD type CD C:\where ever this folder is then hit enter then type Item_csv and it will work.
07/30/2010 05:22 mabuan#11
Quote:
Originally Posted by shinru2004 View Post
you have to us command prompt... run CMD type CD C:\where ever this folder is then hit enter then type Item_csv and it will work.
I've extracted file shay_data_edit_0-1b.zip into C:\Python27 and I run in CMD as you said. I've used file Skill.SData by using Shaiya Data file Tool (Lilprohacker) to extract from Data.sah. When I ran in CMD, it didn't work. But in the same way, I used the Item.SData in the Decrypted pack that Lilprohacker shared, then it worked.

Sorry for my bad English!
07/30/2010 15:21 lilprohacker#12
open the sdata file in a hex editor and look at the first few bytes. if it begins with "000" then it is encrypted which means that this program wont work on it.
07/31/2010 03:20 mabuan#13
Quote:
Originally Posted by lilprohacker View Post
open the sdata file in a hex editor and look at the first few bytes. if it begins with "000" then it is encrypted which means that this program wont work on it.
Yes, it is encrypted. I'm not developer, so I'm waiting for your share or shinru2004's share.:)
08/27/2010 14:01 jamessimpler#14
Thanks ZeroSignal... its awesome and thank you very much. As always your contribution to the community is very much appreciated.

Just wanting to ask, I managed to get all the sdata files output, all except one "NpcQuest.SData". According to the program, it have been successfully extracted out but when i checked on the output folder, the files arent there. Anything that i did wrong? I check all folder but couldnt find the files. Any idea why?

Quote:
Originally Posted by ZeroSignal View Post
Released under GNU GENERAL PUBLIC LICENSE Version 3
DOWNLOAD:
[Only registered and activated users can see links. Click Here To Register...]

REQUIREMENTS:
Tested on Python 2.6 ([Only registered and activated users can see links. Click Here To Register...])
Windows Platform (Not sure if dependent)

SDATA EDITING:
SData editing is straight-forward. Place the unencrypted SData file in
".\Input\SData\*.SData"

Click on the corresponding batch command from the programs root folder matching
to the file you want to create.

The extract files will be contained in
".\Output\SData\*"

Example:
To make Cash.SData into a comma seperated file run "Cash_csv.bat".
Edit the "*.csv" with a CSV Editor (I used OpenOffice Calc).
To create it back into a SData file run "Cash_sdata.bat".


MAP EDITING:
Map extracting and combining requires you use the batch commands from command
prompt. This is because it accepts 1 parameter that is the map number.

Place the SVMAP file in
".\Input\Map\*.svmap"

Open command prompt and navigate to the programs root folder, then enter the
command along with the Map index you want to extract.

It will extract the file into several files located in
".\Output\Map\[Map_number]\*"

Example:
To extract 0.svmap into its respective CSV files in command prompt enter:
"Map_csv 0"
To re-combine it back into svmap type:
"Map_svmap 0"


MLT EDITING:
Map extracting and combining requires you use the batch commands from command prompt.
This is because it accepts 1 parameter that is the MLT file name.

Place the MLT file in
".\Input\MLT\*.mlt"

Open command prompt and navigate to the programs root folder, then enter the
command along with the filename you want to extract.

Example:
To extract vimm_hair.MLT into its respective CSV files in command prompt enter:
"mlt_csv vimm_hair"
To re-combine it back into svmap type:
"mlt_mlt vimm_hair"


Please report all bugs, for general support ask someone else or learn the source code
08/27/2010 18:47 shinru2004#15
that script doesnt work obviously and dont expect Zerosignal to help.. he hasnt contributed since ep3