nORbDragon / e7vault-issues

E7 Vault Issue Tracker
https://e7vau.lt
10 stars 0 forks source link

[portraits] How to import models into spine2d #19

Closed StayFantasy closed 1 year ago

StayFantasy commented 1 year ago

Hello I have a problem. I dwonloaded zklm's file and tried to import the data into the spine2d, but there was a problem, information such as :

ERROR: Error importing skeleton data file: /Users/e7herder/c1071/c1071.json
Please be sure to choose a valid skeleton JSON or binary file.
[error] Error reading file: /Users/e7herder/c1071/c1071.json
   at s.VfM._(_:178)
   at s.oIu._(_:323)
   at s.oIu.F(_:286)
   at s.KKJ._(_:1062)
   at s.oIu.C(_:279)
   at s.OOM.F(_:362)
   at s.GcY._(_:91)
   at s.gBm._(_:28)
   at s.EPy._(_:188)
   at s.EPy._(_:158)
   at com.badlogic.gdx.scenes.scene2d.ui.Button.F(_:125)
   at s.DGf._(_:93)
   at s.cbS._(_:88)
   at s.pMX._(_:71)
   at s.VgF.F(_:354)
   at s.AUx.F(_:124)
   at s.oXJ.F(_:75)
   at s.GAR._(_:75)
   at s.XJm._(_:117)
   at s.sZx.F(_:228)
   at s.BQU.F(_:138)
   at s.LMA.run(_:198)
   <events>
Cause: s.oMi: Error reading attachment: Layer 100, skin: default
   at s.XXQ._(_:312)
   at s.gxz._(_:118)
   at s.VfM._(_:150) ...
Cause: [arg] No enum constant s.Bsf.skinnedmesh
   at java.lang.Enum.valueOf(Unknown Source)
   at s.Bsf.valueOf(_:32)
   at s.XXQ._(_:370)
   at s.XXQ._(_:309) ...

I also tried to import json with model data,but there will be an error,like this:

ERROR: Error importing skeleton data file: /Users/e7herder/melissa/melissa.json
Please be sure to choose a valid skeleton JSON or binary file.
[error] Error reading file: /Users/e7herder/melissa/melissa.json
   at s.VfM._(_:178)
   at s.oIu._(_:323)
   at s.oIu.F(_:286)
   at s.KKJ._(_:1062)
   at s.oIu.C(_:279)
   at s.OOM.F(_:362)
   at s.GcY._(_:91)
   at s.gBm._(_:28)
   at s.EPy._(_:188)
   at s.EPy._(_:158)
   at com.badlogic.gdx.scenes.scene2d.ui.Button.F(_:125)
   at s.DGf._(_:93)
   at s.cbS._(_:88)
   at s.pMX._(_:71)
   at s.VgF.F(_:354)
   at s.AUx.F(_:124)
   at s.oXJ.F(_:75)
   at s.GAR._(_:75)
   at s.XJm._(_:117)
   at s.sZx.F(_:228)
   at s.BQU.F(_:138)
   at s.LMA.run(_:198)
   <events>
Cause: s.oMi: Error reading attachment: hair, skin: default
   at s.XXQ._(_:312)
   at s.gxz._(_:118)
   at s.VfM._(_:150) ...
Cause: [aioob] Index 50 out of bounds for length 50
   at s.XXQ._(_:510)
   at s.XXQ._(_:424)
   at s.XXQ._(_:309) ...

Could you give me some advice? Thanks.

nORbDragon commented 1 year ago

spine2d? You found spine v2.1.27? Or it is name for some modules for engines like unity? Or it is just other name for Spine v.3.x/v.4.x?

If you have Spine v2.1.27, I would "not mind" receiving it as a gift. =) It would be useful for me for my games and perversions.

Files from zklm's e7herder in something like "custom" format, does not fully comply with the official format for spine v2.1.27.

Some info about portaits and models (combat sprites) in this game:

zklm dropped his work on e7herder when epic7 was moved from spine v.2.1.27 to a new format (v.3.x). All portraits on e7herder was created in spine v2.1.27, but saved in a "custom" format that is partially different from the original.

At the moment, I spend my free time on a full-fledged converter from Spine v2.1.27 to Spine v3.8.75. I'm looking for a way to imitate the removed functionality (FlipX/FlipY). To make it easier to deal with the game's combat sprites using Spine v3.x, and not waste my time catching all the bugs of the old engine from e7herder. Yes, there were bugs.

My early work on combat sprites (with glitches and bugs, spine v.2.1.27) - https://www.norbdragon.com/e7vault/model-viewer.html?id=ras

StayFantasy commented 1 year ago

Oh my god, this model viewer is very good!!

Thanks for your reply. My spine2d software was bought from the official website, it cost 329 USD, and then you buy the professional version, you can choose the version you want to open like this spine2d_Opening

If I use version 2.1.27 there is no detailed error message, like this spine2d_2_1_27

I wanted to directly import the json file and it should be displayed on the software, but it seems that I can't do this. Maybe I should make the pictures on the portrait viewer work in the spine2d software.

Hope my information can help you.

nORbDragon commented 1 year ago

My spine2d software

So, it is just Spine. =) I had doubts, maybe there is some other program with a similar name.

I have license for Spine too, but not "pro". My story about this - https://old.reddit.com/r/EpicSeven/comments/rfpz3x/one_common_decoder_day/

Hmm. But you have license for "pro", so you can try to import... Try import this (in spine v2.1.27 mode) - c1071.zip

I have been looking for a long time for someone who has a professional edition (license, not torrent-edition) who could try to import my work by switching to version 2.1.27.

nORbDragon commented 1 year ago

If you don't know how to unpack textures, use this archive - c1071-w-images.zip

StayFantasy commented 1 year ago

Hello I use [c1071-w-images.zip] this file,and result like this: 螢幕快照 2022-11-11 下午9 33 04 The error message shows that something is missing,and the result after importing the image. like this: 螢幕快照 2022-11-11 下午9 33 34

add face picture 螢幕快照 2022-11-11 下午10 17 52

nORbDragon commented 1 year ago

Nonessential not checked when exporting ... <- this is normal warning when you import from json-file.

What we have missing on your second screenshot: it is links "slot" <-> "image". Something wrong. Well, even that result is not bad for me. Json-file is IMPORTED. Finaly.

I will contact with you in next monday with new variant for spine v2.1.27.

This is how she must be seen in spine (I still working on converter spine v2 > spine v3):

Screenshot 2022-11-11 171611

BTW, open in right panel root > center > bone156 > leg_l_02. I'm wondering what it shows in the slot instead of the sprite attached to this slot. =)

StayFantasy commented 1 year ago

root > center > bone156 > leg_l_02 , Is it like this? 螢幕快照 2022-11-11 下午10 29 24

nORbDragon commented 1 year ago

Err... Image for leg is here. Hmm.

Can you close "Outline" window? I need to see ALL little windows on screen's bottom.

StayFantasy commented 1 year ago

螢幕快照 2022-11-11 下午10 37 26

edit mesh mode 螢幕快照 2022-11-12 下午3 01 06

nORbDragon commented 1 year ago

Strange. Need to think about that and compare examples from spine v2 and my json-file. What I missed.

I will contact you in next monday.

StayFantasy commented 1 year ago

OK, thank you for your help.

nORbDragon commented 1 year ago

Try this - c1071-json.zip, replace old json-file with this file.

Little changes in leg (leg_l_02). Any changes there? Screenshot please. =)

StayFantasy commented 1 year ago

result : 螢幕快照 2022-11-14 下午5 53 09

edit mesh mode 螢幕快照 2022-11-14 下午5 59 40

It looks like the mesh is too small to match the picture.

nORbDragon commented 1 year ago

When you import, Spine doesn't ask you any questions? Like this:

Screenshot 2022-11-14 133835

StayFantasy commented 1 year ago

NO. my message is like this 201351117-43caaee9-e66b-45bd-9f35-5a3cbd92b7c8 (1)

Maybe the spine 2.1.27 version does not have such a function

nORbDragon commented 1 year ago

Wait. You have two sceletons? "c1071" and "sceleton". How you do import?

I import by "menu" > "Import Data..." > select json-file + check on "New project" > "Import" button > "Discard changes" > ok for "Import warning" > no for "Images Resized"

Screenshot 2022-11-14 141709 Screenshot 2022-11-14 141733 Screenshot 2022-11-14 141750 Screenshot 2022-11-14 141811 Screenshot 2022-11-14 141827 Screenshot 2022-11-14 141842 Screenshot 2022-11-14 142625

How you can see, I don't have two sceletons on right panel, only one - c1071.

How I can see on your screens, you have two sceletons. And "Images" was connected to "sceleton", not to "c1071" sceleton. Something wrong there.

Can you just delete "sceleton" and import again?

StayFantasy commented 1 year ago

In the video this is how I import the file https://drive.google.com/file/d/1I2z3dumg7NTcXvJZO__iDJkE4FHsN5P2/view?usp=sharing

nORbDragon commented 1 year ago

Hmm. MacOS? Maybe this variant will work - c1071-json-02.zip

I expect it should now automatically pick up the images folder. No need to manually specify it.

StayFantasy commented 1 year ago

I use macOS. the result still doesn't work 螢幕快照 2022-11-14 下午8 31 40

nORbDragon commented 1 year ago

But Images folder picked up automatically now? Or not?

Okay. Let's try from the other end.

Two versions with a leg. The rest was thrown out of the file so as not to interfere. Let's get on the leg.

It is possible that the second variant is not imported, will give an error. This will also be useful information for me.

c1071-leg-01.zip / c1071-leg-02.zip

nORbDragon commented 1 year ago

And variant 3, try this too: c1071-leg-03.zip