[Donione] [2.0.35] Rails lost their walking sounds
Posted: Tue Feb 25, 2025 9:23 am
Due to a typo, rails lost their walking sound definitions.
The following should fix it:
The following should fix it:
Code: Select all
--- data/base/prototypes/entity/trains.lua
+++ data/base/prototypes/entity/trains.lua
@@ -150,7 +150,7 @@ name = "legacy-straight-rail"
damaged_trigger_effect = hit_effects.wall(),
pictures = legacy_rail_pictures("legacy_straight_rail"),
placeable_by = {item = "rail", count = 1},
- walking_sound = tile_sounds.walking.rail,
+ walking_sound = tile_sounds.walking.rails,
deconstruction_marker_positions =
{
{ 0.0, 0.0 }, -- North
@@ -205,7 +205,7 @@ name = "legacy-curved-rail"
pictures = legacy_rail_pictures("legacy_curved_rail"),
ending_shifts = curved_rail_ending_shifts(),
placeable_by = {item = "rail", count = 4},
- walking_sound = tile_sounds.walking.rail
+ walking_sound = tile_sounds.walking.rails
},
{
type = "straight-rail",
@@ -237,7 +237,7 @@ name = "straight-rail"
damaged_trigger_effect = hit_effects.wall(),
pictures = new_rail_pictures("straight"),
placeable_by = {item = "rail", count = 1},
- walking_sound = tile_sounds.walking.rail,
+ walking_sound = tile_sounds.walking.rails,
extra_planner_goal_penalty = -4,
factoriopedia_alternative = "straight-rail"
},
@@ -284,7 +284,7 @@ name = "half-diagonal-rail"
damaged_trigger_effect = hit_effects.wall(),
pictures = new_rail_pictures("half-diagonal"),
placeable_by = {item = "rail", count = 2},
- walking_sound = tile_sounds.walking.rail,
+ walking_sound = tile_sounds.walking.rails,
extra_planner_penalty = 0,
factoriopedia_alternative = "straight-rail"
},
@@ -329,7 +329,7 @@ name = "curved-rail-a"
damaged_trigger_effect = hit_effects.wall(),
pictures = new_rail_pictures("curved-a"),
placeable_by = {item = "rail", count = 3},
- walking_sound = tile_sounds.walking.rail,
+ walking_sound = tile_sounds.walking.rails,
extra_planner_penalty = 0.5,
deconstruction_marker_positions = rail_8shifts_vector(-0.248, -0.533),
factoriopedia_alternative = "straight-rail"
@@ -375,7 +375,7 @@ name = "curved-rail-b"
damaged_trigger_effect = hit_effects.wall(),
pictures = new_rail_pictures("curved-b"),
placeable_by = {item = "rail", count = 3},
- walking_sound = tile_sounds.walking.rail,
+ walking_sound = tile_sounds.walking.rails,
extra_planner_penalty = 0.5,
deconstruction_marker_positions = rail_8shifts_vector(-0.309, -0.155),
factoriopedia_alternative = "straight-rail"
@@ -394,7 +394,7 @@ name = "dummy-rail-ramp"
selection_box = {{-1.7, -0.8}, {1.7, 0.8}},
pictures = dummy_rails_ramp_pictures(),
forced_fence_segment_count = 2,
- walking_sound = tile_sounds.walking.rail,
+ walking_sound = tile_sounds.walking.rails,
extra_planner_penalty = 0.5,
support_range = 9
},