Closed angered-ghandi closed 8 years ago
Fire
is the only unit I could find with GraphicId(-1)
for standing_graphic
.
Throwaway branch with these changes.
UnitId(302): Unit {
id: UnitId(302),
unit_type: Flag,
name: "Fire",
name_id: LocalizationId(5092),
creation_id: LocalizationId(0),
class_id: 14,
standing_graphic: GraphicId(-1),
dying_graphics: [
GraphicId(-1),
GraphicId(-1)
],
death_mode: 0,
hit_points: 15,
line_of_sight: 0,
garrison_capability: 0,
collision_size_x: 0.5,
collision_size_y: 0.5,
collision_size_z: 2,
train_sound_id: SoundGroupId(-1),
dead_unit_id: UnitId(-1),
placement_mode: 5,
air_mode: true,
icon_id: -1,
hide_in_editor: true,
enabled: true,
placement_side_terrain_ids: [
TerrainId(-1),
TerrainId(-1)
],
placement_terrain_ids: [
TerrainId(-1),
TerrainId(-1)
],
clearance_size_x: 0.5,
clearance_size_y: 0.5,
hill_mode: 0,
visible_in_fog: true,
terrain_restriction: Flying,
fly_mode: false,
resource_capacity: 10,
resource_decay: 0.01,
blast_defense_level: 0,
sub_type: 0,
interaction_mode: 0,
minimap_mode: 0,
command_attribute: 0,
minimap_color: 0,
help_id: LocalizationId(20001),
hotkey_text_id: LocalizationId(-1),
hotkey: 0,
unselectable: false,
enable_auto_gather: false,
auto_gather_mode: 0,
auto_gather_id: 0,
selection_effect: 0,
editor_selection_color: 0,
selection_shape_size_x: 0.5,
selection_shape_size_y: 0.5,
selection_shape_size_z: 2,
resource_storage: [],
damage_graphics: [],
selection_sound: -1,
dying_sound: -1,
attack_mode: 0,
id2: 302,
motion_params: None,
commandable_params: None,
battle_params: None,
projectile_params: None,
trainable_params: None,
building_params: None
},
Gaia
UnitId(302)
Egyptian
Greek
Babylonian
Assyrian
Minoan
Hittite
Phoenician
Sumerian
Persian
Shang
Yamato
Choson
But mu0a3a_1
doesn't contain UnitId(302)
so I don't know why this graphic is being loaded.
Some of the game scenario files no longer load after unit rendering was added. For example:
Results in:
Investigate which unit is causing this, and why it has a negative standing graphic ID.