The rules have been updated, read them now: Rules!

Granny .GR2 Reader plugin for Noesis

Post questions about game models here, or help out others!
Post Reply
CBack
ultra-n00b
Posts: 7
Joined: Sun Aug 31, 2014 3:22 am
Has thanked: 3 times

Re: Granny .GR2 Reader plugin for Noesis

Post by CBack » Tue Oct 06, 2020 10:31 am

jayn23 wrote:
Mon Oct 05, 2020 11:08 pm
Well not with my script as is, but It would be possible to add a feature like that to my script,

I currently have some personnel issues preventing me form working on the script, but i will try to add it in the future
Sure, no problem. Take as much time as you need. Personal life absolutely does come first.

User avatar
Joschka
mega-veteran
mega-veteran
Posts: 177
Joined: Fri Aug 09, 2019 3:51 pm
Has thanked: 41 times
Been thanked: 272 times

Re: Granny .GR2 Reader plugin for Noesis

Post by Joschka » Tue Oct 06, 2020 11:55 am

CBack wrote:
Tue Oct 06, 2020 10:31 am
jayn23 wrote:
Mon Oct 05, 2020 11:08 pm
Well not with my script as is, but It would be possible to add a feature like that to my script,

I currently have some personnel issues preventing me form working on the script, but i will try to add it in the future
Sure, no problem. Take as much time as you need. Personal life absolutely does come first.

Depending on how the script is made you may want to try this : https://github.com/RoadTrain/noesis-plu ... elmerge.py

Put it in the plugins folder
Then right click on the file and choose merge
It'll load all the files with the same extension that are next to it
Check the bone merging options in the script to avoid having duplicates if relevant

CBack
ultra-n00b
Posts: 7
Joined: Sun Aug 31, 2014 3:22 am
Has thanked: 3 times

Re: Granny .GR2 Reader plugin for Noesis

Post by CBack » Tue Oct 06, 2020 10:52 pm

Joschka wrote:
Tue Oct 06, 2020 11:55 am
Depending on how the script is made you may want to try this : https://github.com/RoadTrain/noesis-plu ... elmerge.py

Put it in the plugins folder
Then right click on the file and choose merge
It'll load all the files with the same extension that are next to it
Check the bone merging options in the script to avoid having duplicates if relevant
Yes, it works! It doesn't let me load animation though as for some reason it's now required to be loaded in the .sis format but it does seem to work for merging meshes with skeletons, which is what I really need.

erik945
mega-veteran
mega-veteran
Posts: 252
Joined: Fri Jan 20, 2012 5:43 pm
Has thanked: 46 times
Been thanked: 114 times

Re: Granny .GR2 Reader plugin for Noesis

Post by erik945 » Thu Oct 08, 2020 12:24 pm

Any news directly on Baldurs Gate 3?

jayn23
mega-veteran
mega-veteran
Posts: 173
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 50 times
Been thanked: 157 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Thu Oct 08, 2020 1:19 pm

Any news directly on Baldurs Gate 3?
Well I did take a quick look at the archive .pak files they are compressed and i am not sure what type of compression was used, i know how to identify and work mostly with .zlib compression.

If anyone here is willing/able to take a look i can upload a sample.

Makoto
beginner
Posts: 32
Joined: Sat Jun 11, 2016 6:41 pm
Has thanked: 13 times
Been thanked: 7 times

Re: Granny .GR2 Reader plugin for Noesis

Post by Makoto » Sat Oct 10, 2020 10:52 pm

Where do i need to put the granny2.dll file? it gives me long error logs. I was trying to open snocross models in noesis

jayn23
mega-veteran
mega-veteran
Posts: 173
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 50 times
Been thanked: 157 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Sun Oct 11, 2020 2:35 pm

here do i need to put the granny2.dll file? it gives me long error logs. I was trying to open snocross models in noesis
needs to be in same folder as noesis.exe file


I checked BG3.exe file and it does indeed contain references to granny .gr2 files so I am confident the game uses granny format - just need help extracting the data since I have very little experience with compressed archives

i will try later today to upload a sample in a dedicated thread for BG3

erik945
mega-veteran
mega-veteran
Posts: 252
Joined: Fri Jan 20, 2012 5:43 pm
Has thanked: 46 times
Been thanked: 114 times

Re: Granny .GR2 Reader plugin for Noesis

Post by erik945 » Sun Oct 11, 2020 3:04 pm

Try also on zenhax. They work well with archives.

jayn23
mega-veteran
mega-veteran
Posts: 173
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 50 times
Been thanked: 157 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Sun Oct 11, 2020 3:23 pm

Try also on zenhax. They work well with archives.
seems like Ekey already cracked this one
https://zenhax.com/viewtopic.php?f=9&t=14229

IT WORKS I CHECKED :)

erik945
mega-veteran
mega-veteran
Posts: 252
Joined: Fri Jan 20, 2012 5:43 pm
Has thanked: 46 times
Been thanked: 114 times

Re: Granny .GR2 Reader plugin for Noesis

Post by erik945 » Sun Oct 11, 2020 3:56 pm

Nice news!

erik945
mega-veteran
mega-veteran
Posts: 252
Joined: Fri Jan 20, 2012 5:43 pm
Has thanked: 46 times
Been thanked: 114 times

Re: Granny .GR2 Reader plugin for Noesis

Post by erik945 » Sun Oct 11, 2020 9:38 pm

I try load model, get error:
Detected file type: GR2 Reader
Traceback (most recent call last):
File "D:\noesisv4433\plugins\python\fmt_GR2reader121.py", line 3261, in noepyLoadModel
Models = GR2Reader(data)
File "D:\noesisv4433\plugins\python\fmt_GR2reader121.py", line 2705, in GR2Reader
AllDecompressedData += GR2decompress(DecompressedData,ComperesedData,section.decompressed_size,section.data_size,section)
File "D:\noesisv4433\plugins\python\fmt_GR2reader121.py", line 2584, in GR2decompress
beginDecompressProc = lib['_GrannyBeginFileDecompression@24']
File "D:\noesisv4433\Plugins\python\core321.zip\ctypes\__init__.py", line 358, in __getitem__
AttributeError: function '_GrannyBeginFileDecompression@24' not found

Do I use uncorrect version of granny2.dll or what?

Can you say the size and version of the file your use?
Thanks.

jayn23
mega-veteran
mega-veteran
Posts: 173
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 50 times
Been thanked: 157 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Mon Oct 12, 2020 6:50 am

I try load model, get error:
Detected file type: GR2 Reader
Traceback (most recent call last):
File "D:\noesisv4433\plugins\python\fmt_GR2reader121.py", line 3261, in noepyLoadModel
Models = GR2Reader(data)
File "D:\noesisv4433\plugins\python\fmt_GR2reader121.py", line 2705, in GR2Reader
AllDecompressedData += GR2decompress(DecompressedData,ComperesedData,section.decompressed_size,section.data_size,section)
File "D:\noesisv4433\plugins\python\fmt_GR2reader121.py", line 2584, in GR2decompress
beginDecompressProc = lib['_GrannyBeginFileDecompression@24']
File "D:\noesisv4433\Plugins\python\core321.zip\ctypes\__init__.py", line 358, in __getitem__
AttributeError: function '_GrannyBeginFileDecompression@24' not found

Do I use uncorrect version of granny2.dll or what?

They are using BitKnit2 Compression, most granny2.dll dont support this - you need to find a .dll that supports it

erik945
mega-veteran
mega-veteran
Posts: 252
Joined: Fri Jan 20, 2012 5:43 pm
Has thanked: 46 times
Been thanked: 114 times

Re: Granny .GR2 Reader plugin for Noesis

Post by erik945 » Mon Oct 12, 2020 7:03 am

Yes I understand this.
Obviously, you have this file.
Can you provide the following information so that I understand what to look for.

In general, the script works fine with BG3 models, or does it need to be improved?
You do not have the required permissions to view the files attached to this post.

jayn23
mega-veteran
mega-veteran
Posts: 173
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 50 times
Been thanked: 157 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Mon Oct 12, 2020 7:16 am

So far everything i have tested works, except the red dragon which gives a python error and crashes.
I dont have time to debug issues for at least a week but then I will take a look why the dragon is crashing.
Also many creatures seem to be missing there .gr2 files - maybe they are being extracted to a different location - dont know

here's the BG3 Owlbear
Image

which model are you getting your error with? my granny version is 2.11.8

Can you provide the following information so that I understand what to look for.
Open you .dll file in hex editor and search for "_GrannyBeginFileDecompression" if it contain this string it should work - if it does not than you need a different version

erik945
mega-veteran
mega-veteran
Posts: 252
Joined: Fri Jan 20, 2012 5:43 pm
Has thanked: 46 times
Been thanked: 114 times

Re: Granny .GR2 Reader plugin for Noesis

Post by erik945 » Mon Oct 12, 2020 8:50 am

Many thanks! I already found.
I was getting errors on all models as I used v. 2.9.12.0 (easy to find on the net)
Judging by the information from here http://www.radgametools.com/granny/history.html
BitKnit 2 is added in version 2.11.0.0 release 2015/11/03

I found the required dll version here (already compiled, exactly 2.11.8.0, size 672 256 bytes)
https://github.com/nikita322/GrannyConverter2.11.8
Everything works with it.

Thanks again, will wait for the dragon's update.

Post Reply