World Painter 2D: Difference between revisions

From Burnout Wiki
Content added Content deleted
mNo edit summary
m (Wording)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ParadiseResourceTypeInfobox
[[File:Districts colored.png|thumb|right|The Districts World Painter 2D resource interpreted as an image.]]
| name = WorldPainter2D
| othernames = World Painter 2D
| example = [[File:Districts colored.png|frameless]]<br />Districts from v1.9 represented as an image.
| resourcenames = Districts<br />Ambiences
| id = 0x30
| category = Generic
| memdist = Main Memory only
}}


World painter 2D resources are large arrays of district indices representing certain aspects of the game. This includes districts themselves and ambiences.
World painter 2D resources are large arrays of district indices representing certain aspects of the game. These aspects include districts themselves and ambiences.


= Structures =
= Structures =
Line 10: Line 18:
=== Header ===
=== Header ===
{| class="wikitable"
{| class="wikitable"
|-
! Offset !! Length !! Type !! Name !! Description !! Comments
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
|-
Line 18: Line 25:
|}
|}


These values are used in combination with the real world origin and size for scaling. The world origin and size is stored in the game's executable.
These fields are used in combination with hardcoded world origin and size values for scaling purposes.


=== Data ===
=== Data ===
The header is immediately followed by data in the form of a grid of single-byte district indices. The width and height of this grid is determined by the header. All known resources are 384x256.
The header is immediately followed by data in the form of a grid of single-byte district indices. The width and height of this grid is determined by the header. In version 1.0 of [[Burnout Paradise]], the grid is 256x256, while all subsequent versions are 384x256.


These values correspond to [[Paradise City/Districts|BrnWorld::EDistrict]], except the invalid district is denoted as 0xFF (255) instead.
These values correspond to [[Paradise City/Districts|BrnWorld::EDistrict]], except the invalid district is denoted as 0xFF (255) instead.

Latest revision as of 03:59, 21 January 2024

WorldPainter2D
aka World Painter 2D

Districts from v1.9 represented as an image.
Resource names Districts
Ambiences
Type ID 0x30
Category Generic
Memory
distribution
Main Memory only
Imports Unknown
Imported by Unknown
Editor
available?
No

World painter 2D resources are large arrays of district indices representing certain aspects of the game. These aspects include districts themselves and ambiences.

Structures

Note: World painter 2D resources begin with a Binary File resource.

There is not a structure directly associated with World Painter 2D. It is treated like a regular binary resource and the data of that resource is instead parsed as a part of the CgsWorld::WorldMap2D construction.

Header

Offset Length Type Name Description Comments
0x0 0x2 uint16_t muWidth Width of the map
0x2 0x2 uint16_t muHeight Height of the map

These fields are used in combination with hardcoded world origin and size values for scaling purposes.

Data

The header is immediately followed by data in the form of a grid of single-byte district indices. The width and height of this grid is determined by the header. In version 1.0 of Burnout Paradise, the grid is 256x256, while all subsequent versions are 384x256.

These values correspond to BrnWorld::EDistrict, except the invalid district is denoted as 0xFF (255) instead.