Transport Fever 2

Transport Fever 2

NS 6400 diesel-electric cargo locomotive
jeroezie 28 Sep, 2022 @ 11:20am
NS_DE_6400_group.mdl
function data()
return {
boundingInfo = {
bbMax = { 6.5, 1.5199999809265, 4.2600002288818, },
bbMin = { -8.3000001907349, -1.5199999809265, 0, },
},
collider = {
params = {
halfExtents = { 7.2256059646606, 1.5200011730194, 2.1371440887451, },
},
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
type = "BOX",
},
lods = {
{
node = {
children = {
{
materials = { "vehicle/train/6400.NS.mtl", },
mesh = "vehicle/train/NS_DE_6400/fan_lod0.msh",
name = "fan",
transf = { -0.53042131662369, 0.84773421287537, -9.043914780568e-24, 0, 1.3811343535508e-07, 8.6416598321648e-08, -1, 0, -0.84773421287537, -0.53042131662369, -1.6292068494295e-07, 0, 4.6598196029663, -6.1839818954468e-07, 3.0195310115814, 1, },
},
{
materials = { "vehicle/train/6400.NS.mtl", },
mesh = "vehicle/train/NS_DE_6400/bodyshell_lod0.msh",
name = "body",
transf = { 1.947071837094e-07, -1, 0, 0, -4.3711388286738e-08, -8.5109218324743e-15, -1, 0, 1, 1.947071837094e-07, -4.3711388286738e-08, 0, -0.92057156562805, 0, 1.4363378286362, 1, },
},
{
children = {
{
animations = {
wheels = {
params = {
id = "vehicle/train/NS_DE_6400/wheels/wheelaxleR1.ani",
},
type = "FILE_REF",
},
},
materials = { "vehicle/train/6400.NS.mtl", },
mesh = "vehicle/train/NS_DE_6400/axleRear1_lod0.msh",
name = "wheelaxleR1",
transf = { -1, 1.4645521530547e-14, 3.8941436741879e-07, 0, -3.4064530041178e-07, 0.4845509827137, -0.87476301193237, 0, -1.8869113205255e-07, -0.87476301193237, -0.4845509827137, 0, -0.0089165028184652, 0.22810167074203, -1.223445892334, 1, },
},
{
animations = {
wheels = {
params = {
id = "vehicle/train/NS_DE_6400/wheels/wheelaxleR2.ani",
},
type = "FILE_REF",
},
},
materials = { "vehicle/train/6400.NS.mtl", },
mesh = "vehicle/train/NS_DE_6400/axleRear2_lod0.msh",
name = "wheelaxleR2",
transf = { -1, 1.4645521530547e-14, 3.8941436741879e-07, 0, -3.4064530041178e-07, 0.4845509827137, -0.87476301193237, 0, -1.8869113205255e-07, -0.87476301193237, -0.4845509827137, 0, -0.0089153740555048, 0.22810143232346, 1.1769433021545, 1, },
},
},
materials = { "vehicle/train/6400.NS.mtl", },
mesh = "vehicle/train/NS_DE_6400/Bogierear_lod0.msh",
name = "bogieR",
transf = { 1.947071837094e-07, 1, 0, 0, 4.3711388286738e-08, -8.5109218324743e-15, -1, 0, -1, 1.947071837094e-07, -4.3711388286738e-08, 0, -4.5949544906616, 1.709908246994e-05, 0.7221040725708, 1, },
},
{
materials = { "vehicle/train/interior.mtl", },
mesh = "vehicle/train/NS_DE_6400/Interior_lod0.msh",
name = "interior",
transf = { 1.947071837094e-07, -1, 0, 0, -4.3711388286738e-08, -8.5109218324743e-15, -1, 0, 1, 1.947071837094e-07, -4.3711388286738e-08, 0, 0, -0.10268368571997, -0.13257822394371, 1, },
},
{
children = {
{
animations = {
wheels = {
params = {
id = "vehicle/train/NS_DE_6400/wheels/wheelaxleF1.ani",
},
type = "FILE_REF",
},
},
materials = { "vehicle/train/6400.NS.mtl", },
mesh = "vehicle/train/NS_DE_6400/axlefront1_lod0.msh",
name = "wheelaxleF1",
transf = { 1, 3.6200738406933e-08, 2.3841857910156e-07, 0, -2.2610086602981e-07, 0.4845509827137, 0.87476301193237, 0, -8.3858893162869e-08, -0.87476301193237, 0.4845509827137, 0, 0.0050429529510438, 0.22810059785843, 1.1605231761932, 1, },
},
{
animations = {
wheels = {
params = {
id = "vehicle/train/NS_DE_6400/wheels/wheelaxleF2.ani",
},
type = "FILE_REF",
},
},
materials = { "vehicle/train/6400.NS.mtl", },
mesh = "vehicle/train/NS_DE_6400/axlefront2_lod0.msh",
name = "wheelaxleF2",
transf = { 1, -1.5846148926357e-07, 2.3841856489071e-07, 0, -1.3177707103296e-07, 0.4845509827137, 0.87476301193237, 0, -2.5414220772291e-07, -0.87476301193237, 0.4845509827137, 0, 0.0050434772856534, 0.22810053825378, -1.2398701906204, 1, },
},
},
materials = { "vehicle/train/6400.NS.mtl", },
mesh = "vehicle/train/NS_DE_6400/bogieFront_lod0.msh",
name = "bogieF",
transf = { 1.947071837094e-07, -1, 0, 0, -4.3711388286738e-08, -8.5109218324743e-15, -1, 0, 1, 1.947071837094e-07, -4.3711388286738e-08, 0, 2.7693228721619, -0.0038562640547752, 0.72210299968719, 1, },
},
{
materials = { "vehicle/train/6400.NS.lightsRed.mtl", },
mesh = "vehicle/train/NS_DE_6400/LightRedFront_lod0.msh",
name = "LightRedFront",
transf = { 1.9568072673337e-07, -1.0049999952316, 0, 0, -4.3711388286738e-08, -8.5109218324743e-15, -1, 0, 1, 1.947071837094e-07, -4.3711388286738e-08, 0, -0.92057156562805, 0, 1.4363378286362, 1, },
},
{
materials = { "vehicle/train/6400.NS.lights.mtl", },
mesh = "vehicle/train/NS_DE_6400/LightWhiteFront_lod0.msh",
name = "LightWhiteFront",
transf = { 1.9568072673337e-07, -1.0049999952316, 0, 0, -4.3711388286738e-08, -8.5109218324743e-15, -1, 0, 1, 1.947071837094e-07, -4.3711388286738e-08, 0, -0.92057156562805, 0, 1.4363378286362, 1, },
},
{
materials = { "vehicle/train/6400.NS.lightsRed.mtl", },
mesh = "vehicle/train/NS_DE_6400/LightRedFront.001_lod0.msh",
name = "LightRedrear",
transf = { 7.5122287057638e-08, 0.99502485990524, 9.9423519079555e-31, 0, -7.5497901264043e-08, 5.6999328827277e-15, -1, 0, -1, 7.5497901264043e-08, 7.5497901264043e-08, 0, -7.3751516342163, 0.0047742938622832, 1.918470621109, 1, },
},
{
materials = { "vehicle/train/6400.NS.lights.mtl", },
mesh = "vehicle/train/NS_DE_6400/LightWhiteFront.001_lod0.msh",
name = "LightWhiterear",
transf = { 7.5875391303271e-08, 1.0049999952316, 1.004202442495e-30, 0, -7.5497901264043e-08, 5.6999328827277e-15, -1, 0, -1, 7.5497901264043e-08, 7.5497901264043e-08, 0, -7.3758406639099, 0.0045092971995473, 2.1131024360657, 1, },
},
},
name = "RootNode",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
static = false,
visibleFrom = 0,
visibleTo = 1450,
},
},
metadata = {
availability = {
yearFrom = 1988,
yearTo = 2200,
},
cost = {
price = -1,
priceScale = 0.8,
},
description = {
description = _("NS bouwserie DE 6400 diesel cargo locomotive in the original NS colours it was delivered in"),
name = _("NS 6400"),
},
emission = {
idleEmission = -1,
powerEmission = -1,
speedEmission = -1,
},
maintenance = {
lifespan = 29220,
runningCostScale = 0.8,
runningCosts = -1,
},
particleSystem = {
emitters = {
{
child = 0,
color = { 0.20000000298023, 0.20000000298023, 0.20000000298023, },
frequency = 25,
initialAlpha = 0.10000000149012,
lifeTime = 1.2999999523163,
position = { -1.2699999809265, 0.27000001072884, 3.8499999046326, },
size01 = { 0.079999998211861, 3, },
velocity = { 0, 0, 6, },
velocityDampingFactor = 2.5,
},
},
},
railVehicle = {
blinkInterval = 500,
configs = {
{
axles = { "vehicle/train/NS_DE_6400/axlefront1_lod0.msh", "vehicle/train/NS_DE_6400/axlefront2_lod0.msh", "vehicle/train/NS_DE_6400/axleRear1_lod0.msh", "vehicle/train/NS_DE_6400/axleRear2_lod0.msh", },
backBackwardParts = { 10, },
backForwardParts = { 12, },
blinkLightsLeft0 = { },
blinkLightsLeft1 = { },
blinkLightsRight0 = { },
blinkLightsRight1 = { },
blinkingLights0 = { },
blinkingLights1 = { },
brakeLights = { },
fakeBogies = { },
frontBackwardParts = { 13, },
frontForwardParts = { 11, },
innerBackwardParts = { },
innerForwardParts = { },
},
},
engines = {
{
power = 1180,
tractiveEffort = 305,
type = "DIESEL",
},
},
soundSet = {
horn = "vehicle/truck_modern/horn.wav",
name = "train_diesel",
},
topSpeed = 33.299999237061,
weight = 82,
},
seatProvider = {
crewModels = { },
drivingLicense = "RAIL",
seats = {
{
animation = "driving_upright",
crew = true,
forward = true,
group = 0,
transf = { 1.1000000238419, 0, -0, 0, 0, 1.1000000238419, 0, 0, 0, 0, 1.1000000238419, 0, -2.6800000667572, -0.87000000476837, 2.0699999332428, 1, },
},
{
animation = "driving_upright",
crew = true,
forward = false,
group = 0,
transf = { -1.1000000238419, -9.6165052809738e-08, 0, 0, 9.6165052809738e-08, -1.1000000238419, 0, 0, 0, 0, 1.1000000238419, 0, -2.6099998950958, 0.87000000476837, 2.0699999332428, 1, },
},
},
},
transportVehicle = {
carrier = "RAIL",
compartmentsList = {
{
loadConfigs = {
{
cargoEntries = { },
toHide = { },
},
},
},
},
loadSpeed = 1,
multipleUnitOnly = true,
reversible = true,
},
},
version = 1,
}
end
< >
Showing 1-1 of 1 comments
jeroezie 28 Sep, 2022 @ 11:23am 
I have not been able to identify the exact problem with the NS_DE_6400_group.mdl file that caused the buy menu group functionality to fail. Your code that sets the grouping was correct in all the files. With this NS_DE_6400_group.mdl file everything works as intended.
< >
Showing 1-1 of 1 comments
Per page: 1530 50