Knight308

hi,I have a spine json file that has size 100 mb ,it can't import to spine cause it's too huge,I wonder if there is a tool or way to delete some of animations of this file to make it work?
Knight308
  • 帖子: 11

Nate

Interesting. Can you post or email (contact@esotericsoftware.com) the file? Please ZIP it first! That way we can see why it fails and maybe fix it.

You can process the JSON data to remove animations, though if you wanted to import all the animations that wouldn't help.
头像
Nate

Nate
  • 帖子: 11926

Knight308

yes here is the file

---

Nate 写道:Interesting. Can you post or email (contact@esotericsoftware.com) the file? Please ZIP it first! That way we can see why it fails and maybe fix it.

You can process the JSON data to remove animations, though if you wanted to import all the animations that wouldn't help.
I have already posted it

---

the other one
您没有权限查看这个主题的附件。
Knight308
  • 帖子: 11

Nate

The JSON is from 2.1.27, so you will need to use that version to import the data. You can run Spine with -Xmx1200M to give Spine more memory. 1200 MB is around the most Windows will give because 2.1.27 is 32-bit. Spine 4.0+ is 64-bit so can use much more memory, but won't be able to read the old 2.1.27 JSON data.

If you have the .spine files, that would be best. Worst case I guess you could use a text editor to delete some of the animations. Find the animations section, identify each block that is one animation, and delete some until you can get it imported without running out of memory.
头像
Nate

Nate
  • 帖子: 11926

Knight308

Nate 写道:The JSON is from 2.1.27, so you will need to use that version to import the data. You can run Spine with -Xmx1200M to give Spine more memory. 1200 MB is around the most Windows will give because 2.1.27 is 32-bit. Spine 4.0+ is 64-bit so can use much more memory, but won't be able to read the old 2.1.27 JSON data.

If you have the .spine files, that would be best. Worst case I guess you could use a text editor to delete some of the animations. Find the animations section, identify each block that is one animation, and delete some until you can get it imported without running out of memory.
May I ask how to use -Xmx1200M? Do I need to use command line or what? Thanks.
Knight308
  • 帖子: 11

Luke

The -Xmx1200M command is indeed a CLI parameter, you can see more about using Spine with this command here:
Command line interface - Spine User Guide: Running Spine with CLI parameters
Luke

Luke
  • 帖子: 118

Knight308

Luke 写道:The -Xmx1200M command is indeed a CLI parameter, you can see more about using Spine with this command here:
Command line interface - Spine User Guide: Running Spine with CLI parameters
thanks I tried command Spine.exe -Xmx4000m but it still give me OutOfMemoryError.
Knight308
  • 帖子: 11

Nate

Ah, sorry, it seems -Xmx is not applied to Spine editor version < 4.0. This is because those are 32-bit and the memory they can allocate isn't much more than 1024MB. Most of the time we can't pass the -Xmx value that works with 64-bit Spine version to the old version because it would too high and Spine would fail to start.

I'm afraid the data is just too big to load into the old version of Spine.
头像
Nate

Nate
  • 帖子: 11926

Knight308

Nate 写道:Ah, sorry, it seems -Xmx is not applied to Spine editor version < 4.0. This is because those are 32-bit and the memory they can allocate isn't much more than 1024MB. Most of the time we can't pass the -Xmx value that works with 64-bit Spine version to the old version because it would too high and Spine would fail to start.

I'm afraid the data is just too big to load into the old version of Spine.
Ok,thank you for the explanation, I think i can only delete some animations now.
Knight308
  • 帖子: 11


回到 中国Spine用户