The Forum is up for sale: XeNTaX Forum looking for new owner

age of empires 2 terrain edges

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
SFera
ultra-n00b
Posts: 3
Joined: Thu Dec 30, 2010 1:13 am

age of empires 2 terrain edges

Post by SFera »

The contents of this post was deleted because of possible forum rules violation.
SFera
ultra-n00b
Posts: 3
Joined: Thu Dec 30, 2010 1:13 am

Re: age of empires 2 terrain edges

Post by SFera »

ok I managed to parse the file

the final structure is as follows:

Code: Select all

uint32: nr of blending modes (9)
uint32: nr of tiles(31)
for (i=0;i<nr of blendingmodes)
{
  uint32: tilesize(2353, that`s 48*49 pixels);
  31bytes: tileflags(they are all 1);
  4*blocksize bytes which are 32 interleaved tiles representing 1 bit alpha masks, don't know how this is used for
  for (j=0;j<nr of tiles)
  {
    blocksize bytes: the actual tile pixels; starting from the top .. rendered in the isometric tile format
  }
}
I used Ida Pro first time i tried to debug this and because of the video mode I just couldn't switch to the debugger. Now I used olly and it worked just fine.

the rendered tiles look like this:
Image
and the 1bit masks look like this:
Image
User avatar
stodds90
beginner
Posts: 20
Joined: Thu Feb 17, 2011 9:53 pm
Location: San Diego, California

Re: age of empires 2 terrain edges

Post by stodds90 »

The contents of this post was deleted because of possible forum rules violation.
Believe my eyes, my brain complies.
Post Reply