forked from Spore-Community/Spore-ModAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommonIDs.h
More file actions
355 lines (305 loc) · 9.58 KB
/
CommonIDs.h
File metadata and controls
355 lines (305 loc) · 9.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
/****************************************************************************
* Copyright (C) 2019 Eric Mor
*
* This file is part of Spore ModAPI.
*
* Spore ModAPI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#pragma once
#include <stdint.h>
enum ModelTypes
{
kPlantSmall = 0xBCD73E89,
kPlantMedium = 0xB8669EC9,
kPlantLarge = 0x37148141,
kCell = 0xDFAD9F51,
kCreature = 0x9EA3031A,
kTribeCreature = 0x372E2C04,
kCivCreature = 0xCCC35C46,
kSpaceCreature = 0x65672ADE,
kAdventurerCreature = 0x4178B8E8,
kBuildingCityHall = 0x99E92F05,
kBuildingEntertainment = 0x72C49181,
kBuildingIndustry = 0x47C10953,
kBuildingHouse = 0x4E3F7777,
kBuildingFarm = 0xBDD15F3D,
kVehicleHarvester = 0xC0B74287,
kVehicleMilitaryLand = 0x7D433FAD,
kVehicleMilitaryWater = 0x8F963DCB,
kVehicleMilitaryAir = 0x441CD3E6,
kVehicleCulturalLand = 0x9AD7D4AA,
kVehicleCulturalWater = 0x1F2A25B6,
kVehicleCulturalAir = 0x449C040F,
kVehicleEconomicLand = 0xF670AA43,
kVehicleEconomicWater = 0x2A5147A9,
kVehicleEconomicAir = 0x1A4E0708,
kVehicleColonyLand = 0xBC1041E6,
kVehicleColonyWater = 0xC15695DA,
kVehicleColonyAir = 0x2090A11B,
kVehicleUFO = 0x98E03C0D,
};
enum EditorManipulators : uint32_t
{
kEditorManipulationStackingSimple = 0x889CDBFF,
kEditorManipulationStacking = 0x67B68E4D,
kEditorManipulationPinning = 0xA9910288,
kEditorManipulationReplacement = 0x58891023,
kEditorManipulationDeformHandle = 0x9F48C094,
kEditorManipulationRotationHandle = 0x855DE44D,
kEditorManipulationSpine = 0x5FDE642E,
kEditorManipulationSpineScaling = 0x7AD67439,
kEditorManipulationSpineResize = 0xBB46D99A,
kEditorManipulationLimb = 0x8665F54D,
kEditorManipulationBoneRotation = 0xE931544D,
kEditorManipulationTranslateCreature = 0x9ED74A02,
kEditorManipulationCreatureTest = 0xF818C5BA,
kEditorManipulationCellTorso = 0x2D35AF62,
kEditorManipulationCellPinning = 0x1B73114C,
kEditorManipulationInterpenetration = 0x6125EE88,
kEditorManipulationPlanarInterpenetration = 0xF48AB41C,
};
enum GameModeIDs
{
/// Not a game mode by itself, used to index game modes.
kGameModeBase = 0x1654C00,
kGameCell = 0x1654C00,
kGameCreature = 0x1654C01,
kGameTribe = 0x1654C02,
kGameCiv = 0x1654C04,
kGameSpace = 0x1654C05,
kGameEditMode = 0x1654C06,
kLoadGameMode = 0x1654C08,
kScenarioMode = 0x1654C10,
kEditorMode = 0x00DBDBA1,
kGGEMode = 0x2CCD1D2,
kGameCinematicsMode = 0x8916F92D
};
enum VehicleLocomotion
{
kVehicleLand = 0,
kVehicleWater = 1,
kVehicleAir = 2,
};
enum VehiclePurpose
{
kVehicleMilitary = 0,
kVehicleCultural = 1,
kVehicleEconomic = 2,
kVehicleColony = 3,
};
enum Difficulty
{
kDifficultyEasy = 0,
kDifficultyMedium = 1,
kDifficultyHard = 2,
};
enum InterfaceId
{
kIIDMin = 0,
kIIDFactory = 1,
kIIDMax = 0xffffffff,
};
/// Contains the ID of some important file types.
namespace TypeIDs
{
enum Names : uint32_t
{
jpeg = 0x2F7D0002,
png = 0x2F7D0004,
bmp = 0x2F7D0005,
tga = 0x2F7D0006,
gif = 0x2F7D0007,
/// App::PropertyList files.
prop = 0x00B1B104,
/// Most textures and models.
rw4 = 0x2F4E681B,
/// Creatures
crt = 0x2B978C46,
/// Buildings.
bld = 0x2399BE55,
/// Land, water and air vehicles.
vcl = 0x24682294,
/// Cells.
cll = 0x3D97A8E4,
/// Spaceships.
ufo = 0x476A98C7,
/// Flora.
flr = 0x438F6347,
/// City Music Planner (Anthems)
cmp = 0x04F684A4,
/// Conversation
cnv = 0x055ADA24,
/// Binary Editor Model
bem = 0x1A99B06B,
/// Spore Materials
smt = 0x0469A3F7,
/// Game-generated textures
raster = 0x2F4E681C,
/// Game-generated models
gmdl = 0x00E6BCE5,
/// Effect directory
effdir = 0xEA5118B0,
/// Animation data
animation = 0xEE17C6AD,
/// Data of an adventure
adventure = 0x366A930D,
adv = adventure,
/// Type for Pollinator::cAssetMetadata files
pollen_metadata = 0x30BDEE3,
dds = 0x17952E6C,
/// Simulator::Cell::cCellBackgroundMapResource
backgroundMap = 0x612B3191,
/// Simulator::Cell::cCellEffectMapResource
effectMap = 0x433FB70C,
/// Simulator::Cell::cCellCellResource
cell = 0xDFAD9F51,
/// Simulator::Cell::cCellGlobalsResource
globals = 0x2A3CE5B7,
/// Simulator::Cell::cCellLookAlgorithmResource
look_algorithm = 0xDBA35AE2,
/// Simulator::Cell::cCellLookTableResource
look_table = 0x8C042499,
/// Simulator::Cell::cCellLootTableResource
lootTable = 0xD92AF091,
/// Simulator::Cell::cCellPopulateResource
populate = 0xDA141C1B,
/// Simulator::Cell::cCellPowersResource
powers = 0x754BE343,
/// Simulator::Cell::cCellRandomCreatureResource
random_creature = 0xF9C3D770,
/// Simulator::Cell::cCellStructureResource
structure = 0x4B9EF6DC,
/// Simulator::Cell::cCellWorldResource
world = 0x9B8E862F,
/// Simulator::Cell::cAdvectResource
advect = 0x04805684,
/// App::cArithmeticaResource
arth = 0x0472329B,
txt = 0x24A0E52
};
}
/// Contains the ID of some important Spore folders.
namespace GroupIDs
{
// We cannot use enum class, doesn't implicitly cast
enum Names : uint32_t
{
/// Global folder, also known as animations~. It's 0x00000000
Global = 0,
/// Where camera configuration .prop files are stored
CameraProperties = 0x40410100,
NounDefinitions = 0x02E9C426,
/// Where editor configuration .prop files are stored
EditorSetup = 0x40600100,
EditorConfig = EditorSetup,
/// Where part models are stored
EditorRigblocks = 0x40606000,
GameTuning = 0x02AE0C7E,
/// Contains the palette files loaded by Palettes::PaletteMain
Palettes = 0x406B6A00,
PaletteDefinitions = Palettes,
/// Where adventure props are stored
PaletteItems = 0xD87454E6,
/// Where editor paint .prop files are stored
Paints = 0x406A0200,
Physics = 0x02A8CB47,
Verbtrays = 0xAF028F41,
/// Where space tools .prop files are stored
SpaceTools = 0x30608F0B,
/// Where trading configuration of space items are stored. Check Simulator::cSpaceTrading
SpaceTrading_ = 0x034D97FA,
TribalTools = 0xF37C24E6,
TribeToolData = 0x04292F52,
TribePlans = 0x72D02C25,
Abilities = 0x01B68DB4,
CreatureAbilities = 0xDD91AC58,
TribeAbilities = 0xC85C1F8B,
AbilityTemplates = 0xD2FCB262,
TribeAbilityTemplates = 0x57C90330,
/// Where cell .cll files are stored
CellModels = 0x40616200,
/// Where creature .crt files are stored
CreatureModels = 0x40626200,
// The super high-res.gmdl files of creatures are stored in this folder
CreatureModelsHQ = 0x40627100,
/// Where building .bld files are stored
BuildingModels = 0x40636200,
/// Where vehicle .vcl files are stored
VehicleModels = 0x40646200,
/// Where vehicle .ufo files are stored
UfoModels = 0x40656200,
UFOModels = UfoModels,
/// Where flora .flr files are stored
FloraModels = 0x40666200,
// Where palette assemblies are stored
PaletteModels = 0x406B6200,
/// Where city music .cmp files are stored
CityMusic = 0x40C0C200,
/// Where adventure .adv files are stored
Adventures = 0x408A0000,
CellImages = CellModels + 1,
CreatureImages = CreatureModels + 1,
BuildingImages = BuildingModels + 1,
VehicleImages = VehicleModels + 1,
UfoImages = UfoModels + 1,
UFOImages = UfoImages,
FloraImages = FloraModels + 1,
AdventuresLargeCardImage1 = Adventures + 1,
AdventuresLargeCardImage2 = Adventures + 2,
AdventuresLargeCardImage3 = Adventures + 3,
AdventuresLargeCardImage4 = Adventures + 4,
CellModelsConfig = 0x4061E500,
CreatureModelsConfig = 0x4062E500,
BuildingModelsConfig = 0x4063E500,
VehicleModelsConfig = 0x4064E500,
UfoModelsConfig = 0x4065E500,
UFOModelsConfig = UfoModelsConfig,
FloraModelsConfig = 0x4066E500,
PaletteModelsConfig = 0x406BE500,
CivicObjects = 0x9430ADD7,
/// The main folder that contains planet scripts. The rest of the folders can be obtained by adding 0x100, 0x200,..., 0xF00
PlanetScripts = 0x4184A100,
/// This folder contains popups used in Space stage that can be used with UIEventLog. The hash is FNV of 'Data/Events/Space'.
SpacePopups = 0x131A9F54,
SpaceEvents = SpacePopups,
/// This folder contains popups used in Civilization stage that can be used with UIEventLog. The hash is FNV of 'Data/Events/CityCiv'.
CivPopups = 0xAA9A8ED7,
CivEvents = CivPopups,
/// This folder contains popups used in Tribe stage that can be used with UIEventLog. The hash is FNV of 'Data/Events/Tribe'.
TribePopups = 0x182CD6CE,
TribeEvents = TribePopups,
CivicThumbs = 0x65928944,
PlannerThumbnails = CivicThumbs,
AssetBrowserData = 0x851D4139,
AssetBrowserConfig = 0x9A74416B,
AssetBrowserFeedLists = 0x6EDC12D4,
AssetBrowserFeedCategories = 0x06B38241,
AssetBrowserFeedItems = 0x4E5892EB,
AssetBrowserFilter = 0xCC489C6F,
AssetBrowserSort = 0xC5296FA9,
AssetBrowserGraphics = 0xCA14DE92,
GameEntryImages = 0x199B485,
EditorPlannerImages = 0x355BA26,
Achievements = 0x05BEFD27,
AchievementImages = 0x260EB59C,
Cursors = 0x02393C07,
terrainSystem_gameAsset = 0x40A02200,
CompiledStatesLink = 0x40212000,
CompiledStates = 0x40212001,
ShaderFragments = 0x40212002,
Shaders = 0x40212004,
Scripts1 = 0x24A4F5A,
SharedDialogs = 0x490F6945
};
}