My mod, I want to add a civilian building into the game so I can complete a scenario. Scenario being: taking over an abandoned city/stronghold.
Problem, I have an error that says : Path__CivilMod_0.1.1__/graphics/entity/civilian-center.png does not match any mod.
Will someone please help me? I am also having a hard time finding proper documentation on how to use the classes.
Code: Select all
data:extend({
{
type = "container",
name = "civilian-center",
icon = "__CivilMod_0.1.1__/graphics/icons/icon-civiliancenter.png",
flags = {"placeable-neutral", "placeable-player", "player-creation"},
minable = {mining_time = 2, result = "civilian-center"},
max_health = 350,
corpse = "medium-remnants",
dying_explosion = "medium-explosion",
open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
resistances =
{
{
type = "fire",
percent = 90
}
},
collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
fast_replaceable_group = "container",
inventory_size = 5,
picture =
{
filename = "__CivilMod_0.1.1__/graphics/entity/civilian-center.png",
priority = "high",
width = 200,
height = 200,
shift = {1.0, -0.3},
},
}
})