This is getting really sad at this point.
You guys have the source available and you're making all this enormous mess and pointless threads.
Every .dat file is essentially an .obj container.
By default, the first entry of a .dat file is the map info itself, and it consists of the following:
Code:
struct [B]MAP_DATA[/B]
{
float fTileSize;
int nVertexNumber;
int nTileInfoNumber;
int nObjectNumber;
};
struct [B]VERTEXINFO[/B]
{
float[3] pos;
float[3] nor;
};
struct [B]TILEINFOCLIENT[/B]
{
int useTexNumber;
unsigned int dwWaterType;
int waterHeight;
short waterTexNumber;
unsigned char bMove;
int bEnableLand;
unsigned char bEventType;
}
struct [B]OBJECTINFOCLIENT[/B]
{
unsigned int dwObjType;
int nObjCount;
float[3] vPos;
float[3] vVel;
float[3] vUp;
unsigned int dwObjectMonsterUniqueNumber;
unsigned char bObjectTexIndex;
unsigned int nObjectSrcIndex;
unsigned char bBodyCondition;
int bIsEvent;
unsigned char bEventType;
short sEventIndexFrom;
short sEventIndexTo;
short sEventIndex3;
char strEventParam[40];
}
MAP_DATA, followed by
VERTEXINFO * nVertexNumber, followed by
TILEINFOCLIENT * nTileInfoNumber, and finally
OBJECTINFOCLIENT * nObjectNumber.
Was it really so hard to gather all this information from the source?