Poll time! Click here: Are you interested in the chiptune scene? If so, which?. Let's see what our community thinks of the chiptune scene. :) !

Granny .GR2 Reader plugin for Noesis

Post questions about game models here, or help out others!
jayn23
mega-veteran
mega-veteran
Posts: 235
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 58 times
Been thanked: 210 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Tue Jun 15, 2021 10:42 pm

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
advanced
Posts: 56
Joined: Mon Feb 10, 2020 9:24 pm
Has thanked: 8 times
Been thanked: 14 times

Re: Granny .GR2 Reader plugin for Noesis

Post by 05SpeedMaster » Thu Jun 17, 2021 12:22 am

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
ultra-n00b
Posts: 9
Joined: Thu Mar 09, 2017 1:57 pm
Has thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by okami29 » 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 ) ?

jayn23
mega-veteran
mega-veteran
Posts: 235
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 58 times
Been thanked: 210 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » 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

okami29
ultra-n00b
Posts: 9
Joined: Thu Mar 09, 2017 1:57 pm
Has thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by okami29 » 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

jayn23
mega-veteran
mega-veteran
Posts: 235
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 58 times
Been thanked: 210 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Mon Jun 21, 2021 9:35 am

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
ultra-n00b
Posts: 9
Joined: Thu Mar 09, 2017 1:57 pm
Has thanked: 1 time

Re: Granny .GR2 Reader plugin for Noesis

Post by okami29 » Mon Jun 21, 2021 4:36 pm

ty

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

Re: Granny .GR2 Reader plugin for Noesis

Post by chachachat » Tue Jun 22, 2021 4:54 pm

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: 255
Joined: Fri Jan 20, 2012 5:43 pm
Has thanked: 47 times
Been thanked: 123 times

Re: Granny .GR2 Reader plugin for Noesis

Post by erik945 » Tue Jun 29, 2021 10:02 am

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: 235
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 58 times
Been thanked: 210 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Tue Jun 29, 2021 5:09 pm

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 » 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

jayn23
mega-veteran
mega-veteran
Posts: 235
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 58 times
Been thanked: 210 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Sun Jul 04, 2021 1:04 pm

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

User avatar
zardalu
veteran
Posts: 101
Joined: Sat Sep 13, 2008 3:13 pm
Has thanked: 7 times
Been thanked: 13 times
Contact:

Re: Granny .GR2 Reader plugin for Noesis

Post by zardalu » 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

jayn23
mega-veteran
mega-veteran
Posts: 235
Joined: Sun Jul 17, 2011 9:30 pm
Has thanked: 58 times
Been thanked: 210 times

Re: Granny .GR2 Reader plugin for Noesis

Post by jayn23 » Tue Jul 20, 2021 10:39 am

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:

User avatar
zardalu
veteran
Posts: 101
Joined: Sat Sep 13, 2008 3:13 pm
Has thanked: 7 times
Been thanked: 13 times
Contact:

Re: Granny .GR2 Reader plugin for Noesis

Post by zardalu » Wed Jul 21, 2021 4:48 pm

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