Problem converting csv to sdata

03/02/2016 10:36 Psycnosis#1
I been using zero signal's python scripts, I want to merge my current files with ep6 sdata. I can convert the sdata to csv just fine without any problems after I convert the ep6 item.sdata to ep5 with shstudio. Problem is it wont let me convert it back to sdata, I get this error.


anyone have a solution for this? i rather not type every item in 1 at a time in shstudio.
03/02/2016 13:35 wallerus#2
If you're creating new rows or editing full rows make sure that your TypeIDs are correct otherwise you will have a build error such as this.

Does Python correctly build the Ep6 Item.SData to .csv and then back into Item.SData with no changes made?
03/02/2016 18:19 castor4878#3
Quote:
Originally Posted by Psycnosis View Post
I want to merge my current files with ep6 sdata.
[...]
anyone have a solution for this? i rather not type every item in 1 at a time in shstudio.
hmm, and what about typing *1* Ctrl+C and *1* Ctrl-V (ok a bit more if items are from several sub-lists, even if all items can be selected from "all items" panel).

shStudio does support multiple-selection in (quite) all lists (it's true for all Item.sdata panels).
you can so copy the items of interest (from an extern episo 6 file)(in former format, not DB format) and then paste all these items in your items.sdata; exinsting items (with same Type/TypeID) will be updated, new ones (if any) will be created.

Edit: (in former format, not DB format)

actually it also works fine with DBxxData files; you can opeen and copy any number of rows from BinarySData/DBItemData.sdata and paste the rows to your episo 4 to 6.2 Item/Items.sdata.
You will - of course - load localised sentences from a SBItemText_xyz.sdata file before copying data.

Also note that the Copy operation places the copied data in several formats (flavors) in the clipboard, including a CVS one, you can so also simplify a csv based process.
03/06/2016 18:04 Psycnosis#4
this was the weirdest thing ever... I fixed it eventhough I have no idea how.
The CSV file was build correctly with the correct number of rows. The problem seems to be that 1 item in it did not want to work for no appearant reason. That was the Atletico Madrid football costume, nothing in that row had anything suspecious in it I renamed that 1 item and it worked. I... guess Zero signal hated Atletico? haha :p