Hallo,
ich wollte mich mal ein wenig an die Dateien ran wagen und wollte zu beginn erst mal versuchen einen Güterwagen (Original vom Spiel) Zu Klonen und diesen zu Modifizieren.
Doch jetzt läd der Zug mit den Neuen Güterwagen die Güter (Fracht) nicht mehr sondern fährt Leer wieder weg.
Hier meine Datei welche ich Modifiziert habe (Mit Kommentaren was ich gemacht habe):
1. Ich habe die .mdl Datei Dupliziert und Umbenannt.
2. Habe ich folgenden Code Modifiziert:
function data()
return {
boundingInfo = {
bbMax = {
3.3591649532318, 1.3326870203018, 2.737401008606,
},
bbMin = {
-3.3591649532318, -1.3326870203018, -0.53216099739075,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/waggon/open_1850/open_1850_lod_2_body.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_2_coal.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_2_iron.msh", //Ich habe diesen ganzen Code-Abschnitt entfernt. von hier bis...
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, { //...hier!
id = "vehicle/waggon/open_1850/open_1850_lod_2_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.5249, 0, 0.4915, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_2_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.5249, 0, 0.4915, 1,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 250,
visibleTo = 3500,
},
{
animations = {
},
children = {
{
id = "vehicle/waggon/open_1850/open_1850_lod_1_body.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_1_coal.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_1_iron.msh", //Ebenfalls habe ich diesen ganzen Code-Abschnitt entfernt. von hier bis...
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, { //...bis hier!
id = "vehicle/waggon/open_1850/open_1850_lod_1_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.5249, 0, 0.4915, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_1_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.5249, 0, 0.4915, 1,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 120,
visibleTo = 250,
},
{
animations = {
},
children = {
{
id = "vehicle/waggon/open_1850/open_1850_lod_0_body.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_0_coal.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_0_iron.msh", //Und diesen ganzen Code-Abschnitt entfernt. von hier bis...
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, { //...bis hier!
id = "vehicle/waggon/open_1850/open_1850_lod_0_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.5249, 0, 0.4915, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_0_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.5249, 0, 0.4915, 1,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 120,
},
},
metadata = {
description = {
name = _("Open wagon"),
description = _("Twin axle freight wagon.")
},
railVehicle = {
topSpeed = 80.0,
weight = 5.0,
configs = {
{
axles = { "vehicle/waggon/open_1850/open_1850_lod_2_w1.msh" }
},
{
axles = { "vehicle/waggon/open_1850/open_1850_lod_1_w1.msh" }
},
{
axles = { "vehicle/waggon/open_1850/open_1850_lod_0_w1.msh" }
}
},
soundSet = "waggon_freight_old"
},
transportVehicle = {
carrier = "RAIL",
capacities = {
{ type = "COAL", capacity = 16, loadIndicator = { type = "LEVEL", params = { id = 2, maxHeight = 1.4 } } },
{ type = "IRON_ORE", capacity = 16, loadIndicator = { type = "LEVEL", params = { id = 3, maxHeight = 1.4 } } }, //Dann habe ich diese Zeile raus genommen und weiter unten noch ein paar Daten wie preis etc. geändert.
},
},
availability = {
yearFrom = 1850,
yearTo = 1910
},
cost = {
price = 40000
},
maintenance = {
runningCosts = 8000,
lifespan = 40
}
},
}
end
Also ich habe alles was mit Iron-Ore (Eisenerz) zu tun hat raus genommen so das der Güterwagen nur Kohle befördern soll doch dies tut er nicht.
Hier ist meine Modifizierte .mdl:
function data()
return {
boundingInfo = {
bbMax = {
3.3591649532318, 1.3326870203018, 2.737401008606,
},
bbMin = {
-3.3591649532318, -1.3326870203018, -0.53216099739075,
},
},
collider = {
params = {
},
type = "MESH",
},
lods = {
{
animations = {
},
children = {
{
id = "vehicle/waggon/open_1850/open_1850_lod_2_body.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_2_coal.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_2_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.5249, 0, 0.4915, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_2_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.5249, 0, 0.4915, 1,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 250,
visibleTo = 3500,
},
{
animations = {
},
children = {
{
id = "vehicle/waggon/open_1850/open_1850_lod_1_body.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_1_coal.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_1_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.5249, 0, 0.4915, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_1_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.5249, 0, 0.4915, 1,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 120,
visibleTo = 250,
},
{
animations = {
},
children = {
{
id = "vehicle/waggon/open_1850/open_1850_lod_0_body.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_0_coal.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_0_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.5249, 0, 0.4915, 1,
},
type = "MESH",
}, {
id = "vehicle/waggon/open_1850/open_1850_lod_0_w1.msh",
transf = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.5249, 0, 0.4915, 1,
},
type = "MESH",
},
},
events = {
},
matConfigs = {
{
0, 0, 0, 0, 0,
},
},
static = false,
visibleFrom = 0,
visibleTo = 120,
},
},
metadata = {
description = {
name = _("Offener Kohle Güterwagen"),
description = _("Twin axle freight wagon.")
},
railVehicle = {
topSpeed = 80.0,
weight = 5.0,
configs = {
{
axles = { "vehicle/waggon/open_1850/open_1850_lod_2_w1.msh" }
},
{
axles = { "vehicle/waggon/open_1850/open_1850_lod_1_w1.msh" }
},
{
axles = { "vehicle/waggon/open_1850/open_1850_lod_0_w1.msh" }
}
},
soundSet = "waggon_freight_old"
},
transportVehicle = {
carrier = "RAIL",
capacities = {
{ type = "COAL", capacity = 16, loadIndicator = { type = "LEVEL", params = { id = 2, maxHeight = 1.4 } } },
},
},
availability = {
yearFrom = 1850,
yearTo = 1910
},
cost = {
price = 35000
},
maintenance = {
runningCosts = 6000,
lifespan = 40
}
},
}
end
Alles anzeigen
Ich hoffe ihr könnt mir auf die Sprünge helfen und meinen "Denkfehler?" sagen