Author Topic: Animation Indexes  (Read 4140 times)

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4954
Animation Indexes
« on: July 23, 2008, 09:24:33 PM »
For those that would like an easy way to pull out of the game what animation indexes correspond to which units, I wrote a bit of code to create such a (partial) list. For vehicles, it will read the 16 animations for each direction the unit is facing, for both eden and plymouth versions of the unit. For buildings, it will read the 10 different animations used by the building, for both eden and plymouth. It does not read the special vehicle animations, such as dumping cargo. It only reads the animations for the vehicle moving in each of the 16 angles of rotation. The other animations, such as dumping each cargo type, are in seperate tables, and there is no automated way to read them all. We'd have to check the exe to see how it works, find each table, and then extract the animations. That will be a job for another time.


For vehicles, the index is the angle of rotation. It starts pointing east, and rotates clockwise. For buildings, the index is the type of graphic. You can use this (partial) enum to help decipher the index meaning.
Code: [Select]
	enum BuildingAnimationTypeIndex
{
  AnimationTypeConstruction = 0,
  AnimationTypeDamagedLight = 1,
  AnimationTypeDamagedHeavy = 2,
  AnimationTypeDestruction = 3,
  AnimationTypeIcon   = 4,
  AnimationTypeNormal   = 5,
  AnimationTypeAmbient1  = 6, // **
  AnimationTypeAmbient2  = 7, // **
  // = 8,
  // = 9,
  // ----
};
The unknown indexes may just be room for more ambient animations. I don't really know. Most buildings don't use them, so I didn't really look into them.


A list of all these vehicle and building animation indexes follows.
Code: [Select]
AnimationList: 1 BIG_TRUCK
 Eden:
  0: 8
  1: 23
  2: 22
  3: 21
  4: 20
  5: 19
  6: 18
  7: 17
  8: 16
  9: 15
  10: 14
  11: 13
  12: 12
  13: 11
  14: 10
  15: 9
 Plymouth:
  0: 24
  1: 39
  2: 38
  3: 37
  4: 36
  5: 35
  6: 34
  7: 33
  8: 32
  9: 31
  10: 30
  11: 29
  12: 28
  13: 27
  14: 26
  15: 25

AnimationList: 2 CON_TRUCK
 Eden:
  0: 287
  1: 302
  2: 301
  3: 300
  4: 299
  5: 298
  6: 297
  7: 296
  8: 295
  9: 294
  10: 293
  11: 292
  12: 291
  13: 290
  14: 289
  15: 288
 Plymouth:
  0: 319
  1: 334
  2: 333
  3: 332
  4: 331
  5: 330
  6: 329
  7: 328
  8: 327
  9: 326
  10: 325
  11: 324
  12: 323
  13: 322
  14: 321
  15: 320

AnimationList: 3 SPIDER
 Eden:
  0: 1633
  1: 1648
  2: 1647
  3: 1646
  4: 1645
  5: 1644
  6: 1643
  7: 1642
  8: 1641
  9: 1640
  10: 1639
  11: 1638
  12: 1637
  13: 1636
  14: 1635
  15: 1634
 Plymouth:
  0: 1633
  1: 1648
  2: 1647
  3: 1646
  4: 1645
  5: 1644
  6: 1643
  7: 1642
  8: 1641
  9: 1640
  10: 1639
  11: 1638
  12: 1637
  13: 1636
  14: 1635
  15: 1634

AnimationList: 4 SCORPION
 Eden:
  0: 1649
  1: 1664
  2: 1663
  3: 1662
  4: 1661
  5: 1660
  6: 1659
  7: 1658
  8: 1657
  9: 1656
  10: 1655
  11: 1654
  12: 1653
  13: 1652
  14: 1651
  15: 1650
 Plymouth:
  0: 1649
  1: 1664
  2: 1663
  3: 1662
  4: 1661
  5: 1660
  6: 1659
  7: 1658
  8: 1657
  9: 1656
  10: 1655
  11: 1654
  12: 1653
  13: 1652
  14: 1651
  15: 1650

AnimationList: 5 LIGHT_TANK
 Eden:
  0: 1202
  1: 1217
  2: 1216
  3: 1215
  4: 1214
  5: 1213
  6: 1212
  7: 1211
  8: 1210
  9: 1209
  10: 1208
  11: 1207
  12: 1206
  13: 1205
  14: 1204
  15: 1203
 Plymouth:
  0: 1227
  1: 1242
  2: 1241
  3: 1240
  4: 1239
  5: 1238
  6: 1237
  7: 1236
  8: 1235
  9: 1234
  10: 1233
  11: 1232
  12: 1231
  13: 1230
  14: 1229
  15: 1228

AnimationList: 6 MED_TANK
 Eden:
  0: 239
  1: 239
  2: 246
  3: 246
  4: 245
  5: 245
  6: 244
  7: 244
  8: 243
  9: 243
  10: 242
  11: 242
  12: 241
  13: 241
  14: 240
  15: 240
 Plymouth:
  0: 335
  1: 335
  2: 342
  3: 342
  4: 341
  5: 341
  6: 340
  7: 340
  8: 339
  9: 339
  10: 338
  11: 338
  12: 337
  13: 337
  14: 336
  15: 336

AnimationList: 7 BIG_TANK
 Eden:
  0: 231
  1: 231
  2: 238
  3: 238
  4: 237
  5: 237
  6: 236
  7: 236
  8: 235
  9: 235
  10: 234
  11: 234
  12: 233
  13: 233
  14: 232
  15: 232
 Plymouth:
  0: 279
  1: 279
  2: 286
  3: 286
  4: 285
  5: 285
  6: 284
  7: 284
  8: 283
  9: 283
  10: 282
  11: 282
  12: 281
  13: 281
  14: 280
  15: 280

AnimationList: 8 SURVEYOR
 Eden:
  0: 1126
  1: 247
  2: 1125
  3: 254
  4: 1124
  5: 253
  6: 1123
  7: 252
  8: 1122
  9: 251
  10: 1129
  11: 250
  12: 1128
  13: 249
  14: 1127
  15: 248
 Plymouth:
  0: 2025
  1: 255
  2: 2032
  3: 262
  4: 2031
  5: 261
  6: 2030
  7: 260
  8: 2029
  9: 259
  10: 2028
  11: 258
  12: 2027
  13: 257
  14: 2026
  15: 256

AnimationList: 9 MINER
 Eden:
  0: 1170
  1: 1185
  2: 1184
  3: 1183
  4: 1182
  5: 1181
  6: 1180
  7: 1179
  8: 1178
  9: 1177
  10: 1176
  11: 1175
  12: 1174
  13: 1173
  14: 1172
  15: 1171
 Plymouth:
  0: 1186
  1: 1201
  2: 1200
  3: 1199
  4: 1198
  5: 1197
  6: 1196
  7: 1195
  8: 1194
  9: 1193
  10: 1192
  11: 1191
  12: 1190
  13: 1189
  14: 1188
  15: 1187

AnimationList: 10 GEO_METRO
 Eden:
  0: 1154
  1: 1169
  2: 1168
  3: 1167
  4: 1166
  5: 1165
  6: 1164
  7: 1163
  8: 1162
  9: 1161
  10: 1160
  11: 1159
  12: 1158
  13: 1157
  14: 1156
  15: 1155
 Plymouth:
  0: 1154
  1: 1154
  2: 1168
  3: 1168
  4: 1166
  5: 1166
  6: 1164
  7: 1164
  8: 1162
  9: 1162
  10: 1160
  11: 1160
  12: 1158
  13: 1158
  14: 1156
  15: 1156

AnimationList: 11 SCOUT
 Eden:
  0: 442
  1: 457
  2: 456
  3: 455
  4: 454
  5: 453
  6: 452
  7: 451
  8: 450
  9: 449
  10: 448
  11: 447
  12: 446
  13: 445
  14: 444
  15: 443
 Plymouth:
  0: 460
  1: 475
  2: 474
  3: 473
  4: 472
  5: 471
  6: 470
  7: 469
  8: 468
  9: 467
  10: 466
  11: 465
  12: 464
  13: 463
  14: 462
  15: 461

AnimationList: 12 BULL_DOZER
 Eden:
  0: 0
  1: 0
  2: 7
  3: 7
  4: 6
  5: 6
  6: 5
  7: 5
  8: 4
  9: 4
  10: 3
  11: 3
  12: 2
  13: 2
  14: 1
  15: 1
 Plymouth:
  0: 343
  1: 343
  2: 350
  3: 350
  4: 349
  5: 349
  6: 348
  7: 348
  8: 347
  9: 347
  10: 346
  11: 346
  12: 345
  13: 345
  14: 344
  15: 344

AnimationList: 13 MOBILE_HOME
 Eden:
  0: 303
  1: 318
  2: 317
  3: 316
  4: 315
  5: 314
  6: 313
  7: 312
  8: 311
  9: 310
  10: 309
  11: 308
  12: 307
  13: 306
  14: 305
  15: 304
 Plymouth:
  0: 263
  1: 278
  2: 277
  3: 276
  4: 275
  5: 274
  6: 273
  7: 272
  8: 271
  9: 270
  10: 269
  11: 268
  12: 267
  13: 266
  14: 265
  15: 264

AnimationList: 14 REPAIR_TRUCK
 Eden:
  0: 1130
  1: 1145
  2: 1144
  3: 1143
  4: 1142
  5: 1141
  6: 1140
  7: 1139
  8: 1138
  9: 1137
  10: 1136
  11: 1135
  12: 1134
  13: 1133
  14: 1132
  15: 1131
 Plymouth:
  0: 1130
  1: 1130
  2: 1144
  3: 1144
  4: 1142
  5: 1142
  6: 1140
  7: 1140
  8: 1138
  9: 1138
  10: 1136
  11: 1136
  12: 1134
  13: 1134
  14: 1132
  15: 1132

AnimationList: 15 WALL_TRUCK
 Eden:
  0: 1811
  1: 1153
  2: 1816
  3: 1152
  4: 1815
  5: 1151
  6: 1817
  7: 1150
  8: 1818
  9: 1149
  10: 1814
  11: 1148
  12: 1812
  13: 1147
  14: 1813
  15: 1146
 Plymouth:
  0: 1819
  1: 1834
  2: 1824
  3: 1833
  4: 1823
  5: 1832
  6: 1826
  7: 1831
  8: 1825
  9: 1830
  10: 1822
  11: 1829
  12: 1820
  13: 1828
  14: 1821
  15: 1827

AnimationList: 16 SCAT
 Eden:
  0: 457
  1: 456
  2: 455
  3: 454
  4: 453
  5: 452
  6: 451
  7: 450
  8: 449
  9: 448
  10: 447
  11: 446
  12: 445
  13: 444
  14: 443
 Plymouth:
  0: 475
  1: 474
  2: 473
  3: 472
  4: 471
  5: 470
  6: 469
  7: 468
  8: 467
  9: 466
  10: 465
  11: 464
  12: 463
  13: 462
  14: 461

AnimationList: 21 MINE
 Eden:
  0: 105
  1: 1001
  2: 1002
  3: 1003
  4: 1109
  5: 574
 Plymouth:
  0: 375
  1: 998
  2: 999
  3: 1000
  4: 1109
  5: 594
  6: 1848

AnimationList: 22 MINE_ADV
 Eden:
  0: 406
  1: 407
  2: 408
  3: 409
  4: 1109
  5: 575
 Plymouth:
  0: 421
  1: 422
  2: 423
  3: 424
  4: 1109
  5: 577

AnimationList: 23 TOWER_GUARD
 Eden:
  0: 81
  1: 110
  2: 111
  3: 376
  4: 1104
 Plymouth:
  0: 178
  1: 179
  2: 180
  3: 377
  4: 1104

AnimationList: 24 TOWER_LIGHT
 Eden:
  0: 155
  1: 116
  2: 117
  3: 206
  4: 1111
  5: 648
  6: 649
 Plymouth:
  0: 186
  1: 187
  2: 188
  3: 224
  4: 1112

AnimationList: 25 STORAGE_ORE
 Eden:
  0: 69
  1: 59
  2: 60
  3: 193
  4: 1109
  5: 2059
 Plymouth:
  0: 154
  1: 98
  2: 99
  3: 223
  4: 1109
  5: 2061

AnimationList: 26 STORAGE_RARE
 Eden:
  0: 390
  1: 391
  2: 392
  3: 393
  4: 1109
  5: 2060
 Plymouth:
  0: 394
  1: 395
  2: 396
  3: 397
  4: 1109
  5: 2062

AnimationList: 27 FORUM
 Eden:
  0: 159
  1: 160
  2: 161
  3: 228
  4: 1107
 Plymouth:
  0: 159
  1: 160
  2: 161
  3: 228
  4: 1107
  5: 2033

AnimationList: 28 COMMAND
 Eden:
  0: 70
  1: 61
  2: 62
  3: 194
  4: 1111
  5: 1845
 Plymouth:
  0: 140
  1: 84
  2: 85
  3: 211
  4: 1112
  5: 1854

AnimationList: 29 ASE
 Eden:
  0: 413
  1: 414
  2: 415
  3: 416
  4: 1100
 Plymouth:
  0: 413
  1: 414
  2: 415
  3: 416
  4: 1100
  5: 940
  6: 1863

AnimationList: 30 RESIDENCE
 Eden:
  0: 77
  1: 124
  2: 125
  3: 201
  4: 1107
  5: 610
  6: 611
  7: 1864
 Plymouth:
  0: 150
  1: 92
  2: 93
  3: 214
  4: 1107
  5: 612
  6: 613
  7: 1849

AnimationList: 31 ROBOT_COMMAND
 Eden:
  0: 78
  1: 126
  2: 127
  3: 202
  4: 1106
  5: 647
  6: 650
  7: 651
  8: 1858
 Plymouth:
  0: 149
  1: 94
  2: 95
  3: 215
  4: 1106
  5: 645
  6: 1852

AnimationList: 32 TRADE
 Eden:
  0: 386
  1: 387
  2: 388
  3: 389
  4: 1111
  5: 800
  6: 1838
 Plymouth:
  0: 363
  1: 362
  2: 361
  3: 364
  4: 1112
  5: 946
  6: 1837

AnimationList: 33 LAB
 Eden:
  0: 74
  1: 67
  2: 68
  3: 197
  4: 1110
  5: 642
  6: 1857
 Plymouth:
  0: 148
  1: 90
  2: 91
  3: 216
  4: 1110
  5: 2034

AnimationList: 34 MED_CENTER
 Eden:
  0: 145
  1: 118
  2: 119
  3: 207
  4: 1101
  5: 602
  6: 1743
 Plymouth:
  0: 417
  1: 418
  2: 419
  3: 420
  4: 1101
  5: 620
  6: 621
  7: 1739

AnimationList: 35 NURSERY
 Eden:
  0: 595
  1: 120
  2: 121
  3: 204
  4: 1107
  5: 596
  6: 597
  7: 598
 Plymouth:
  0: 607
  1: 181
  2: 182
  3: 221
  4: 1107
  5: 606
  6: 608
  7: 609

AnimationList: 36 SOLAR
 Eden:
  0: 80
  1: 130
  2: 131
  3: 374
  4: 1100
  5: 941
 Plymouth:
  0: 174
  1: 176
  2: 177
  3: 360
  4: 1100
  5: 942
  6: 175
  7: 2063
  8: 1851

AnimationList: 37 RECREATION
 Eden:
  0: 146
  1: 122
  2: 123
  3: 208
  4: 1107
  5: 614
  6: 615
  7: 616
  8: 1843
 Plymouth:
  0: 168
  1: 169
  2: 170
  3: 226
  4: 1107
  5: 617
  6: 618
  7: 619
  8: 1850

AnimationList: 38 UNIVERSITY
 Eden:
  0: 147
  1: 134
  2: 135
  3: 205
  4: 1107
  5: 667
  6: 668
  7: 1746
 Plymouth:
  0: 183
  1: 184
  2: 185
  3: 222
  4: 1107
  5: 937
  6: 936

AnimationList: 39 AGRIDOME
 Eden:
  0: 142
  1: 108
  2: 109
  3: 199
  4: 1105
  5: 801
 Plymouth:
  0: 138
  1: 82
  2: 83
  3: 210
  4: 1105
  5: 646

AnimationList: 40 DIRT
 Eden:
  0: 71
  1: 63
  2: 64
  3: 195
  4: 1101
  5: 802
  6: 803
  7: 1846
 Plymouth:
  0: 139
  1: 86
  2: 87
  3: 218
  4: 1101
  5: 1862

AnimationList: 41 GARAGE
 Eden:
  0: 2038
  1: 2040
  2: 2041
  3: 2036
  4: 1106
 Plymouth:
  0: 430
  1: 432
  2: 434
  3: 436
  4: 1106

AnimationList: 42 MAGMA_WELL
 Eden:
  0: 1336
  1: 410
  2: 411
  3: 412
  4: 1109
  5: 1337
 Plymouth:
  0: 1336
  1: 410
  2: 411
  3: 412
  4: 1109

AnimationList: 43 METEOR_DEF
 Eden:
  0: 567
  1: 568
  2: 569
  3: 570
  4: 1101
  5: 564
  6: 565
  7: 566
 Plymouth:
  0: 567
  1: 568
  2: 569
  3: 570
  4: 1101

AnimationList: 44 GEOTHERMAL
 Eden:
  0: 426
  1: 427
  2: 428
  3: 429
  4: 1100
  5: 1842
 Plymouth:
  0: 426
  1: 427
  2: 428
  3: 429
  4: 1100

AnimationList: 45 FACT_ANDROID
 Eden:
  0: 158
  1: 156
  2: 157
  3: 217
  4: 1840
 Plymouth:
  0: 158
  1: 156
  2: 157
  3: 217
  4: 1840
  5: 1847

AnimationList: 46 FACT_LUXURY
 Eden:
  0: 365
  1: 366
  2: 367
  3: 368
  4: 1107
  5: 1839
 Plymouth:
  0: 365
  1: 366
  2: 367
  3: 368
  4: 1107

AnimationList: 47 FACT_STRUCTURE
 Eden:
  0: 72
  1: 65
  2: 66
  3: 196
  4: 1108
  5: 73
 Plymouth:
  0: 143
  1: 88
  2: 89
  3: 212
  4: 1108
  5: 1860
  6: 1861

AnimationList: 48 FACT_VEHICLE
 Eden:
  0: 75
  1: 136
  2: 137
  3: 200
  4: 1106
  5: 807
  6: 2064
 Plymouth:
  0: 354
  1: 102
  2: 103
  3: 213
  4: 1106
  5: 1853

AnimationList: 49 LAB_STANDARD
 Eden:
  0: 141
  1: 114
  2: 115
  3: 192
  4: 1110
  5: 669
  6: 670
  7: 1747
  8: 1748
 Plymouth:
  0: 165
  1: 166
  2: 167
  3: 220
  4: 1110
  5: 671
  6: 1735
  7: 1736

AnimationList: 50 LAB_ADV
 Eden:
  0: 153
  1: 112
  2: 113
  3: 209
  4: 1110
  5: 600
  6: 601
  7: 1835
 Plymouth:
  0: 162
  1: 163
  2: 164
  3: 227
  4: 1110
  5: 643
  6: 644
  7: 1836

AnimationList: 51 OBSERVATORY
 Eden:
  0: 398
  1: 399
  2: 400
  3: 401
  4: 1103
  5: 654
  6: 655
  7: 656
 Plymouth:
  0: 398
  1: 399
  2: 400
  3: 401
  4: 1103

AnimationList: 52 RESIDENCE_P
 Eden:
  0: 171
  1: 172
  2: 173
  3: 225
  4: 1107
 Plymouth:
  0: 171
  1: 172
  2: 173
  3: 225
  4: 1107
  5: 640
  6: 641
  7: 1777

AnimationList: 53 RESIDENCE_E
 Eden:
  0: 152
  1: 106
  2: 107
  3: 198
  4: 1107
  5: 622
  6: 623
  7: 1778
 Plymouth:
  0: 152
  1: 106
  2: 107
  3: 198
  4: 1107

AnimationList: 54 SMELTER
 Eden:
  0: 79
  1: 128
  2: 129
  3: 203
  4: 1109
  5: 1007
  6: 1008
  7: 1855
 Plymouth:
  0: 144
  1: 96
  2: 97
  3: 219
  4: 1109
  5: 1009
  6: 1859

AnimationList: 55 SPACEPORT
 Eden:
  0: 425
  1: 402
  2: 403
  3: 404
  4: 1103
  5: 963
  6: 964
  7: 1844
 Plymouth:
  0: 440
  1: 437
  2: 438
  3: 439
  4: 1103
  5: 965
  6: 1741
  7: 1742

AnimationList: 56 SMELTER_ADV
 Eden:
  0: 369
  1: 370
  2: 371
  3: 372
  4: 1109
  5: 1841
 Plymouth:
  0: 189
  1: 190
  2: 191
  3: 229
  4: 1109
  5: 1010
  6: 1776

AnimationList: 57 GORF
 Eden:
  0: 382
  1: 383
  2: 384
  3: 385
  4: 1109
  5: 805
  6: 806
  7: 1744
  8: 1745
 Plymouth:
  0: 378
  1: 379
  2: 380
  3: 381
  4: 1109
  5: 1737
  6: 1738

AnimationList: 58 TOKAMAK
 Eden:
  0: 76
  1: 132
  2: 133
  3: 373
  4: 1100
  5: 2035
 Plymouth:
  0: 151
  1: 100
  2: 101
  3: 359
  4: 1100
  5: 351
  6: 652
  7: 653

I'll attach the file for easy reference.


Also note the internal tables store the values + 101, for some unknown reason. I converted the values back, by subtracting 101 before outputting the table. This way the values listed here match them as you'd find them in the Art Viewer. To save space, I only outputted values that were non-zero (before the conversion).


More tables to come at a later time.
 

Offline Leviathan

  • Hero Member
  • *****
  • Posts: 4055
Animation Indexes
« Reply #1 on: July 24, 2008, 09:43:17 AM »
Nice as allways :)