User Tools

Site Tools


formats:gr2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
formats:gr2 [2009-11-03 12:55] edheldilformats:gr2 [2009-11-09 16:13] edheldil
Line 5: Line 5:
 These files are used [ FIXME: mainly? ] for avatar models (PC, NPCs, spirits, ...) and for inventory items (FIXME: anything more?). They can contain meshes, textures and animations, but it seems that Lionheart has animations in separate GR2 files, probably to ease sharing the anims between different models. These files are used [ FIXME: mainly? ] for avatar models (PC, NPCs, spirits, ...) and for inventory items (FIXME: anything more?). They can contain meshes, textures and animations, but it seems that Lionheart has animations in separate GR2 files, probably to ease sharing the anims between different models.
  
-The file contents seem to be obfuscated - while the strings reported by the [[http://www.radgametools.com/granny/download.html|GR2 viewer]] aren't visible anywhere in a GR2 file, from the sheer amount of zeros it's clear that majority of bytes is not compressed nor encrypted. Possibly some file chunks are compressed/obfuscated, while others aren't. Or maybe it uses obfuscation algorithm which skips over zeros in order to avoid revealing a XOR key ... My guess is that it IS a XOR key :). Maybe common cryptanalysis with cribs from the viewer would be enough to recover it.+The file contents seem to be obfuscated - while the strings reported by the [[http://www.radgametools.com/granny/download.html|GR2 viewer]] aren't visible anywhere in a GR2 file, from the sheer amount of zeros it's clear that majority of bytes is not compressed nor encrypted. Possibly some file chunks are compressed/obfuscated, while others aren't. Or maybe it uses obfuscation algorithm which skips over zeros in order to avoid revealing a XOR key ... My guess is that it IS a XOR key :) and common cryptanalysis techniques with cribs from the viewer would be enough to recover it.
  
 In any case, the viewer reveals loads of interesting information about GR2 files, including structure definitions and their content. In any case, the viewer reveals loads of interesting information about GR2 files, including structure definitions and their content.
  
 === Notes and Links === === Notes and Links ===
-[[http://aoe3.heavengames.com/cgi-bin/forums/display.cgi?action=ct&f=1,23622,0,10|Rather useless thread about reading GR2 files]] +[[http://aoe3.heavengames.com/cgi-bin/forums/display.cgi?action=ct&f=1,23622,0,10|Rather useless thread about reading GR2 files]]\\ 
 +[[http://forum.xentax.com/viewtopic.php?t=1805|A bit more interesting thread, but it relies on original Granny DLL]]
formats/gr2.txt · Last modified: 2009-11-09 16:24 by edheldil