[0.12.20] Unhelpful error message regarding __source__/path
Posted: Sat Jan 02, 2016 3:16 pm
by Klonan
Well normally i have no problem with this, but i am having trouble finding where in my prototype definition the mistake is...
If the error message could tell me the line, it would help tons in the future for me and others
EDIT:
If the error message could tell me the line, it would help tons in the future for me and others
Current message
#
EDIT:
If anyone can spot the error I would be grateful
Code: Select all
blank =
{
filename = "__Concrete_Lamppost__/concrete_lamp-sheet.png",
priority = "extra-high",
width = 1,
height = 1
}
data:extend({
{
type = "item",
name = "concrete-lamppost",
icon = "__Concrete_Lamppost__/concrete_lamp_icon.png",
flags = {"goes-to-quickbar"},
subgroup = "energy-pipe-distribution",
order = "a[energy]-d[concrete-lamp]",
place_result = "concrete-lamppost",
stack_size = 50
},
{
type = "item",
name = "concrete-lamp",
icon = "__Concrete_Lamppost__/concrete_lamp_icon.png",
flags = {"goes-to-quickbar"},
subgroup = "energy-pipe-distribution",
order = "a[energy]-d[concrete-lamp]",
place_result = "concrete-lamp",
stack_size = 50
},
{
type = "recipe",
name = "concrete-lamp",
enabled = false,
ingredients =
{
{"wood", 2},
{"copper-cable", 2}
},
result = "concrete-lamp",
result_count = 1
},
{
type = "recipe",
name = "concrete-lamppost",
enabled = true,
ingredients =
{
{"concrete", 5},
{"iron-stick", 2},
{"small-lamp", 1}
},
result = "concrete-lamppost",
result_count = 1
},
{
type = "electric-pole",
name = "concrete-lamppost",
icon = "__Concrete_Lamppost__/concrete_lamp_icon.png",
flags = {"placeable-neutral", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "concrete-lamppost"},
max_health = 80,
corpse = "small-remnants",
collision_box = {{-0.15, -0.15}, {0.15, 0.15}},
selection_box = {{-0.4, -0.4}, {0.4, 0.4}},
drawing_box = {{-0.5, -2.6}, {0.5, 0.5}},
maximum_wire_distance = 15,
supply_area_distance = 0.5,
mined_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" },
vehicle_impact_sound = { filename = "__base__/sound/car-stone-impact.ogg", volume = 1.0 },
pictures =
{
filename = "__Concrete_Lamppost__/concrete_lamp-sheet.png",
priority = "extra-high",
width = 160,
height = 160,
direction_count = 4,
--shift = {1.4, -1.1}
},
connection_points =
{
{
shadow =
{
copper = {2.7, 0},
red = {2.3, 0},
green = {3.1, 0}
},
wire =
{
copper = {0, -2.7},
red = {-0.4,-2.7},
green = {0.4,-2.7}
}
},
{
shadow =
{
copper = {2.7, -0.05},
red = {2.2, -0.35},
green = {3, 0.12}
},
wire =
{
copper = {-0.04, -2.8},
red = {-0.3, -2.9},
green = {0.2, -2.6}
}
},
{
shadow =
{
copper = {2.5, -0.1},
red = {2.55, -0.45},
green = {2.5, 0.25}
},
wire =
{
copper = {-0.2, -2.7},
red = {-0.05, -2.95},
green = {0, -2.4}
}
},
{
shadow =
{
copper = {2.30, -0.1},
red = {2.65, -0.40},
green = {1.75, 0.20}
},
wire =
{
copper = {0, -2.7},
red = {0.3, -2.85},
green = {-0.3, -2.5}
}
}
},
radius_visualisation_picture = blank,
},
{
type = "lamp",
name = "concrete-lamp",
icon = blank,
flags = {"placeable-neutral", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "stone-brick"},
max_health = 55,
corpse = "small-remnants",
collision_box = {{-0, -0}, {0, 0}},
selection_box = {{-0, -0}, {0, 0}},
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
energy_source =
{
type = "electric",
usage_priority = "secondary-input"
},
energy_usage_per_tick = "4KW",
light = {intensity = 0.75, size = 30},
picture_off = blank,
picture_on = blank,
circuit_wire_connection_point =
{
shadow =
{
red = {0.759375, -0.096875},
green = {0.759375, -0.096875},
},
wire =
{
red = {0.30625, -0.39375},
green = {0.30625, -0.39375},
}
},
circuit_wire_max_distance = 0
},
})