I dabbled into modding for the first time. I use the Marathon Mod as a blueprint for what I call "HarderEnergy" mod, which only aims to reduce energy values of wood, coal and solid fuel, as well as reduce production from solar panels and capacity of accumulators.
It's a very short mod, and I don't know why it doesn't recognize the new values. Does someone know what I did wrong?
Code: Select all
-- Rebalanced MJ value
-- wood 4MJ -> 2MJ, other wooden objects scaled accordingly
-- coal 8MJ -> 4MJ
-- solid fuel 25MJ -> 16MJ
--
-- Rebalanced solar power
-- Solar panel 60KW -> 10KW
-- Accumulator Storage 5MJ -> 3MJ
-- Accumulator flow 300KW -> 150KW
data:extend(
{
-- Fuels
{
type = "item",
name = "raw-wood",
icon = "__base__/graphics/icons/raw-wood.png",
flags = {"goes-to-main-inventory"},
fuel_value = "2MJ",
subgroup = "raw-material",
order = "a[raw-wood]",
stack_size = 50
},
{
type = "item",
name = "wood",
icon = "__base__/graphics/icons/wood.png",
flags = {"goes-to-main-inventory"},
fuel_value = "1MJ",
subgroup = "raw-material",
order = "a[wood]",
stack_size = 50
},
{
type = "item",
name = "wooden-chest",
icon = "__base__/graphics/icons/wooden-chest.png",
flags = {"goes-to-quickbar"},
fuel_value = "2MJ",
subgroup = "storage",
order = "a[items]-a[wooden-chest]",
place_result = "wooden-chest",
stack_size = 50
},
{
type = "item",
name = "small-electric-pole",
icon = "__base__/graphics/icons/small-electric-pole.png",
flags = {"goes-to-quickbar"},
subgroup = "energy-pipe-distribution",
order = "a[energy]-a[small-electric-pole]",
place_result = "small-electric-pole",
fuel_value = "2MJ",
stack_size = 50
},
{
type = "item",
name = "coal",
icon = "__base__/graphics/icons/coal.png",
dark_background_icon = "__base__/graphics/icons/coal-dark-background.png",
flags = {"goes-to-main-inventory"},
fuel_value = "4MJ",
subgroup = "raw-material",
order = "b[coal]",
stack_size = 50
},
{
type = "item",
name = "solid-fuel",
icon = "__base__/graphics/icons/solid-fuel.png",
flags = {"goes-to-main-inventory"},
fuel_value = "16MJ",
subgroup = "raw-resource",
order = "c[solid-fuel]",
stack_size = 50
},
-- Solar
{
type = "solar-panel",
name = "solar-panel",
icon = "__base__/graphics/icons/solar-panel.png",
flags = {"placeable-neutral", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "solar-panel"},
max_health = 100,
corpse = "big-remnants",
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
energy_source =
{
type = "electric",
usage_priority = "solar"
},
picture =
{
filename = "__base__/graphics/entity/solar-panel/solar-panel.png",
priority = "high",
width = 104,
height = 96
},
production = "10kW"
},
-- Accumulator
{
type = "accumulator",
name = "basic-accumulator",
icon = "__base__/graphics/icons/basic-accumulator.png",
flags = {"placeable-neutral", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "basic-accumulator"},
max_health = 150,
corpse = "medium-remnants",
collision_box = {{-0.9, -0.9}, {0.9, 0.9}},
selection_box = {{-1, -1}, {1, 1}},
energy_source =
{
type = "electric",
buffer_capacity = "3MJ",
usage_priority = "terciary",
input_flow_limit = "150kW",
output_flow_limit = "150kW"
},
picture =
{
filename = "__base__/graphics/entity/basic-accumulator/basic-accumulator.png",
priority = "extra-high",
width = 124,
height = 103,
shift = {0.7, -0.2}
},
charge_animation =
{
filename = "__base__/graphics/entity/basic-accumulator/basic-accumulator-charge-animation.png",
width = 138,
height = 135,
line_length = 8,
frame_count = 24,
shift = {0.482, -0.638},
animation_speed = 0.5
},
charge_cooldown = 30,
charge_light = {intensity = 0.3, size = 7},
discharge_animation =
{
filename = "__base__/graphics/entity/basic-accumulator/basic-accumulator-discharge-animation.png",
width = 147,
height = 128,
line_length = 8,
frame_count = 24,
shift = {0.395, -0.525},
animation_speed = 0.5
},
discharge_cooldown = 60,
discharge_light = {intensity = 0.7, size = 7},
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
working_sound =
{
sound =
{
filename = "__base__/sound/accumulator-working.ogg",
volume = 1
},
idle_sound = {
filename = "__base__/sound/accumulator-idle.ogg",
volume = 0.4
},
max_sounds_per_type = 5
},
},
}
)
Molay