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

granny engine .gr2 question

Post questions about game models here, or help out others!
Nirvana Jung
ultra-n00b
Posts: 6
Joined: Fri Jun 20, 2008 7:28 pm

Re: granny engine .gr2 question

Post by Nirvana Jung »

ok thanks, i'll try it
btw how can import a gr2 model in MilkShape? i have milkshape but i didnt see
any file options and plugins
is that just allow to new version of Milkshape ? or is there any plugins ?
----------------------------------------------------------------
Additional :

i tried convert gr2 to maxscript *.ms file but attaced grnreader_hack doesnt work
for me

its same result when i run maxscript and grnreader_hack was error after export ms file
here is screen ( i have MS winows korean edition but i think its doesnt matter to work because the building gr2 does work correctly without any error in there )
Image
anyway i tried open that ms file in notepad to find out what is mssing
and there is something missing information in vertex info
there is no vertex coordinates at all just writed zero
here is vertex coordinates info of exported ms file

Code: Select all

fn create = (
temp = mesh numverts:10656 numfaces:212
setNumTVerts temp 10656
buildTVFaces temp
setVert temp 1 [0.000000,0.000000,0.000000]
setTVert temp 1 [0.000000,-0.000000,0.000000]
setNormal temp 1 [0.000000,0.000000,0.000000]
setVert temp 2 [0.000000,0.000000,0.000000]
setTVert temp 2 [0.000000,-0.000000,0.000000]
setNormal temp 2 [0.000000,0.000000,0.000000]
setVert temp 3 [0.000000,0.000000,0.000000]
setTVert temp 3 [0.000000,-0.000000,0.000000]
setNormal temp 3 [0.000000,0.000000,0.000000]
setVert temp 4 [0.000000,0.000000,0.000000]
setTVert temp 4 [0.000000,-0.000000,0.000000]
setNormal temp 4 [0.000000,0.000000,0.000000]
setVert temp 5 [0.000000,0.000000,0.000000]
setTVert temp 5 [0.000000,-0.000000,0.000000]
setNormal temp 5 [0.000000,0.000000,0.000000]
setVert temp 6 [0.000000,0.000000,0.000000]
setTVert temp 6 [0.000000,-0.000000,0.000000]
setNormal temp 6 [0.000000,0.000000,0.000000]
.
.
.
setTVert temp 10656 [0.000000,-0.000000,0.000000]
setNormal temp 10656 [0.000000,0.000000,0.000000]
setFace temp 129 [54,228,226]
setFace temp 130 [131,123,269]
setFace temp 131 [32,214,218]
setFace temp 132 [281,287,144]
.
.
.
for f = 1 to temp.numfaces do setTVFace temp f (getface temp f)
)
create()
but the buildings gr2 file just shows vertex coordinates as well in there
here is converted files which i used with attached new grnreader_hack
You do not have the required permissions to view the files attached to this post.
federico
beginner
Posts: 28
Joined: Wed Sep 27, 2006 6:00 pm
Been thanked: 4 times

Re: granny engine .gr2 question

Post by federico »

:D Have you read carefully the docs?

Milkshape imports SMD files. the .ms file it's just for backup in case of failure of the SMD format.

Have you first imported the gr2 in 3dsMax? Do the importer generated the two gr2.smd and gr2.dat files? Are they in the same directory of your gr2 file?
Try to be more specific. As you saw I successfully imported the cavalery model, so just start from there and see if it works. :wink:
Nirvana Jung
ultra-n00b
Posts: 6
Joined: Fri Jun 20, 2008 7:28 pm

Re: granny engine .gr2 question

Post by Nirvana Jung »

well.. i have read carefully all ur document
the problem is i haven't took any smd files as i showed you my error screen
grnreader hack just dumps out ms file
there is empty in smd file
i couldnt took any right smd files with grnreader
that doesnt work for me that is main issue, not about steps

yes i have imported gr2 file in 3dsmax and i saw smd file and dat
and i ran the grnreader for gr2 file but grnreader just crashed after export files as i showed you above
there was empty and there is nothing at all for mesh in smd (there is no triangles information in smd file)
that mean the gr2 mesh exporter doesn't inject to write any triangles data to pre smd file
federico
beginner
Posts: 28
Joined: Wed Sep 27, 2006 6:00 pm
Been thanked: 4 times

Re: granny engine .gr2 question

Post by federico »

Nirvana Jung, I really want to help you, but I'm not a magician. Really, I don't know what's going on in your computer :D
So you just have to provide more information. The screen you sent just tells me that the program has crashed but not why.
So as I said: Could you please import the cavalery models you sent me so we can compare what's different between us?
I try to break it down in steps for you so we can find where's the error. Please follow these steps.

- I've unpacked the tangent_hack archive in a folder. I've choosen the file named: cav_archer_1age_rider.gr2
Image

- Started 3dsMax 2008. Using the GR2 plugin I loaded that gr2 file. The skeleton of the model has been imported.
ImageImage

- As a result the plugin has generated two files: cav_archer_1age_rider.gr2.smd and cav_archer_1age_rider.gr2.dat
the former has this content:

Code: Select all

Version 1
nodes
0 "Bip01 Root" -1 
1 "Bip01 Prop2" 0 
2 "Bip01 Prop1" 0 
3 "Bip01 Pelvis" 0 
4 "Bip01 Spine" 3 
5 "Bip01 R Thigh" 4 
6 "Bip01 R Calf" 5 
7 "Bip01 R Foot" 6 
8 "Bip01 L Thigh" 4 
9 "Bip01 L Calf" 8 
10 "Bip01 L Foot" 9 
11 "Bip01 Spine1" 4 
12 "Bip01 Neck" 11 
13 "Bip01 Head" 12 
14 "Bip01 L Clavicle" 12 
15 "Bip01 L UpperArm" 14 
16 "Bip01 L ForeArm" 15 
17 "Bip01 L Hand" 16 
18 "Bip01 R Clavicle" 12 
19 "Bip01 R UpperArm" 18 
20 "Bip01 R ForeArm" 19 
21 "Bip01 R Hand" 20 
end 
skeleton 
time 0
0 0.000000 0.000000 0.000000 -0.000000 1.570796 0.000000 
1 -0.063173 0.018507 -0.456884 0.000000 0.000000 0.000000 
2 -0.063173 0.018507 0.456884 0.000000 0.000000 0.000000 
3 0.000000 0.000000 0.000000 -1.570795 0.000001 -1.570796 
4 -0.116393 0.000000 0.000189 -0.000004 -0.000796 -0.000001 
5 0.116393 -0.101211 -0.000282 0.017488 0.000011 2.987840 
6 -0.506055 0.000000 -0.000000 0.000000 0.001381 -0.000000 
7 -0.506055 0.000000 -0.000000 -0.017497 0.000506 0.153743 
8 0.116393 0.101211 -0.000281 -0.017489 0.000011 -2.982161 
9 -0.506055 -0.000000 0.000000 0.000000 0.001381 0.000000 
10 -0.506055 -0.000000 0.000000 0.017486 0.000606 -0.159421 
11 -0.237042 -0.000000 0.000189 0.000000 -0.000000 0.000000 
12 -0.237042 -0.000000 0.000073 0.000000 -0.000000 0.000000 
13 -0.091290 0.000000 0.000000 0.000000 0.000798 0.000000 
14 -0.000000 0.035424 -0.000073 -0.033683 3.018745 1.308668 
15 -0.174710 0.000000 0.000000 0.114725 -0.031526 0.854904 
16 -0.303633 -0.000000 -0.000000 -0.000000 0.461799 -0.000000 
17 -0.303633 0.000000 0.000000 -1.570000 0.000000 0.407847 
18 -0.000000 -0.035424 -0.000073 0.033682 3.018750 -1.308668 
19 -0.174710 0.000000 0.000000 -0.114725 -0.031526 -0.854904 
20 -0.303633 0.000000 -0.000000 0.000000 0.461799 0.000000 
21 -0.303633 0.000000 -0.000000 1.570000 -0.000000 -0.407847 
end
the latter, this one:

Code: Select all

Bip01 Root
Bip01 Prop2
Bip01 Prop1
Bip01 Pelvis
Bip01 Spine
Bip01 R Thigh
Bip01 R Calf
Bip01 R Foot
Bip01 L Thigh
Bip01 L Calf
Bip01 L Foot
Bip01 Spine1
Bip01 Neck
Bip01 Head
Bip01 L Clavicle
Bip01 L UpperArm
Bip01 L ForeArm
Bip01 L Hand
Bip01 R Clavicle
Bip01 R UpperArm
Bip01 R ForeArm
Bip01 R Hand
- opened a command line dos app in the folder containing my gr2 file. typing in: grnreader cav_archer_1age_rider.gr2
- no errors. the cav_archer_1age_rider.gr2.smd file has been injected with mesh data. Additionally a .ms file has been generated.
ImageImage

- The smd file can be imported using Milkshape or the SMD tools for 3dsMax you could find in the site.
Image

I attached the files converted. I hope this could help. :wink:
You do not have the required permissions to view the files attached to this post.
Nirvana Jung
ultra-n00b
Posts: 6
Joined: Fri Jun 20, 2008 7:28 pm

Re: granny engine .gr2 question

Post by Nirvana Jung »

right, you showed me what i was doing collectly
i did extactly same steps what you doing
excepted injecting with mesh data to smd file
becauss when i was enter grnreader cav_archer_1age_rider.gr2 in command line dos app in the folder containing my gr2 file
gr2 mesh converter just crashed however the building gr2 files are works succefully

maybe its cause different of my pc or Windows editon but i have no idea
i tested with other theree pcs in the CyberCafe but always crahsed at that time

is there any restriction for any korean language(Unicode) in relation to file name ?

Additional :
--------------
nevermind, i solved my self there was different gr2 formats from reference model
a strange issue is mesh converter does works success for just some of AoE3 original models
i mean, i tried with AoE3 expansion (Asian Dynasty) models but all of gr2 files crahsed
cavalry model which i attaced file is original model not expansion title

i linked AoE3 Asian Dynasty models try looking around the difference of them
http://www.savefiles.net/d/cqbgn8rhk4pd.html

anyways thanks new gr2 mesh converter for AoE3
it would be very useful for AoE3 fans and modders

btw, the GR2 Expotron Exporter (3dsMax) is compatible for AoE3 model ?
could it makes a gr2 file for AoE3 model compatibly ? or is it needs to make another version something for AoE3 model ?
federico
beginner
Posts: 28
Joined: Wed Sep 27, 2006 6:00 pm
Been thanked: 4 times

Re: granny engine .gr2 question

Post by federico »

Ok, good. :)
So, if I correctly understood, using the cavalery models the hacked grnreader worked just fine but the Asian Dinasty expansion crashes the app. I could look at your new files.
About the expotron plugin. I really don't know how it could work with your game. The plugin is plenty of options so I think it could be tweaked to get a proper result. I suggest you to try by yourself looking carefully at the original data opening the models in the grannyviewer: in the model section, right click->View detail and then browsing the data structures. I have not this game and I'm not really interested in Mods, but I'm happy to help as far as I can.
Nirvana Jung
ultra-n00b
Posts: 6
Joined: Fri Jun 20, 2008 7:28 pm

Re: granny engine .gr2 question

Post by Nirvana Jung »

ok thanks your help :I’m looking forward to get all of AoE3 models
and i have good news for you
i found out a game which uses Granny2 models :wink:
im making a mod which the ancient time concept
i was digging many ancient concept games and i just found that as chance would have it

that game is Caesar IV
the game achive aresn't compressed and gr2 models aresn't encryptioned
its allow to see models and animations with granny viewer
and textures format is dds it's not encryptioned at all
Image

but strange thing, the Caesar lV gr2 files are not affects with mesh converter and 3dsmax plugin
i dont know why it should open in the granny viewer though
but i couldn't anything with your the grnreader and 3dsmax plugins
when i entred command line in gnreader it says :

-Log < 3 9> c:/dev/rad/granny/rt/granny_file.cpp<351> : file is not a Granny file
Couldn't read GR2 file '<null>' - maybe it's not right name, or not in the right folder

i used new grnreader and basic grnreader both

here is a sample file included Caesar lV gr2 model files
You do not have the required permissions to view the files attached to this post.
federico
beginner
Posts: 28
Joined: Wed Sep 27, 2006 6:00 pm
Been thanked: 4 times

Re: granny engine .gr2 question

Post by federico »

Thanks for your discover, but it's a shame: Cesar IV models use the granny RAW format, which we are not able to open (though the grannyviewer can).
The asian dinasty models use a format for vertex strucy really unusual, in fact even the grannyviewer is not able to display them correctly. I don't think I could get something out of them... :|
Nirvana Jung
ultra-n00b
Posts: 6
Joined: Fri Jun 20, 2008 7:28 pm

Re: granny engine .gr2 question

Post by Nirvana Jung »

Ok, i see then we don't have a chance to get the Asian dynasty models in SMD format currently ?
and as for Cesar IV models, have any plans making a solution for that ? or it just unable to open currently?

if so it's needs to solved by someone :[
federico
beginner
Posts: 28
Joined: Wed Sep 27, 2006 6:00 pm
Been thanked: 4 times

Re: granny engine .gr2 question

Post by federico »

No, about the Caesar model I don't see any handy solution for the next future. I said it was the raw format. I was wrong, it's kind of a new format compression (from granny 2.7.0): form oodle0 to oodle1, they say in the granny site, does anybody know what does it mean? and if there's some tool for that...

I updated the infos about the Petz games - thanks again Toppen Carson! - with Catz II and Dogz II.
Support confirmed for Jimmy Neutron vs. Jimmy Megatron (.grn format)
I updated the GR2 mesh exporter that now ask confirmation before exporting the maxscript mesh (some models crash on this but not in the SMD export).

No one is willing to help me figuring out the Legend Hand of God archive format, so I'm extracting some models manually cutting and pasting out the data using the hex editor (I know the beginning hexes of the gr2 format). If someone has some idea, or better code, to split a file in sections delimited by an hex value, I would be grateful for life.

:wink:
Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 46 times
Contact:

Re: granny engine .gr2 question

Post by Rheini »

Well afaik the old compression algorithm already was some custom stuff. But maybe they changed it into something more popular.
federico
beginner
Posts: 28
Joined: Wed Sep 27, 2006 6:00 pm
Been thanked: 4 times

Re: granny engine .gr2 question

Post by federico »

I suspected that the problem laid in the dll version and I was right. The 2.7 dll can import and convert those new files. I had to change both the gr2 converter and the max plugin because they changed the format a bit. I'm still working on this, next week it should be ready.

Image
risy
n00b
Posts: 11
Joined: Sat Feb 28, 2009 10:45 pm
Has thanked: 2 times
Been thanked: 1 time

Re: granny engine .gr2 question

Post by risy »

Hi I've Been Reading This Post I'm Working On Modding Rise N fall Civilization at war The Game Before Cesar IV I've The Gr2 Files Are Seperated into animations and models gr2 importer dosen't do anything mesh converter crash when using with animations it just say "no meshes i'll just give up" plz help
potemkis
beginner
Posts: 24
Joined: Sun Mar 01, 2009 7:11 am
Has thanked: 3 times

Re: granny engine .gr2 question

Post by potemkis »

I apologize if he didn't want this posted or if it has already been posted, but here's a script that works pretty darn good (just follow the readme!).




Awesome script!
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 engine .gr2 question

Post by Tosyk »

Hi, i want ask you about new (civ5, civ revolution) granny format. Can author implement support to your plugins for 3ds max or to converter?
I attached files from Civilization 5 (PC - american_washington_civ5_pc.zip) and from Civilization Revolution (XBox360 - adv_dom_ind_civ_rev_xbox360.rar)
Thank you.

Civilization 5 (PC) - Download sample
Civilization Revolution (XBox360) - Download sample

p.s.: sorry if i'm doing wrong with old topic, but for new research all helping information can be found here.
Thank you for all you do here
my blog | my forum
Post Reply