niacdoial / blemd

BMD importer for blender (BDL format also partially supported)
GNU General Public License v3.0
32 stars 13 forks source link

Cannot import .bck files into Blender? (animation files) #9

Closed NoobisTF closed 6 years ago

NoobisTF commented 6 years ago

I am most likely doing something wrong, but I cannot seem to import the .bck files into Blender. I installed the plugin correctly, but when I go to Import and Nintendo BMD, the .bck files are not visible. I can import the .bmd files fine, though. Help? Thanks!

niacdoial commented 6 years ago

Hello! Sorry for answering this late, but .BCK files only contain animations. To import them, you need a model to apply them on (ideally the associated one).

If the "import animations" option is checked, while importing a .BMD file, blemd will look for animations that can apply to it (aka has the same number of animation bones).

Those animations (.BCK files) will be detected if they are in the "../bck/" (or similar) directory relatively to the .BMD file.

Also note that a large number of animation files in the same folder can slow the script so much that blender might freeze while importing.

I hope that was clear enough. Have a nice day!

Le 4 déc. 2017 23:04, "NoobisTF" notifications@github.com a écrit :

I am most likely doing something wrong, but I cannot seem to import the .bck files into Blender. I installed the plugin correctly, but when I go to Import and Nintendo BMD, the .bck files are not visible. I can import the .bmd files fine, though. Help? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/niacdoial/blemd/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/AQR7vcVByC42orS7k9GUFw8gdS94_UnTks5s9Gx3gaJpZM4Q1ZO3 .

NoobisTF commented 6 years ago

Yeah, I have that checked.

The thing is, some of the animations will import on some models. But some won't. The one I'm trying to get to work is the Armogohma model, but the animations don't import, and I get this error on BMD Import:

https://imgur.com/gQSa7Ph

The mesh, by the way, imports fine. Thanks!

niacdoial commented 6 years ago

Er..... Does this error only happen when importing animations? (if so, I have no idea of how it happened) Can I have the model that caused this bug, please?

Also, it seems (according to what I tested anyways) that it is normal to have, in the same folder, ".bck" files for different models. Only the animations that seem to match the model will be imported (and will play one after the other). have a nice day!

2017-12-09 17:37 GMT+01:00 NoobisTF notifications@github.com:

Yeah, I have that checked.

The thing is, some of the animations will import on some models. But some won't. The one I'm trying to get to work is the Armogohma model, but the animaions don't import, and I get this error on BMD Import:

https://imgur.com/a/AWnr5 http://url

The mesh, by the way, imports fine. Thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/niacdoial/blemd/issues/9#issuecomment-350486932, or mute the thread https://github.com/notifications/unsubscribe-auth/AQR7vf4u3d_KWrZs07YN5YEH9_UMD5uXks5s-rc8gaJpZM4Q1ZO3 .

NoobisTF commented 6 years ago

Yeah, sure, here it is:

The .arc file: https://www.dropbox.com/s/fj85u4d1vhkovvt/B_gm.arc?dl=0

The folders after decompile: https://www.dropbox.com/s/yjwky1zzva10gi5/files.rar?dl=0

Thanks!

NoobisTF commented 6 years ago

Were you able to take a look?

niacdoial commented 6 years ago

The version on my computer works. I'll have to make other tests to make sure I didn't break anything else by making one of my "recent" updates. however, I am often busy and/or without internet. I hope everything will be online in a week (because holidays). thanks for your patience.

2017-12-17 19:07 GMT+01:00 NoobisTF notifications@github.com:

Were you able to take a look?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/niacdoial/blemd/issues/9#issuecomment-352274061, or mute the thread https://github.com/notifications/unsubscribe-auth/AQR7vWJqiaP00wl_mbZsDJ5kXO1qQqgWks5tBVhhgaJpZM4Q1ZO3 .

NoobisTF commented 6 years ago

Well okay

niacdoial commented 6 years ago

Here it is! Everything I have ever tested my addon on now is successfully imported.

NoobisTF commented 6 years ago

Hm.. is there something I could have done wrong, then?

niacdoial commented 6 years ago

er.... By "here it is", I meant "new commit", with the bug fixed. Like 1 min beforehand. Sorry if I was unclear in my previous message.

NoobisTF commented 6 years ago

Ohhh my mistake. Sorry!

NoobisTF commented 6 years ago

Sorry to bug you more.. but it reads this error when I try to import a bmd: https://i.imgur.com/KFWMRGI.jpg

niacdoial commented 6 years ago

Er...... It sounds similar to a stupid bug I had a while ago. Does it still crash if you try a second time?

niacdoial commented 6 years ago

If so ,could you send me a screenshot of the console within blender (window-> toggle system console), please?

NoobisTF commented 6 years ago

Hm no, it just prints the same error everytime

niacdoial commented 6 years ago

Is it a not-windows machine? I just realised that my stupid code calls an .exe file, and passes errors silently if said call fails

NoobisTF commented 6 years ago

Nope, mine is indeed Windows.

niacdoial commented 6 years ago

welp. starts IDE In the meantime, I suggest you open the bmd file in bmdview2 (there shoud be a link in the readme), and use the "save textures" option once it is done, to put all the texture files into the "name\Textures" folder next to "name.bmd", using the naming convention seen in the last line of the error you saw. Or maybe it would be easier to browse the old versions of this addon and find one that exports images properly(https://github.com/niacdoial/blemd/commit/68045495ad00bbfd60092649c9e092cf35ba9738 probably)

NoobisTF commented 6 years ago

Oh, so the problem are the textures?

niacdoial commented 6 years ago

yup. they aren't properly exported, somehow. (the image files aren't even written...)

NoobisTF commented 6 years ago

Alright, so is it something I could be doing wrong?

niacdoial commented 6 years ago

No, the problem is entirely on my side. Remember when I mentioned that it worked on every file I ever tested it on? I forgot to delete the existing outputted image files. So it is a bug that just went through my tests. I will be working on it. But now I need to sleep. Sorry. Also, there is plenty of exe files in this repository. Just try to delete the bmdview.exe, copy one of the other EXEs and rename the copy "bmdview.exe" It might help if the problem is in there.

NoobisTF commented 6 years ago

Okay, please let me know when you have updated! Thanks!

niacdoial commented 6 years ago

It should be fixed now. Thanks for your patience!

NoobisTF commented 6 years ago

:( https://i.imgur.com/xYgHjPf.jpg

Doesn't crash on second time, and the textures are indeed in Textures/ But nothing imports and it reads that error.

niacdoial commented 6 years ago

1: It should be fixed right now. 2: Why am I this stupid? This bug would have happened in every run, and I somehow derped my tests so much it worked each time.

NoobisTF commented 6 years ago

Now I cannot even see Import BMD

NoobisTF commented 6 years ago

Nevermind, my mistake. Textures are in /Textures/, but no import. This error prints when trying: https://i.imgur.com/eNtV0oX.jpg I think its the same as last time

niacdoial commented 6 years ago

Okay. Third time is the charm?

NoobisTF commented 6 years ago

It is indeed! Works for me! Thanks!