Blender importer/exporter [1.5.1]

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
Isaac
Posts: 3089
Joined: Fri Mar 02, 2012 10:02 pm

Re: Blender importer/exporter [1.5.0]

Post by Isaac » Thu Mar 25, 2021 8:27 pm

maneus wrote:
Thu Mar 25, 2021 5:52 pm
...But thank you for your reply.
No slight intended.

You did state it in your post, (and I missed it). It's easy to miss the export format, and someone who has might even still phrase their question as you did... with or without the quotes.

As for the image, I am not at home, and do not have access to LoG1 nor above Blender v,2.82.

It's a strange bug then; probably best for minmay to investigate.

minmay
Posts: 2715
Joined: Mon Sep 23, 2013 2:24 am

Re: Blender importer/exporter [1.5.0]

Post by minmay » Thu Mar 25, 2021 8:38 pm

You're right, it doesn't work. Fortunately this seems to be a one line fix; look for this block at line 2492:

Code: Select all

        # write animation to file depending on Grimrock version
        if settings.grimrock_version == 'LOG1':
            anim.write_v1(file_object)
        else:
            anim.write_v2(file_object)
and change it to:

Code: Select all

        # write animation to file depending on Grimrock version
        if settings.grimrock_version == 'LOG1':
            anim.version = 1
            anim.write_v1(file_object)
        else:
            anim.write_v2(file_object)
Sorry for the inconvenience, I'm amazed that I never tested that in-game...



I have been working on version 1.5.1, which will have vertex color support fixed. Another issue I found is that some bones in rigged models can get their transforms messed up when exporting (fjeld_warg.fbx is a good example), which I made a lame workaround for, which will probably end up being the permanent "fix" because I can't figure out why this issue is happening...
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.

User avatar
maneus
Posts: 244
Joined: Mon Jun 17, 2013 10:42 pm
Location: Switzerland

Re: Blender importer/exporter [1.5.0]

Post by maneus » Thu Mar 25, 2021 8:54 pm

Thank you minmay for the fix. :D

Post Reply