This page is located on the SimsWiki. To view it in it's original form, click here.
Modding Reference by Category

Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference 

World Boundaries-WBND
TypeID:0x05DA8AF6
Game Version:The Sims 3



Overview

This data is in the same format as Sims_3:0x3D8632D0, with one less field in the header. The data in here is compressed with a very simplistic block compression. The map is split into 16x16 blocks (Or whatever the header calls for) and each is either missing (Indicating no entry allowed), a single value for the whole block, or given individual values for each point. The values are one of three values. 0xff means that the spot is outside the boundry. 0x80 means the camera can go there but sims can not, and 0x00 means that both sims and the camera can go there.

WORD version 0x300
WORD 0xA5FF
DWORD map width (0x800 for current neighborhoods)
DWORD map height (0x800 for current neighborhoods)
DWORD block width
DWORD block height
DWORD layer count (1)
REP layer count
    [BYTE 0 padding to next DWORD boundry]
    DWORD size (Of this layer, not counting the first two DWORDs)
    DWORD blockcount
    BYTE 0
    REP blockcount
        WORD block number (Big endian order, NOT little endian/Intel order)
        BYTE compressed
        IF compressed
            BYTE data (For all values in the block)
        ELSE
            REP block height
                REP block width
                    BYTE data


Modding Reference by Category

Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference