Bekko

great !
Bekko
  • Сообщения: 19

warmanw

Hi Guys,

We are trying to update spine runtimes and new codes throwing exception while reading old data

Error causes when missing vertexCount for bounding box in JSON file. I assume it will be easy to add in new codes to skip if no "vertexCount"
Аватара пользователя
warmanw

Kickstarter Backer
  • Сообщения: 64

Nate

Please read the first post. Keep your editor and runtime versions in sync.
Аватара пользователя
Nate

Nate
  • Сообщения: 8749

chiuanwei

thanks !!
i got importer error out of rang in unity with version 3.3.05
i back to 3.2.01 and have a try.
chiuanwei

Kickstarter Backer
  • Сообщения: 3

Bekko

hey @nate, thx for spine-unity
the last thing we need is the spine-csharp update, cheers
Bekko
  • Сообщения: 19

badlogic

Hey, Mario here, your friendly runtime elf. You can check out the csharp-update-3.3.0 branch on the runtime github repository GitHub - EsotericSoftware/spine-runtimes at csharp-update-3.3.0

Should be ready for general consumption tomorrow. spine-csharp is fully updated, spine-unity is currently being touched by Pharan.
Аватара пользователя
badlogic

Mario
  • Сообщения: 1686

gen2

Hi, what is the usual period for the runtimes to catch up with the editor? Specifically cocos2d-x.

Thanks
gen2
  • Сообщения: 1

badlogic

The spine-c runtime update is in progress, it should be done at the beginning of next week.
Аватара пользователя
badlogic

Mario
  • Сообщения: 1686

DoobyDude

Sorry to bump this so late, but I have a question.

Do the latest versions of Spine allow you to now pick any previous version to rollback to?

I remember a while ago it was the case that you could not rollback unless you had previously had that version installed and it was backed up the updates folder. Also I remember something about updating to a new launcher meant you also could not go back to older versions.

Could anyone clarify please?
DoobyDude
  • Сообщения: 111

Pharan

The current launcher allows you to download and rollback all the way back to 2.1.27. You don't need the previous version installed to do that.

There is a known issue where it crashes on launch the first time you rollback to 2.1.27 but it will run normally after that.
Аватара пользователя
Pharan
  • Сообщения: 5366

DoobyDude

Pharan писал(а):The current launcher allows you to download and rollback all the way back to 2.1.27. You don't need the previous version installed to do that.

There is a known issue where it crashes on launch the first time you rollback to 2.1.27 but it will run normally after that.
Thanks for the reply Pharan. very helpful!

Do you know if it is possible to go back beyond 2.1.27 if you have the older original update files currently backed up and copy them over to the correct place?
DoobyDude
  • Сообщения: 111

retropunk

Hey guys, I have a series of animations that were created with version 2.1.27 for Starling
With the latest Spine version (3.4?) could I still roll back to 2.1.27 and then carefully port each animation to the latest Spine version?
Or maybe you could make a recommendation on upgrading my animations so I don't put myself in a difficult position with the latest Starling build.
spine-version.png


Thanks for the help
Patrick
У вас нет необходимых прав для просмотра вложений в этом сообщении.
retropunk
  • Сообщения: 46

Shiu

@retropunk

The best thing you can do is first make a backup if your project files. Since when you open your projects with the latest version of Spine and save you will no longer be able to open them with Spine 2.1.27. Most of your animations should be intact, however please note that FlipX/Y keys are no longer available. Instead flipping is achieved by scaling negatively on either X or Y.
As long as you remember to make a backup of your 2.1.27 project files before saving again with the latest version you will not find yourself in a position where you are unable to recover animation data.

I hope this helps! :)
Аватара пользователя
Shiu

Shiu
  • Сообщения: 2302

retropunk

oh I see...ok thanks. I'll be sure to have my backups.
Thanks Shiu!
retropunk
  • Сообщения: 46

Wedrownik

Sorry but I have no clue how to run JSON rollback :/
I downloaded Skeleton Viewer, imported there JSON from newer Spine version and no options are there to save it, change or so.
Similar, you gave link to the JSON roolback (spine-runtimes/JsonRollback.java at master) but all I can find is a wall of lines. Dont really know what to do with this to run JSON rollback. All is clear to the point: "Run the JsonRollback tool." because cant download it or run as exe or JAR like skeleton viewer.

I would be grateful for help ! :)
Аватара пользователя
Wedrownik
  • Сообщения: 127

Nate

The rollback tool is inside Skeleton Viewer. Instructions from first post in this thread, run like this:
java -cp skeletonViewer.jar com.esotericsoftware.spine.JsonRollback input.json output.json
Though I'm not sure it's what you want, as it is for going from 3.4 to an older version. If you want to go from 3.5 to 3.4, you can probably just export to JSON and import data into 3.4.
Аватара пользователя
Nate

Nate
  • Сообщения: 8749

Wedrownik

3.5 export, 3.4 import works, thank you so much for help :)

Back to my problem with run JSON rollback in the Skeleton Viewer, it was that I dont know how to run this. "Run" for me is, speaking colloquially, just double click on the icon and run like all applications. Anyways, like I wrote above, your idea works
Аватара пользователя
Wedrownik
  • Сообщения: 127

NTTP

Hey Guys I could really use some help.
I updated to Spine version 3.5.3 not realizing that the developers I work with were using an older runtime (3.4.00)
I now need to import all these animations back to version 3.4.00 but I am facing a problem and I could really use some advice.
When I use a JSON exported from version 3.5.3 and try to import it to version 3.4.0 the animations come out rather bad. There are some huge glitches that appear and I am not sure how we can solve this problem.
I tried to use the Skeleton viewer because I wanted to see if its roll back tool would be of any help however the Skeleton viewer doesn't run on my machine for some reason. It crashes on start up and I can't think of any solutions....I have downloaded java on my machine but I can't think of where I am going wrong or what I can do differently. PLEASE any advice would be really appreciated right now
NTTP
  • Сообщения: 14

Nate

If the 3.5 JSON imports successfully into 3.4, then that is probably as good as it gets. The rollback tool was from 3.4 to 3.3, and even then it just makes changes to the JSON structure, it doesn't manipulate the actual animation data.

I'm not sure why it looks wrong in 3.4. Unfortunately you will probably need to choose whether to fix it up in 3.4, or get the developers to move to 3.5.
Аватара пользователя
Nate

Nate
  • Сообщения: 8749

NTTP

Thanks so much for taking the time to reply to me.
I have a few observations. Out of my 22 spine projects. nearly 13 were exported with minimal issues however 8 of them have a lot of glitches.
Speaking of these 8 files that have glitches in them, sometimes when I copy paste the keyframes into a new animation the glitches disappear and the animation returns to how it was in version 3.5.3. However in some cases copying and pasting these keyframes results in an even weirder animation...
Also in the animations that have glitches I can't seem to manually change the key frames. For example if i want to move an ik constraints position it just doesn't add a key frame and even though auto keyframing is ON and when I move to the next frame and return back to the previous one the changes that I make disappear.

My hope lies in the skeleton viewer now and the roll back tool do you have any idea if others have faced this problem with the skeleton viewer, i.e crashing on startup i mean and is there a way I can open it to use the roll back tool?
NTTP
  • Сообщения: 14

Nate

If Skeleton Viewer crashes, show the log.

As I said, if the JSON imported, the rollback tool won't help. You could post or email your 3.5 JSON and we can look at what happens when it is imported into 3.4. contact@esotericsoftware.com
Аватара пользователя
Nate

Nate
  • Сообщения: 8749

NTTP

I've copy pasted the log. I am an animator so I don't know much about command prompt or if this is what you were asking for. And I shall send an email shortly thanks again

C:\Users\DELL>cd downloads

C:\Users\DELL\Downloads>java -jar skeletonviewer.jar
com.badlogic.gdx.utils.SerializationException: Error parsing file: spineboy/spin
eboy.json
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:77)
at com.esotericsoftware.spine.SkeletonJson.readSkeletonData(SkeletonJson
.java:111)
at com.esotericsoftware.spine.SkeletonViewer.loadSkeleton(SkeletonViewer
.java:165)
at com.esotericsoftware.spine.SkeletonViewer.create(SkeletonViewer.java:
121)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplic
ation.java:149)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplicati
on.java:126)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: spineboy\
spineboy.json (Internal)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:136)
at com.badlogic.gdx.files.FileHandle.reader(FileHandle.java:163)
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:75)
... 5 more
java.lang.NullPointerException
at com.esotericsoftware.spine.SkeletonViewer$UI.render(SkeletonViewer.ja
va:706)
at com.esotericsoftware.spine.SkeletonViewer.render(SkeletonViewer.java:
312)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplic
ation.java:225)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplicati
on.java:126)

C:\Users\DELL\Downloads>

---

Nate писал(а):If Skeleton Viewer crashes, show the log.

As I said, if the JSON imported, the rollback tool won't help. You could post or email your 3.5 JSON and we can look at what happens when it is imported into 3.4. contact@esotericsoftware.com
I have posted the log in the comment above and have emailed my files to the email above. Thanks again for all your help and I would really appreciate any help I can get in regards to solving this issue.
NTTP
  • Сообщения: 14

Nate

Thanks, I've updated the Skeleton Viewer to 3.5.33, which should fix your problem. It won't help with your project files though. We'll look at those as soon as we can.
Аватара пользователя
Nate

Nate
  • Сообщения: 8749

NTTP

thanks so much for that and thank you for looking into the project files...

---

perhaps I am being a bit impatient but one small thing. I cant seem to open the json roll back tool. here is the log that I get when I try to run the command line

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\DELL>^V
'▬' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\DELL>java -cp skeletonViewer.jar com.esotericsoftware.spine.JsonRollbac
k input.json output.json
Error: Could not find or load main class com.esotericsoftware.spine.JsonRollback



C:\Users\DELL>cd downloads

C:\Users\DELL\Downloads>java -cp skeletonViewer.jar com.esotericsoftware.spine.J
sonRollback input.json output.json
Exception in thread "main" com.badlogic.gdx.utils.SerializationException: Error
reading file: input.json
at com.badlogic.gdx.utils.Json.fromJson(Json.java:702)
at com.esotericsoftware.spine.JsonRollback.main(JsonRollback.java:56)
Caused by: com.badlogic.gdx.utils.SerializationException: Error parsing file: in
put.json
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:77)
at com.badlogic.gdx.utils.Json.fromJson(Json.java:700)
... 1 more
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: input
.json (Absolute)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:144)
at com.badlogic.gdx.files.FileHandle.reader(FileHandle.java:163)
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:75)
... 2 more
Caused by: java.io.FileNotFoundException: input.json (The system cannot find the
file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:140)
... 4 more

C:\Users\DELL\Downloads>java -cp skeletonViewer.jar com.esotericsoftware.spine.J
sonRollback input.json output.json
Exception in thread "main" com.badlogic.gdx.utils.SerializationException: Error
reading file: input.json
at com.badlogic.gdx.utils.Json.fromJson(Json.java:702)
at com.esotericsoftware.spine.JsonRollback.main(JsonRollback.java:56)
Caused by: com.badlogic.gdx.utils.SerializationException: Error parsing file: in
put.json
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:77)
at com.badlogic.gdx.utils.Json.fromJson(Json.java:700)
... 1 more
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: input
.json (Absolute)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:144)
at com.badlogic.gdx.files.FileHandle.reader(FileHandle.java:163)
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:75)
... 2 more
Caused by: java.io.FileNotFoundException: input.json (The system cannot find the
file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:140)
... 4 more

C:\Users\DELL\Downloads>^A
NTTP
  • Сообщения: 14

Nate

You need to specify an input.json file that exists. However, for the third time, if your data imports into the older version of Spine, that is the best you can hope for. The JsonRollback tool will not help you because it does not fix up the data, it only changes the JSON structure so it can be imported. It's most likely that any problems you see after importing into an older version come from using features in the newer version that don't exist in the old version. No amount of changing the JSON can make the old version have these newer features.

We got your email, thanks. I imported your JSON into 3.4 and was presented a warning saying some data was lost because Nonessential was not checked when the JSON was exported. I opened your .spine file with 3.5, exported to JSON making sure to check Nonessential, and imported the JSON into 3.4. Everything looks fine.
Аватара пользователя
Nate

Nate
  • Сообщения: 8749


Вернуться в Editor