[STICKY] Random tidbits about UO file lengths

Want to discuss changes to the UOX3 source code? Got a code-snippet you'd like to post? Anything related to coding/programming goes here!
Post Reply
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Random tidbits about UO file lengths

Post by Xuri »

Code: Select all

const UI16 LANDDATA_SIZE		= 0x4000; //(512 * 32);

//! these are the fixed record lengths as determined by the .mul files from OSI
//! i made them longs because they are used to calculate offsets into the files
const UI32 MultiRecordSize			= 12L;
const UI32 MultiRecordSizeHS		= 16L;
const UI32 TileRecordSize			= 26L;
const UI32 TileRecordSizeHS			= 41L;
const UI32 MapRecordSize			= 3L;
const UI32 MapRecordSizeHS			= 4L;
const UI32 MultiIndexRecordSize		= 12L;
const UI32 StaticRecordSize			= 7L;
const UI32 StaticIndexRecordSize	= 12L;
const UI32 MapBlockSize				= 196L;

Code: Select all

    // multiLength determines version of datafiles used by server
    //    962928 - 7.0.15.1 to 7.0.23.1 - Additional SI32 unknown1 property added
    //    908592 - 7.0.9.0
    //    596976 - 7.0.8.2
    //    593616 - 5.0.9.1 to 6.1.14.1
    //    592560 - 4.0.11c
-= Ho Eyo He Hum =-
punt
VIP
Posts: 244
Joined: Wed Mar 24, 2004 7:46 pm
Has thanked: 0
Been thanked: 9 times

Post by punt »

do we have the width and length of each of the map# s? I know map0, but not the others.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Found this nice overview on the homepage of CentrED, which conforms to the XY sizes specified in UOX3's maps.dfn/maps.4xclients.old files:
UO Map sizes.JPG
-= Ho Eyo He Hum =-
Post Reply