niacdoial / blemd

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

Can't Import The Wind Waker cl.bdl with animations #66

Closed Captainkittyca2 closed 1 year ago

Captainkittyca2 commented 1 year ago

I'm using blender 3.4+ and everytime i import toon link (cl.bdl) with even just one animation, it crahses blender. I haven't tried importing it without an animation, but I don't want to do that because I already know how to do that via a separate tool. I'm using this tool to get animations.

niacdoial commented 1 year ago

blender crash? that sounds awful, it should be able to handle a plugin failure…

Do you know how to start blender in a terminal, so you could show what it prints before/during this crash?

Captainkittyca2 commented 1 year ago

@niacdoial Well by crash I mean blender freezes, for far longer than 5 or 10 minutes. For Twilight Princess, it works fine as long as i have 20 or less bck animations stored in the bck folder. But for The Wind Waker, even if I just have one animation in bck folder, it doesn't work. image

niacdoial commented 1 year ago

hm… that is weird, and not for a reason that's linked to this problem.

can you change line 71 in __init__.py from "if not logging.root.handlers:" to "if True:" and try again, please? The problem should still be there, but the log should be far longer.

Captainkittyca2 commented 1 year ago

I changed it but the log still looks the same in cmd so far. Do i have to wait 5 minutes or something for it to expand?

Captainkittyca2 commented 1 year ago

image

niacdoial commented 1 year ago

no, the log it should be different. At least with a "load: " line near the start …oh, you should restart blender between tests. f8-reloading often doesn't work, I learned that the hard way.

and yes, that is the change I was describing.

Captainkittyca2 commented 1 year ago

i did restart blender and the cmd, i even tried again restarting after you mentioned it, still nothing changed afaik. By restart I mean, i closed blender and cmd windows by clicking the X button at top right of the window for both, then i launched the cmd and blender again and tried it. Same result: image

niacdoial commented 1 year ago

wait. …I just saw the lines that start with the date and time. nevermind, all of that was on me.

Captainkittyca2 commented 1 year ago

@niacdoial Can I send you the cl.bdl and onje of the bck files so you could test it?

niacdoial commented 1 year ago

I'ld rather not? besides, from the log I see, I might know where the problem is. just to confirm, can you do these other changes, please ?

@ common.py, Line 111
+    log.info("pre, running (%s)", exefile)
    temp = subprocess.run([exefile] + args, shell=False)
+    log.info("post")

It should just add one or two messages to the log (in theory, just the "pre" one) and show the path "D:\Program Files\Blender\3.4\scripts\addons\blemd\bmdview.exe" thanks!

Captainkittyca2 commented 1 year ago

image Like this?

niacdoial commented 1 year ago

yep, like this. Thanks!

Captainkittyca2 commented 1 year ago

sorry, it still doesn't expand, and i did exit and then launch blender again image

niacdoial commented 1 year ago

even at the end, after tex1? …very weird.

Captainkittyca2 commented 1 year ago

yeah

Captainkittyca2 commented 1 year ago

windwakeranim.zip

Captainkittyca2 commented 1 year ago

this has the setup i used for the bmd and bck

windwakeranim.zip

Captainkittyca2 commented 1 year ago

bdl*

niacdoial commented 1 year ago

…ok, I'll see what I can do. (maybe not right now, I have a few things to do in parallel)

Captainkittyca2 commented 1 year ago

Thanks! and also thanks for making a tool that can make bck animations directly work in blender I've been looking for something like this for perhaps over a year now lel.

Here's me messing around with Twilight Princess stuff :) image

https://user-images.githubusercontent.com/68467449/212485724-65e24155-9a1b-4060-9215-04bbe117cd55.mp4

niacdoial commented 1 year ago

I can't read that video, so I'll assume it represents someone cheering. and no problem!