Hello, I am making a mod in Transport Fever 1 that adds a train end signal to the vanilla cargo wagons, using the files from the Train End Indicator DE/AT mod by Trunky. I want the signal only a appear in-game on the rear wagon of the train using backForwardParts/backBackwardParts. For some reason the signals are appearing on every wagon in the read, instead of only the rear wagon. Does anyone have a suggestion to fix this problem? I have used the following code in the .mdl file:
function data()
return {
boundingInfo = {
bbMax = {
7.9388990402222, 1.7026489973068, 4.6074352264404,
},
bbMin = {
-8.4486074447632, -1.7026489973068, -0.0088170170783997,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/waggon/hbi1/lod_2_hbi.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/hbi1/lod_2_w1.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -4.3857002258301, 0, 0.51899999380112, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/hbi1/lod_2_w1.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 4.3857002258301, 0, 0.51899999380112, 1,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0,
},
},
static = false,
visibleFrom = 300,
visibleTo = 1610,
}, {
animations = {
},
children = {
{
id = "vehicle/waggon/hbi1/lod_1_hbi.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/hbi1/lod_1_w1.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -4.3857002258301, 0, 0.51899999380112, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/hbi1/lod_1_w2.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 4.3857002258301, 0, 0.51899999380112, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/hbi1/lod_0_logo_hbi1.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0,
},
},
static = false,
visibleFrom = 150,
visibleTo = 300,
}, {
animations = {
},
children = {
{
id = "vehicle/waggon/hbi1/lod_0_hbi.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/hbi1/lod_0_w1.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, -4.3857002258301, 0, 0.51899999380112, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/hbi1/lod_0_w1.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 4.3857002258301, 0, 0.51899999380112, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/hbi1/lod_0_logo_hbi1.msh",
transf = {
-1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
},
{
id = "vehicle/waggon/zugschluss/zugschluss2_de_back.msh",
transf = {
-1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -7.22, 0.0, 1.36, 1.0,
},
type = "MESH",
},
{
id = "vehicle/waggon/zugschluss/zugschluss2_de_front.msh",
transf = {
-1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 7.82, 0.0, 1.34, 1.0,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 150,
},
},
metadata = {
description = {
name = _("Goods wagon Hbi (rev. + t.e.s.) 5 6"),
description = _("Twin-axle boxcar with sliding doors, specially for sensitive goods on palettes. (reversed, with train end signal)")
},
railVehicle = {
topSpeed = 160,
weight = 18,
configs = {
axles = { "vehicle/waggon/hbi1/lod_0_w1.msh" },
backForwardParts = { 12 },
backBackwardParts = { 13 },
},
soundSet = "waggon_freight_modern"
},
transportVehicle = {
carrier = "RAIL",
capacities = {
{ type = "LIVESTOCK", capacity = 52 },
{ type = "PLASTIC", capacity = 52 },
{ type = "MACHINES", capacity = 52 },
{ type = "TOOLS", capacity = 52 },
{ type = "FOOD", capacity = 52 },
{ type = "GOODS", capacity = 52 },
},
loadSpeed = 3
},
availability = {
yearFrom = 1970,
yearTo = 0
},
cost = {
price = -1
},
maintenance = {
runningCosts = -1,
lifespan = 40
}
},
}
end
Alles anzeigen
I hope that someone is able to help me!
(Another question, is this place the right place for questions like this?)
The mentioned Train End Indicator mod is found here: https://steamcommunity.com/sha…1665686556&searchtext=end
(other question, is this the right place for a question like this?)Train End Indicator DE/ATTrain End Indicator DE/AT