Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Granny .GR2 Reader plugin for Noesis

Post questions about game models here, or help out others!
User avatar
05SpeedMaster
veteran
Posts: 127
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 18 times
Been thanked: 41 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster »

Canyougiant wrote: Sat Aug 26, 2023 7:39 pm Hi,
I am using this script to import the gr2 models and animations from Age of Empires 3: Definitive Edition, but animation isn’t correct, only the whole body is moving. It works in legacy version of the game, which is Age of Empires 3. Apparently, something has changed. Have you ever tested it with Age of Empires: Definitive Edition?
Example Files would get you faster answers.
Canyougiant
ultra-n00b
Posts: 2
Joined: Fri Aug 25, 2023 11:40 am

Re: Granny .GR2 Reader plugin for Noesis

Post by Canyougiant »

Hi, thanks for the replies!
In the end, I managed to resolve my own issue. It's because the bone names in the model files were not match the ones in the animation files. The bone names in the model files were like "Bip01_L_ForeArm", but it's "Bip01 L ForeArm" in the animation file. I guess maybe granny2.dll allows this inconsistency, so animations can be played successfully. There was a line "t.Name = Transform_Track.Name", I changed it to "t.Name = Transform_Track.Name.replace(' ', '_')". That's it.
uroborostestsubject
advanced
Posts: 54
Joined: Thu Nov 23, 2017 12:11 pm
Has thanked: 9 times
Been thanked: 7 times

Re: Granny .GR2 Reader plugin for Noesis

Post by uroborostestsubject »

Unfortunately, there seems to be a problem with lslib tool skipping some textures. I've tried extracting the texture file for Baldur's Gate 3, but this tool skips several textures that are essential to the model. We need a new lslib tool that extracts all textures. I hope this part will be supplemented someday.
User avatar
Tosyk
double-veteran
double-veteran
Posts: 1027
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 269 times
Been thanked: 154 times
Contact:

Re: Granny .GR2 Reader plugin for Noesis

Post by Tosyk »

uroborostestsubject wrote: Sat Sep 02, 2023 3:31 am Unfortunately, there seems to be a problem with lslib tool skipping some textures. I've tried extracting the texture file for Baldur's Gate 3, but this tool skips several textures that are essential to the model. We need a new lslib tool that extracts all textures. I hope this part will be supplemented someday.
if you mean albedo, normal and physic maps they are there but presented as virtual textures
Thank you for all you do here
my blog | my forum
uroborostestsubject
advanced
Posts: 54
Joined: Thu Nov 23, 2017 12:11 pm
Has thanked: 9 times
Been thanked: 7 times

Re: Granny .GR2 Reader plugin for Noesis

Post by uroborostestsubject »

Tosyk wrote: Sat Sep 02, 2023 7:07 am
uroborostestsubject wrote: Sat Sep 02, 2023 3:31 am Unfortunately, there seems to be a problem with lslib tool skipping some textures. I've tried extracting the texture file for Baldur's Gate 3, but this tool skips several textures that are essential to the model. We need a new lslib tool that extracts all textures. I hope this part will be supplemented someday.
if you mean albedo, normal and physic maps they are there but presented as virtual textures
Thank you for your answer. In my case, the texture itself to be applied to the extracted meshes is lacking. For example, there is a texture that needs to be applied to the torso, but there is no texture to apply to the head and legs. Would there still be any missing textures in the virtual texture folder in this case?
User avatar
Tosyk
double-veteran
double-veteran
Posts: 1027
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 269 times
Been thanked: 154 times
Contact:

Re: Granny .GR2 Reader plugin for Noesis

Post by Tosyk »

uroborostestsubject wrote: Sat Sep 02, 2023 7:31 am
Tosyk wrote: Sat Sep 02, 2023 7:07 am
uroborostestsubject wrote: Sat Sep 02, 2023 3:31 am Unfortunately, there seems to be a problem with lslib tool skipping some textures. I've tried extracting the texture file for Baldur's Gate 3, but this tool skips several textures that are essential to the model. We need a new lslib tool that extracts all textures. I hope this part will be supplemented someday.
if you mean albedo, normal and physic maps they are there but presented as virtual textures
Thank you for your answer. In my case, the texture itself to be applied to the extracted meshes is lacking. For example, there is a texture that needs to be applied to the torso, but there is no texture to apply to the head and legs. Would there still be any missing textures in the virtual texture folder in this case?
body, head, eye textures are different case. they are mix of masks from textures: _HMVY, _CLEA, _MSK. In this article, devs are explaining how they do this: https://substance3d.adobe.com/magazine/ ... rs-gate-3/
Thank you for all you do here
my blog | my forum
Valoun
ultra-n00b
Posts: 1
Joined: Mon Aug 07, 2023 2:51 pm
Has thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by Valoun »

Does anyone know why there are messed up UVs in ESO meshes?
uroborostestsubject
advanced
Posts: 54
Joined: Thu Nov 23, 2017 12:11 pm
Has thanked: 9 times
Been thanked: 7 times

Re: Granny .GR2 Reader plugin for Noesis

Post by uroborostestsubject »

Tosyk wrote: Sat Sep 02, 2023 8:09 am
uroborostestsubject wrote: Sat Sep 02, 2023 7:31 am
Tosyk wrote: Sat Sep 02, 2023 7:07 am if you mean albedo, normal and physic maps they are there but presented as virtual textures
Thank you for your answer. In my case, the texture itself to be applied to the extracted meshes is lacking. For example, there is a texture that needs to be applied to the torso, but there is no texture to apply to the head and legs. Would there still be any missing textures in the virtual texture folder in this case?
body, head, eye textures are different case. they are mix of masks from textures: _HMVY, _CLEA, _MSK. In this article, devs are explaining how they do this: https://substance3d.adobe.com/magazine/ ... rs-gate-3/
Can I ask you one more question? Currently, the model I want to extract is the creature model. However, as I mentioned before, some of the creature models lack the texture to apply to the meshes. Textures corresponding to some weapons or items were not extracted at all. Should I apply shaders to the meshes of monsters and weapons the way you told me? Or is it a problem with the tool itself that the texture corresponding to the mesh of monsters or weapons is not being extracted?
User avatar
Tosyk
double-veteran
double-veteran
Posts: 1027
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 269 times
Been thanked: 154 times
Contact:

Re: Granny .GR2 Reader plugin for Noesis

Post by Tosyk »

uroborostestsubject wrote: Sat Sep 02, 2023 1:14 pm
Tosyk wrote: Sat Sep 02, 2023 8:09 am
uroborostestsubject wrote: Sat Sep 02, 2023 7:31 am

Thank you for your answer. In my case, the texture itself to be applied to the extracted meshes is lacking. For example, there is a texture that needs to be applied to the torso, but there is no texture to apply to the head and legs. Would there still be any missing textures in the virtual texture folder in this case?
body, head, eye textures are different case. they are mix of masks from textures: _HMVY, _CLEA, _MSK. In this article, devs are explaining how they do this: https://substance3d.adobe.com/magazine/ ... rs-gate-3/
Can I ask you one more question? Currently, the model I want to extract is the creature model. However, as I mentioned before, some of the creature models lack the texture to apply to the meshes. Textures corresponding to some weapons or items were not extracted at all. Should I apply shaders to the meshes of monsters and weapons the way you told me? Or is it a problem with the tool itself that the texture corresponding to the mesh of monsters or weapons is not being extracted?
once again. Most of the textures are virtual textures. You need to extract them to get all the textures you want - they are there. As for creatures I think they share the same shader technique as characters from _HMVY, _CLEA, _MSK mixing
Thank you for all you do here
my blog | my forum
uroborostestsubject
advanced
Posts: 54
Joined: Thu Nov 23, 2017 12:11 pm
Has thanked: 9 times
Been thanked: 7 times

Re: Granny .GR2 Reader plugin for Noesis

Post by uroborostestsubject »

Tosyk wrote: Sat Sep 02, 2023 2:40 pm
uroborostestsubject wrote: Sat Sep 02, 2023 1:14 pm
Tosyk wrote: Sat Sep 02, 2023 8:09 am
body, head, eye textures are different case. they are mix of masks from textures: _HMVY, _CLEA, _MSK. In this article, devs are explaining how they do this: https://substance3d.adobe.com/magazine/ ... rs-gate-3/
Can I ask you one more question? Currently, the model I want to extract is the creature model. However, as I mentioned before, some of the creature models lack the texture to apply to the meshes. Textures corresponding to some weapons or items were not extracted at all. Should I apply shaders to the meshes of monsters and weapons the way you told me? Or is it a problem with the tool itself that the texture corresponding to the mesh of monsters or weapons is not being extracted?
once again. Most of the textures are virtual textures. You need to extract them to get all the textures you want - they are there. As for creatures I think they share the same shader technique as characters from _HMVY, _CLEA, _MSK mixing
Thank you so much! I'll have to try it again. :D
JKerman
ultra-n00b
Posts: 5
Joined: Sat Feb 06, 2021 12:02 am

Re: Granny .GR2 Reader plugin for Noesis

Post by JKerman »

Can someone post a copy of the 64 bit version of the granny2 dll? I don't have it, and none of my games do either.
yukutan
ultra-n00b
Posts: 1
Joined: Fri Sep 08, 2023 4:01 pm
Has thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by yukutan »

Tosyk wrote: Sun Aug 27, 2023 1:53 pm it works pretty well with Baldur's Gate 3 characters. I must also note that this is the only tool that converts BG3 models properly with skeleton.

I am trying to find Laezel and Astarion, I have noesis working and I have extracted the game fileswith LSlib, but I'm new to working with models, is there a specific folder or filename type I should be looking for to get the character models...? Thank you very much in advance
JKerman
ultra-n00b
Posts: 5
Joined: Sat Feb 06, 2021 12:02 am

Re: Granny .GR2 Reader plugin for Noesis

Post by JKerman »

I'm getting this error when I try to open a file from BG3 in noesis:

Detected file type: GR2 Reader
Traceback (most recent call last):
File "C:\Users\XX\Downloads\noesisv4471 (1)\plugins\python\fmt_GR2reader135.py", line 5199, in noepyLoadModel
Models = GR2Reader(data)
File "C:\Users\XX\Downloads\noesisv4471 (1)\plugins\python\fmt_GR2reader135.py", line 4204, in GR2Reader
TempAllDecompressedData = GR2decompress(DecompressedData,ComperesedData,section.decompressed_size,section.data_size,section)
File "C:\Users\XX\Downloads\noesisv4471 (1)\plugins\python\fmt_GR2reader135.py", line 4022, in GR2decompress
lib = ctypes.WinDLL(DLL_PATH + "granny2.dll")
File "C:\Users\XX\Downloads\noesisv4471 (1)\Plugins\python\core321.zip\ctypes\__init__.py", line 340, in __init__
WindowsError: [Error 193] %1 is not a valid Win32 application
feldarzt
ultra-n00b
Posts: 5
Joined: Sat Sep 09, 2023 5:09 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by feldarzt »

Wow.
How did you get that model textured? When I'm opening BG3 models in Noesis with the plugin and granny2.dll, I get them with 0 textures associated.

Tosyk wrote: Sun Aug 27, 2023 1:53 pm it works pretty well with Baldur's Gate 3 characters. I must also note that this is the only tool that converts BG3 models properly with skeleton.

Image
User avatar
Tosyk
double-veteran
double-veteran
Posts: 1027
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 269 times
Been thanked: 154 times
Contact:

Re: Granny .GR2 Reader plugin for Noesis

Post by Tosyk »

feldarzt wrote: Sun Sep 10, 2023 5:20 am Wow.
How did you get that model textured? When I'm opening BG3 models in Noesis with the plugin and granny2.dll, I get them with 0 textures associated.

Tosyk wrote: Sun Aug 27, 2023 1:53 pm it works pretty well with Baldur's Gate 3 characters. I must also note that this is the only tool that converts BG3 models properly with skeleton.

Image
I use this tool to find connection between resources:
https://github.com/ShinyHobo/BG3-Modders-Multitool

But there’s no way to just open model with all the texture applied. It’s manual work to convert textures and combine models
Thank you for all you do here
my blog | my forum
Post Reply