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!
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

mono24 wrote: Tue Jun 15, 2021 10:39 pm
jayn23 wrote: Tue Jun 15, 2021 7:27 pm ...
3. Adedd support for 64 bit Noesis- script will automatically recognize which system you are using and search for a compatible .dll file.
for 32 bit - granny2.dll
for 64 bit - granny2_x64.dll
...
I have never seen granny2 64-bit dll, care to name a game or two that has it?
i think i got mine from ESO
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 »

mono24 wrote: Tue Jun 15, 2021 10:39 pm
I have never seen granny2 64-bit dll, care to name a game or two that has it?
Image
Image
okami29
n00b
Posts: 11
Joined: Thu Mar 09, 2017 1:57 pm
Has thanked: 2 times

Re: Granny .GR2 Reader plugin for Noesis

Post by okami29 »

Thank you for this new version. Are you still planning to fix the issue with Tyrael wings animations (or waiting for the full release ) ?
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

okami29 wrote: Sun Jun 20, 2021 3:13 pm Thank you for this new version. Are you still planning to fix the issue with Tyrael wings animations (or waiting for the full release ) ?
To be honest totaly forgot about that, since i deleted diablo until full game realeases, please uplaod samples both mesh and animations and ill take a look
okami29
n00b
Posts: 11
Joined: Thu Mar 09, 2017 1:57 pm
Has thanked: 2 times

Re: Granny .GR2 Reader plugin for Noesis

Post by okami29 »

jayn23 wrote: Sun Jun 20, 2021 8:17 pm
okami29 wrote: Sun Jun 20, 2021 3:13 pm Thank you for this new version. Are you still planning to fix the issue with Tyrael wings animations (or waiting for the full release ) ?
To be honest totaly forgot about that, since i deleted diablo until full game realeases, please uplaod samples both mesh and animations and ill take a look
Here
Link
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

okami29 wrote: Mon Jun 21, 2021 7:12 am
jayn23 wrote: Sun Jun 20, 2021 8:17 pm
okami29 wrote: Sun Jun 20, 2021 3:13 pm Thank you for this new version. Are you still planning to fix the issue with Tyrael wings animations (or waiting for the full release ) ?
To be honest totaly forgot about that, since i deleted diablo until full game realeases, please uplaod samples both mesh and animations and ill take a look
Here
Link
Well it does work ;)
the skeleton embedded with the mesh file dosent work with the animation correctly , but the independent skeleton file does.
Just use the SKELETON_LOAD option to load the skeleton with the animatiom track set to 3, the other tracks are empty (just contain a static pose)
if you want to load it with mesh like i did, use MULTIFILE = 2 to merge meshes.

Image
okami29
n00b
Posts: 11
Joined: Thu Mar 09, 2017 1:57 pm
Has thanked: 2 times

Re: Granny .GR2 Reader plugin for Noesis

Post by okami29 »

ty
chachachat
ultra-n00b
Posts: 7
Joined: Wed Nov 22, 2017 3:56 pm
Been thanked: 4 times

Re: Granny .GR2 Reader plugin for Noesis

Post by chachachat »

okami29 wrote: Mon Jun 21, 2021 7:12 am
jayn23 wrote: Sun Jun 20, 2021 8:17 pm
okami29 wrote: Sun Jun 20, 2021 3:13 pm Thank you for this new version. Are you still planning to fix the issue with Tyrael wings animations (or waiting for the full release ) ?
To be honest totaly forgot about that, since i deleted diablo until full game realeases, please uplaod samples both mesh and animations and ill take a look
Here
Link
Dead link
erik945
mega-veteran
mega-veteran
Posts: 257
Joined: Fri Jan 20, 2012 5:43 pm
Has thanked: 49 times
Been thanked: 139 times

Re: Granny .GR2 Reader plugin for Noesis

Post by erik945 »

Can you try this model? D2R, iron golem.
https://www.dropbox.com/s/o2u3vyjxvv1br ... em.7z?dl=0

Code: Select all

Traceback (most recent call last):
  File "E:\noesisv4442\plugins\python\fmt_GR2reader135.py", line 5210, in noepyLoadModel
    ctx = rapi.rpgCreateContext()
RuntimeError: Hit MAX_CONCURRENT_RPGEO_CONTEXTS!

Thank you/
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

erik945 wrote: Tue Jun 29, 2021 10:02 am Can you try this model? D2R, iron golem.

Thank you/
its a noesis thing, this error happens when the .gr2 file contains to many unique models, just use the MERGE_SCENE option to combine all models.

Image
boskee
ultra-n00b
Posts: 1
Joined: Sun Jul 04, 2021 11:55 am

Re: Granny .GR2 Reader plugin for Noesis

Post by boskee »

Hello,

While reading terrain model from Diablo 2 Resurrected using v1.3.5 I ran into this problem:
Detected file type: GR2 Reader
Traceback (most recent call last):
File "noesisv4451\plugins\python\fmt_GR2reader135.py", line 5199, in noepyLoadModel
Models = GR2Reader(data)
File "noesisv4451\plugins\python\fmt_GR2reader135.py", line 4327, in GR2Reader
Models = extractData(StructHeaders)
File "noesisv4451\plugins\python\fmt_GR2reader135.py", line 3216, in extractData
for Tex in model.MeshBindings.Mesh.MaterialBindings.Material.Maps:
TypeError: 'dummy_member' object is not iterable


I fixed it by replacing "else:" on line 3213 with the following condition, but I'm sure there's a better way to deal with it

Code: Select all

elif type(model.MeshBindings[i].Mesh.MaterialBindings.Material.Maps) == list:
    #for mesh with single material
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

boskee wrote: Sun Jul 04, 2021 12:53 pm Hello,

While reading terrain model from Diablo 2 Resurrected using v1.3.5 I ran into this problem:
Detected file type: GR2 Reader
Traceback (most recent call last):
File "noesisv4451\plugins\python\fmt_GR2reader135.py", line 5199, in noepyLoadModel
Models = GR2Reader(data)
File "noesisv4451\plugins\python\fmt_GR2reader135.py", line 4327, in GR2Reader
Models = extractData(StructHeaders)
File "noesisv4451\plugins\python\fmt_GR2reader135.py", line 3216, in extractData
for Tex in model.MeshBindings.Mesh.MaterialBindings.Material.Maps:
TypeError: 'dummy_member' object is not iterable


I fixed it by replacing "else:" on line 3213 with the following condition, but I'm sure there's a better way to deal with it

Code: Select all

elif type(model.MeshBindings[i].Mesh.MaterialBindings.Material.Maps) == list:
    #for mesh with single material
Thanks for sharing,
please upload the sample that gave this error, ill take a look
zardalu
veteran
Posts: 134
Joined: Sat Sep 13, 2008 3:13 pm
Has thanked: 17 times
Been thanked: 31 times
Contact:

Re: Granny .GR2 Reader plugin for Noesis

Post by zardalu »

Hi Jayn,

I can't tell you how much I appreciate this tool.

I notice that the UVs for ESO statics are still strange. They seem to be off in random ways.

I have uploaded a test sample with files for comparison. (model file converted using your tool (with strange UVs), and the same model obtained using Ninja Ripper with the correct UVs for comparison, exported as an OBJ, etc.)

Side note for anyone trying this: With Ninja Ripper in max you need to tile your textures 32 times in both directions to get correct UVs for ESO statics. I use UVW Xform modifier.

https://www.sendspace.com/file/lln8p6
jayn23
mega-veteran
mega-veteran
Posts: 250
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 61 times
Been thanked: 241 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 »

zardalu wrote: Sun Jul 18, 2021 10:11 pm Hi Jayn,

I can't tell you how much I appreciate this tool.

I notice that the UVs for ESO statics are still strange. They seem to be off in random ways.

I have uploaded a test sample with files for comparison. (model file converted using your tool (with strange UVs), and the same model obtained using Ninja Ripper with the correct UVs for comparison, exported as an OBJ, etc.)

Side note for anyone trying this: With Ninja Ripper in max you need to tile your textures 32 times in both directions to get correct UVs for ESO statics. I use UVW Xform modifier.

https://www.sendspace.com/file/lln8p6

Hi,

Sorry for the late response, ill take a look and see if i can figure it out. i am kind a busy with real life for now so it will probably be a few weeks if i can find the issue very quickly.

can you please upload a different sample idealy with a small amount of meshes and less vertcies, for some reason this file is taking forever to load each time, guess my 6 year old computer is starting to show its age :mrgreen:
zardalu
veteran
Posts: 134
Joined: Sat Sep 13, 2008 3:13 pm
Has thanked: 17 times
Been thanked: 31 times
Contact:

Re: Granny .GR2 Reader plugin for Noesis

Post by zardalu »

Thanks Jayn,

Here is a batch of smaller files, all related:

https://www.sendspace.com/file/ws4o9h

Let me know if this helps or if anything else is needed,
Post Reply