Trying to update this mod from 10.x to 14.22. Disclaimer: The original mod was made by "The Pear"
I'm having an issue on line 45 " ....'}' expected (to close '{' at line 45) near 'resistances'"
Thanks for any help(I really liked this mod when i could use it so any help is appreciated)
Code is below:
data:extend(
{
----------------------------------------edit15-------------------------------------------------------
-- {
-- type = "item",
-- name = "telesender",
-- icon = "__TeleBelts__/graphics/icons/telesender.png",
-- flags = {"placeable-neutral", "player-creation"},
-- subgroup = "belt",
-- minable = {hardness = 0.2, mining_time = 0.3, result = "telesender"},
-- max_health = 50,
-- corpse = "small-remnants",
-- dying_explosion = "medium-explosion"
-- resistances =
-- {
-- {
-- type = "fire",
-- percent = 50
-- }
-- },
-- collision_box = {{-0.4, -0.4}, {0.4, 0.4}},
-- selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
-- working_sound =
-- {
-- sound =
-- {
-- filename = "__base__/sound/express-transport-belt.ogg",
-- volume = 0.4
-- },
-- max_sounds_per_type = 3
-- },
-- animation_speed_coefficient = 1,
-- animations =
-- {
-- filename = "__TeleBelts__/graphics/entity/telesender.png",
-- priority = "extra-high",
-- frame_width = 32,
-- frame_height = 32,
-- frame_count = 2,
-- direction_count = 12
-- },
-- ending_patch = ending_patch_prototype,
-- speed = 0
-- },
{
type = "item",
name = "telesender",
icon = "__TeleBelts__/graphics/icons/telesender.png",
flags = {"placeable-neutral", "placeable-player", "player-creation"},
subgroup = "belt",
minable = {hardness = 0.2, mining_time = 0.5, result = "telesender"},
max_health = 40,
corpse = "small-remnants",
dying_explosion = "medium-explosion"
resistances =
{
{
type = "fire",
percent = 90
}
}},
collision_box = {{-0.4, -0.4}, {0.4, 0.4}},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
working_sound =
{
match_progress_to_activity = true,
sound =
{
{
filename = "__base__/sound/inserter-fast-1.ogg",
volume = 0.75
},
{
filename = "__base__/sound/inserter-fast-2.ogg",
volume = 0.75
},
{
filename = "__base__/sound/inserter-fast-3.ogg",
volume = 0.75
},
{
filename = "__base__/sound/inserter-fast-4.ogg",
volume = 0.75
},
{
filename = "__base__/sound/inserter-fast-5.ogg",
volume = 0.75
}
}
}
}
},
collision_box = {{0, 0}, {0, 0}},
selection_box = {{-0.4, -0.35}, {0.4, 0.45}},
pickup_position = {1000000, 1000000},
insert_position = {1000000, 1000000},
energy_per_movement = 0,
energy_per_rotation = 9375000, -- 10000 energy
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
drain = "0kW" -- Doesn't do much
},
hand_base_picture =
{
filename = "__TeleBelts__/graphics/entity/empty.png",
priority = "extra-high",
width = 1,
height = 1
},
hand_closed_picture =
{
filename = "__TeleBelts__/graphics/entity/empty.png",
priority = "extra-high",
width = 1,
height = 1
},
hand_open_picture =
{
filename = "__TeleBelts__/graphics/entity/empty.png",
priority = "extra-high",
width = 1,
height = 1
},
hand_base_shadow =
{
filename = "__TeleBelts__/graphics/entity/empty.png",
priority = "extra-high",
width = 1,
height = 1
},
hand_closed_shadow =
{
filename = "__TeleBelts__/graphics/entity/empty.png",
priority = "extra-high",
width = 1,
height = 1
},
hand_open_shadow =
{
filename = "__TeleBelts__/graphics/entity/empty.png",
priority = "extra-high",
width = 1,
height = 1
},
platform_picture =
{
priority = "extra-high",
width = 32,
height = 32,
sheet = "__TeleBelts__/graphics/entity/telesender.png",
},
extension_speed = 0.001,
rotation_speed = 0.001,
uses_arm_movement = "basic-inserter"
},
{
type = "item",
name = "telereceiver",
icon = "__TeleBelts__/graphics/icons/telereceiver.png",
flags = {"placeable-neutral", "player-creation"},
subgroup = "belt",
minable = {hardness = 0.2, mining_time = 0.3, result = "telereceiver"},
max_health = 50,
corpse = "small-remnants",
dying_explosion = "medium-explosion"
resistances =
{
{
type = "fire",
percent = 50
}
},
collision_box = {{-0.4, -0.4}, {0.4, 0.4}},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
working_sound =
{
sound =
{
filename = "__base__/sound/express-transport-belt.ogg",
volume = 0.4
},
max_sounds_per_type = 3
},
animation_speed_coefficient = 32,
animations =
{
filename = "__TeleBelts__/graphics/entity/telereceiver.png",
priority = "extra-high",
frame_width = 40,
frame_height = 40,
frame_count = 32,
direction_count = 12
},
ending_patch = ending_patch_prototype,
speed = 0.09375
}
}
)
__________________________________END________________________________________________________________________________________
Teleport belts
-
- Manual Inserter
- Posts: 3
- Joined: Thu Apr 07, 2016 3:11 am
- Contact: