Difference between revisions of "Collection ID"

From Mania Tech Wiki
Jump to navigation Jump to search
(Created page with "A '''collection ID''' is an index number (position) into a global string table. It is typically used for lookbackstrings in GBX files. The following IDs ha...")
 
(Added the string IDs)
Line 1: Line 1:
A '''collection ID''' is an index number (position) into a global string table. It is typically used for lookbackstrings in [[GBX#Primitives|GBX]] files.
+
A '''collection ID''' is an identifier that specifies the environment for which an object was created.
 +
 
 +
Technically, the collection ID is stored in the class [[ManiaPlanet_internals#Id|CMwId]] as part of the structure [[ManiaPlanet_internals#Identifier|SGameCtnIdentifier]].
  
 
The following IDs have been identified:
 
The following IDs have been identified:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! ID !! Collection
+
! Collection
 +
! Number
 +
! Text
 +
! Stored as
 +
|-
 +
| Desert
 +
| 0
 +
| Speed
 +
| Text
 +
|-
 +
| Snow
 +
| 1
 +
| Alpine
 +
| Text
 +
|-
 +
| Rally
 +
| 2
 +
| Rally
 +
| Text
 +
|-
 +
| Island
 +
| 3
 +
| Island
 +
| Text
 +
|-
 +
| Bay
 +
| 4
 +
| Bay
 +
| Text
 +
|-
 +
| Coast
 +
| 5
 +
| Coast
 +
| Text
 +
|-
 +
| Stadium
 +
| 6
 +
| Stadium
 +
| Text
 +
|-
 +
| Basic
 +
| 7
 +
| Basic
 +
| Text
 +
|-
 +
| Plain
 +
| 8
 +
| Plain
 +
| Text
 +
|-
 +
| Moon
 +
| 9
 +
| Moon
 +
| Text
 +
|-
 +
| Toy
 +
| 10
 +
| Toy
 +
| Text
 +
|-
 +
| Valley
 +
| 11
 +
|
 +
| Number
 +
|-
 +
| Canyon
 +
| 12
 +
|
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 11 || Valley
+
| Lagoon
 +
| 13
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 12 || Canyon
+
| Arena
 +
| 14
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 13 || Lagoon
+
| TMCommon
 +
| 17
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 14 || Arena
+
| History
 +
| 100
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 17 || TMCommon
+
| Society
 +
| 101
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 100 || History
+
| Galaxy
 +
| 102
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 101 || Society
+
| Gothic
 +
| 200
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 102 || Galaxy
+
| Paris
 +
| 201
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 200 || Gothic
+
| Storm
 +
| 202
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 201 || Paris
+
| Cryo
 +
| 203
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 202 || Storm
+
| Meteor
 +
| 204
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 203 || Cryo
+
| SMCommon
 +
| 299
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 204 || Meteor
+
| Vehicles
 +
| 10000
 +
| Vehicles
 +
| Text
 
|-
 
|-
|style="text-align: right;"| 299 || SMCommon
+
| Orbital
 +
| 10001
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 10001 || Orbital
+
| Actors
 +
| 10002
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 10002 || Actors
+
| Common
 +
| 10003
 +
|  
 +
| Number
 
|-
 
|-
|style="text-align: right;"| 10003 || Common
+
| _Unassigned
 +
| -1
 +
| Unassigned
 +
| Text
 
|}
 
|}
  
 
[[Category:Internals]]
 
[[Category:Internals]]

Revision as of 19:45, 7 June 2017

A collection ID is an identifier that specifies the environment for which an object was created.

Technically, the collection ID is stored in the class CMwId as part of the structure SGameCtnIdentifier.

The following IDs have been identified:

Collection Number Text Stored as
Desert 0 Speed Text
Snow 1 Alpine Text
Rally 2 Rally Text
Island 3 Island Text
Bay 4 Bay Text
Coast 5 Coast Text
Stadium 6 Stadium Text
Basic 7 Basic Text
Plain 8 Plain Text
Moon 9 Moon Text
Toy 10 Toy Text
Valley 11 Number
Canyon 12 Number
Lagoon 13 Number
Arena 14 Number
TMCommon 17 Number
History 100 Number
Society 101 Number
Galaxy 102 Number
Gothic 200 Number
Paris 201 Number
Storm 202 Number
Cryo 203 Number
Meteor 204 Number
SMCommon 299 Number
Vehicles 10000 Vehicles Text
Orbital 10001 Number
Actors 10002 Number
Common 10003 Number
_Unassigned -1 Unassigned Text