Fix one problem, another pops up, like whack-a-mole.
Setting no-crop fixes underground belts, so, 75% of way there now.
It mostly fixes loaders, but for some reason it creates a slight gap between the belt_horizontal and the start/ending_side graphic, and also in the vertical orientation. It's 4 pixels wide in HR, 2 in LR.
I know that the belt is positioned correctly because if I remove no-crop and the top layer, it renders correctly again.
Code: Select all
{
animation_speed_coefficient = 32,
belt_distance = 0,
belt_horizontal = {
layers = {
{
filename = "__DeadlockLoaders__/graphics/lr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
width = 80,
y = 0
},
line_length = 32,
priority = "extra-high",
scale = 1,
width = 40,
y = 0
},
{
filename = "__DeadlockLoaders__/graphics/lr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
tint = {
a = 255,
b = 10,
g = 165,
r = 225
},
width = 80,
y = 0
},
line_length = 32,
priority = "extra-high",
scale = 1,
tint = nil,
width = 40,
y = 0
}
}
},
belt_length = 0.5,
belt_vertical = {
layers = {
{
filename = "__DeadlockLoaders__/graphics/lr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
width = 80,
y = 80
},
line_length = 32,
priority = "extra-high",
scale = 1,
width = 40,
y = 40
},
{
filename = "__DeadlockLoaders__/graphics/lr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
tint = nil,
width = 80,
y = 80
},
line_length = 32,
priority = "extra-high",
scale = 1,
tint = nil,
width = 40,
y = 40
}
}
},
close_sound = {
filename = "__base__/sound/wooden-chest-close.ogg",
volume = 1
},
collision_box = {
{
-0.2,
-0.2
},
{
0.2,
0.2
}
},
collision_mask = {
"item-layer",
"object-layer",
"player-layer",
"water-tile"
},
container_distance = 1,
corpse = "small-remnants",
ending_bottom = {
layers = {
{
filename = "__DeadlockLoaders__/graphics/lr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
width = 80,
y = 240
},
line_length = 32,
priority = "extra-high",
scale = 1,
width = 40,
y = 120
},
{
filename = "__DeadlockLoaders__/graphics/lr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
tint = nil,
width = 80,
y = 240
},
line_length = 32,
priority = "extra-high",
scale = 1,
tint = nil,
width = 40,
y = 120
}
}
},
ending_patch = {
sheet = {
filename = "__DeadlockLoaders__/graphics/blank.png",
height = 1,
priority = "low",
width = 1
}
},
ending_side = {
layers = {
{
filename = "__DeadlockLoaders__/graphics/lr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
width = 80,
y = 320
},
line_length = 32,
priority = "extra-high",
scale = 1,
width = 40,
y = 160
},
{
filename = "__DeadlockLoaders__/graphics/lr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
tint = nil,
width = 80,
y = 320
},
line_length = 32,
priority = "extra-high",
scale = 1,
tint = nil,
width = 40,
y = 160
}
}
},
ending_top = {
layers = {
{
filename = "__DeadlockLoaders__/graphics/lr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
width = 80,
y = 160
},
line_length = 32,
priority = "extra-high",
scale = 1,
width = 40,
y = 80
},
{
filename = "__DeadlockLoaders__/graphics/lr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
tint = nil,
width = 80,
y = 160
},
line_length = 32,
priority = "extra-high",
scale = 1,
tint = nil,
width = 40,
y = 80
}
}
},
fast_replaceable_group = "loader",
filter_count = 5,
flags = {
"placeable-neutral",
"player-creation",
"fast-replaceable-no-build-while-moving"
},
icon = "__base__/graphics/icons/loader.png",
icon_size = 32,
localised_name = {
"entity-name.deadlock-loader-1"
},
map_color = {
a = 255,
b = 8.3300000000000001,
g = 137.44499999999999,
r = 187.42499999999998
},
max_health = 170,
minable = {
hardness = 0.2,
mining_time = 0.5,
result = "deadlock-loader-item-1"
},
name = "deadlock-loader-entity-1",
open_sound = {
filename = "__base__/sound/wooden-chest-open.ogg",
volume = 1
},
resistances = {
{
percent = 60,
type = "fire"
}
},
selection_box = {
{
-0.5,
-0.5
},
{
0.5,
0.5
}
},
speed = 0.03125,
starting_bottom = {
layers = {
{
filename = "__DeadlockLoaders__/graphics/lr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
width = 80,
y = 480
},
line_length = 32,
priority = "extra-high",
scale = 1,
width = 40,
y = 240
},
{
filename = "__DeadlockLoaders__/graphics/lr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
tint = nil,
width = 80,
y = 480
},
line_length = 32,
priority = "extra-high",
scale = 1,
tint = nil,
width = 40,
y = 240
}
}
},
starting_side = {
layers = {
{
filename = "__DeadlockLoaders__/graphics/lr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
width = 80,
y = 560
},
line_length = 32,
priority = "extra-high",
scale = 1,
width = 40,
y = 280
},
{
filename = "__DeadlockLoaders__/graphics/lr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
tint = nil,
width = 80,
y = 560
},
line_length = 32,
priority = "extra-high",
scale = 1,
tint = nil,
width = 40,
y = 280
}
}
},
starting_top = {
layers = {
{
filename = "__DeadlockLoaders__/graphics/lr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-base.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
width = 80,
y = 400
},
line_length = 32,
priority = "extra-high",
scale = 1,
width = 40,
y = 200
},
{
filename = "__DeadlockLoaders__/graphics/lr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 40,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-belt-mask.png",
flags = {
"no-crop"
},
frame_count = 32,
height = 80,
line_length = 32,
priority = "extra-high",
scale = 0.5,
tint = nil,
width = 80,
y = 400
},
line_length = 32,
priority = "extra-high",
scale = 1,
tint = nil,
width = 40,
y = 200
}
}
},
structure = {
direction_in = {
sheets = {
{
filename = "__DeadlockLoaders__/graphics/lr-loader-base.png",
height = 32,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-loader-base.png",
height = 64,
priority = "extra-high",
scale = 0.5,
shift = {
0.125,
0
},
width = 80
},
priority = "extra-high",
scale = 1,
shift = {
0.125,
0
},
width = 40
},
{
filename = "__DeadlockLoaders__/graphics/lr-loader-mask.png",
height = 32,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-loader-mask.png",
height = 64,
priority = "extra-high",
scale = 0.5,
shift = {
0.125,
0
},
tint = nil,
width = 80
},
priority = "extra-high",
scale = 1,
shift = {
0.125,
0
},
tint = nil,
width = 40
}
}
},
direction_out = {
sheets = {
{
filename = "__DeadlockLoaders__/graphics/lr-loader-base.png",
height = 32,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-loader-base.png",
height = 64,
priority = "extra-high",
scale = 0.5,
shift = {
0.125,
0
},
width = 80
},
priority = "extra-high",
scale = 1,
shift = {
0.125,
0
},
width = 40
},
{
filename = "__DeadlockLoaders__/graphics/lr-loader-mask.png",
height = 32,
hr_version = {
filename = "__DeadlockLoaders__/graphics/hr-loader-mask.png",
height = 64,
priority = "extra-high",
scale = 0.5,
shift = {
0.125,
0
},
tint = nil,
width = 80,
y = 64
},
priority = "extra-high",
scale = 1,
shift = {
0.125,
0
},
tint = nil,
width = 40,
y = 32
}
}
}
},
type = "loader",
vehicle_impact_sound = {
filename = "__base__/sound/car-metal-impact.ogg",
volume = 1
}
}