Right now I have:Speed module can't be used in FOO
Code: Select all
module_specification =
{
module_slots = 2
},
allowed_effects = {"productivity", "speed", "pollution"},
Right now I have:Speed module can't be used in FOO
Code: Select all
module_specification =
{
module_slots = 2
},
allowed_effects = {"productivity", "speed", "pollution"},
Code: Select all
data:extend {{
type = 'module',
name = id,
icon = '__mymod__/graphics/item/'..name..'.png',
flags = { 'goes-to-main-inventory' },
subgroup = 'module',
category = category,
tier = 1,
order = order,
stack_size = stack,
default_request_amount = 10,
effect = { [ name ] = { bonus = 1.0 } }
}}
This.aubergine18 wrote: [...]
EDIT: Or are you making a custom factory and it's the factory that won't accept the module?
Code: Select all
{
type = "assembling-machine",
localised_name = "FOO",
name = "FOO",
icon = "__BAR__/graphics/icons/FOO.png",
flags = {"placeable-neutral","player-creation"},
minable = {mining_time = 1, result = "FOO"},
fast_replaceable_group = "FOO",
max_health = 300,
corpse = "big-remnants",
dying_explosion = "medium-explosion",
collision_box = {{-2.4, -2.4}, {2.4, 2.4}},
selection_box = {{-2.5, -2.5}, {2.5, 2.5}},
module_specification =
{
module_slots = 2
},
allowed_effects = {"productivity", "speed", "pollution"},
crafting_categories = {"FooManFoo"},
crafting_speed = 0.75,
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
emissions = 0.02 / 2
},
energy_usage = "200kW",
ingredient_count = 3,
animation ={
filename = "__BAR__/graphics/entity/FOO.png",
priority = "extra-high",
width = 192,
height = 192,
frame_count = 16,
line_length = 4,
shift = {0.45, 0.7},
animation_speed = 0.5
},
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
working_sound =
{
{
[...]--Soundstuff
}
},
fluid_boxes =
{
[...]--FLuidboxstuff
}
},
pipe_covers = pipecoverspictures()
},