Page 5 of 34
Re: Granny .GR2 Reader plugin for Noesis
Posted: Tue Oct 06, 2020 10:31 am
by CBack
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.
Re: Granny .GR2 Reader plugin for Noesis
Posted: Tue Oct 06, 2020 11:55 am
by Joschka
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
Re: Granny .GR2 Reader plugin for Noesis
Posted: Tue Oct 06, 2020 10:52 pm
by CBack
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.
Re: Granny .GR2 Reader plugin for Noesis
Posted: Thu Oct 08, 2020 12:24 pm
by erik945
Any news directly on Baldurs Gate 3?
Re: Granny .GR2 Reader plugin for Noesis
Posted: Thu Oct 08, 2020 1:19 pm
by jayn23
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.
Re: Granny .GR2 Reader plugin for Noesis
Posted: Sat Oct 10, 2020 10:52 pm
by Makoto
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
Re: Granny .GR2 Reader plugin for Noesis
Posted: Sun Oct 11, 2020 2:35 pm
by jayn23
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
Re: Granny .GR2 Reader plugin for Noesis
Posted: Sun Oct 11, 2020 3:04 pm
by erik945
Try also on zenhax. They work well with archives.
Re: Granny .GR2 Reader plugin for Noesis
Posted: Sun Oct 11, 2020 3:23 pm
by jayn23
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

Re: Granny .GR2 Reader plugin for Noesis
Posted: Sun Oct 11, 2020 3:56 pm
by erik945
Nice news!
Re: Granny .GR2 Reader plugin for Noesis
Posted: Sun Oct 11, 2020 9:38 pm
by erik945
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.
Re: Granny .GR2 Reader plugin for Noesis
Posted: Mon Oct 12, 2020 6:50 am
by jayn23
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
Re: Granny .GR2 Reader plugin for Noesis
Posted: Mon Oct 12, 2020 7:03 am
by erik945
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?
Re: Granny .GR2 Reader plugin for Noesis
Posted: Mon Oct 12, 2020 7:16 am
by jayn23
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
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
Re: Granny .GR2 Reader plugin for Noesis
Posted: Mon Oct 12, 2020 8:50 am
by erik945
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.