Hallo Leute.
Ich möchte gerne mein Depot, das es als Asset hier schon gibt, zu einem Vollwertigen Depot aufrüsten. Link . @RPGFabi hatte schonmal damit angefangen, keine Ahnung ob er noch Aktiv ist. Hier in TPF2 funktioniert es ja schonmal Ansatzweise, wie Ich es mir vorgestellt hatte.
Problem ist. die Züge fahren nur in eine Richtung raus. Hätte halt gerne, das sie in beide Richtungen ausfahren können.
Weis auch nicht, wie man die Tore einbindet. Habe es versucht. Naja das Depot geht noch, nur die Tore werden nicht Angezeigt.
Er hat die .con erstellt und 2 weitere mdl's. hessie_bbhf_depot_lane_1.mdl und hessie_bbhf_depot_lane_2.mdl
Hier einfach mal die ganzen Dinger:
hessie_bbhf_depot.con:
local paramsutil = require "paramsutil"
function data()
return {
type = "RAIL_DEPOT",
description = {
name = _("Badischer Bahnhof Basel Depot"),
description = _("Badischer Bahnhof Basel Depot"),
},
availability = {yearFrom = 1850},
buildMode = "MULTI", -- SINGLE = einzeln, MULTI = mehrfach, BRUSH = sprühen
categories = { "buildings" },
order = 1,
skipCollision = true,
autoRemovable = false,
params = {
paramsutil.makeTrackCatenaryParam()
},
updateFn = function(params)
local result = { }
local Edgelist = {
}
--Gleis 1 rechts
Edgelist[#Edgelist +1] = { { 26.5 - 0.12, 20 , 0 }, { -91.5, 0, .0 } }
Edgelist[#Edgelist +1] = { { -65, 20, 0 }, { -91.5, 0, .0 } }
--Gleis 2 rechts
Edgelist[#Edgelist +1] = { { -0.12, 13 , 0 }, { -70.0, 0, .0 } }
Edgelist[#Edgelist +1] = { { -70, 13, 0 }, { -70.0, 0, .0 } }
--Gleis 3 rechts
Edgelist[#Edgelist +1] = { { -0.12, 8 , 0 }, { -70.0, 0, .0 } }
Edgelist[#Edgelist +1] = { { -70, 8, 0 }, { -70.0, 0, .0 } }
--Gleis 4 rechts
Edgelist[#Edgelist +1] = { { -0.12, 3 , 0 }, { -70.0, 0, .0 } }
Edgelist[#Edgelist +1] = { { -70, 3, 0 }, { -70.0, 0, .0 } }
--Gleis 5 rechts
Edgelist[#Edgelist +1] = { { -0.12, -2 , 0 }, { -70.0, 0, .0 } }
Edgelist[#Edgelist +1] = { { -70, -2, 0 }, { -70.0, 0, .0 } }
--Gleis 6 rechts
Edgelist[#Edgelist +1] = { { -0.12, -7 , 0 }, { -70.0, 0, .0 } }
Edgelist[#Edgelist +1] = { { -70, -7, 0 }, { -70.0, 0, .0 } }
--Gleis 1 links
Edgelist[#Edgelist +1] = { { 26.5 + 0.12, 20 , 0 }, { 46.0, 0, .0 } }
Edgelist[#Edgelist +1] = { { 72.5 , 20, 0 }, { 46.0, 0, .0 } }
--Gleis 2 links
Edgelist[#Edgelist +1] = { { 0.12, 13 , 0 }, { 72.5, 0, .0 } }
Edgelist[#Edgelist +1] = { { 72.5 , 13, 0 }, { 72.5, 0, .0 } }
--Gleis 3 links
Edgelist[#Edgelist +1] = { { 0.12, 8 , 0 }, { 72.5, 0, .0 } }
Edgelist[#Edgelist +1] = { { 72.5 , 8, 0 }, { 72.5, 0, .0 } }
--Gleis 4 links
Edgelist[#Edgelist +1] = { { 0.12, 3 , 0 }, { 72.5, 0, .0 } }
Edgelist[#Edgelist +1] = { { 72.5 , 3, 0 }, { 72.5, 0, .0 } }
--Gleis 5 links
Edgelist[#Edgelist +1] = { { 0.12, -2 , 0 }, { 72.5, 0, .0 } }
Edgelist[#Edgelist +1] = { { 72.5 , -2, 0 }, { 72.5, 0, .0 } }
--Gleis 6 links
Edgelist[#Edgelist +1] = { { 0.12, -7 , 0 }, { 72.5, 0, .0 } }
Edgelist[#Edgelist +1] = { { 72.5 , -7, 0 }, { 72.5, 0, .0 } }
result.edgeLists = {
{
type = "TRACK",
params = {
--type = config.trackTypes[params.trackType + 1],
type = "hessie_depot.lua",
catenary = params.catenary == 1
},
edges = Edgelist,
snapNodes = { 1,3,5,7,9,11,13,15,17,19,21,23 }
}
}
result.models = {}
result.models[#result.models +1] = {id = "asset/hessie_bbhf_depot.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }}
result.models[#result.models +1] = {id = "asset/hessie_bbhf_depot_lane_1.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 26.5, 20, 0.53, 1 }}
result.models[#result.models +1] = {id = "asset/hessie_bbhf_depot_lane_2.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 13, 0.53, 1 }}
result.models[#result.models +1] = {id = "asset/hessie_bbhf_depot_lane_2.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 8, 0.53, 1 }}
result.models[#result.models +1] = {id = "asset/hessie_bbhf_depot_lane_2.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 3, 0.53, 1 }}
result.models[#result.models +1] = {id = "asset/hessie_bbhf_depot_lane_2.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, -2, 0.53, 1 }}
result.models[#result.models +1] = {id = "asset/hessie_bbhf_depot_lane_2.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, -7, 0.53, 1 }}
result.terrainAlignmentLists = { {
type = "EQUAL",
faces = { }
} }
return result
end
}
end
hessie_bbhf_depot_lane_1.mdl nach der Konvertierung
local laneutil = require "laneutil"
function data()
return {
boundingInfo = {
bbMax = { 10, 10, 0, },
bbMin = { -10, -10, 10, },
},
collider = {
params = { },
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
type = "MESH",
},
lods = {
{
node = {
animations = { },
children = { },
name = "RootNode",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
static = false,
visibleFrom = 0,
visibleTo = 1,
},
},
metadata = {
availability = { },
cost = {
price = -1,
},
description = {
name = _("Schwebebahn Depot"), -- Small train depot
--description = _("Description")
},
transportNetworkProvider = {
laneLists = {
{
nodes = {
{
{ 0.12, 0, 0, },
{ -1, 0, 0, },
3,
},
{
{ 0, 0, 0, },
{ -1, 0, 0, },
3,
},
{
{ 0, 0, 0, },
{ -1, 0, 0, },
3,
},
{
{ -0.12, 0, 0, },
{ -1, 0, 0, },
3,
},
},
speedLimit = 20,
transportModes = { "TRAIN", "ELECTRIC_TRAIN", },
},
},
},
vehicleDepot = {
capacity = 5,
carrier = "RAIL",
inNodes = { 1, },
outNodes = { 1, },
},
},
version = 1,
}
end
Und das was Ich da eingetragen habe:
local laneutil = require "laneutil"
function data()
return {
boundingInfo = {
bbMax = { 23, 64.479, 16.564, },
bbMin = { -24.649, -64.479, -1, },
},
collider = {
params = { },
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
type = "MESH",
},
lods = {
{
node = {
animations = {
close = {
params = {
id = "depot/rail/train_depot_era_a/close/door_l.ani",
},
type = "FILE_REF",
},
open = {
params = {
id = "depot/rail/train_depot_era_a/open/door_l.ani",
},
type = "FILE_REF",
},
},
_meshId = 1,
materials = { "asset/bbhf_depot_doors.mtl", "asset/bbhf_depot_transparent.mtl",
"asset/bbhf_depot_doors.mtl", },
mesh = "tore/hessie_bbhf_depot_tor_a_l.msh",
name = "door_a_l",
transf = {0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, 0, -9.500, 22.500, 0.5, 1, },
},
{
animations = {
close = {
params = {
id = "depot/rail/train_depot_era_a/close/door_r.ani",
},
type = "FILE_REF",
},
open = {
params = {
id = "depot/rail/train_depot_era_a/open/door_r.ani",
},
type = "FILE_REF",
},
},
_meshId = 1,
materials = { "asset/bbhf_depot_doors.mtl", "asset/bbhf_depot_transparent.mtl",
"asset/bbhf_depot_doors.mtl", },
mesh = "tore/hessie_bbhf_depot_tor_a_r.msh",
name = "door_a_r",
transf = { 0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, 0, -9.500, 17.500, 0.5, 1, },
animations = {
close = {
params = {
id = "depot/rail/train_depot_era_a/close/door_l.ani",
},
type = "FILE_REF",
},
open = {
params = {
id = "depot/rail/train_depot_era_a/open/door_l.ani",
},
type = "FILE_REF",
},
},
_meshId = 1,
materials = { "asset/bbhf_depot_doors.mtl", "asset/bbhf_depot_transparent.mtl",
"asset/bbhf_depot_doors.mtl", },
mesh = "tore/hessie_bbhf_depot_tor_a_l.msh",
name = "door_a_l",
transf = {0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 62.500, 22.500, 0.5, 1, },
},
{
animations = {
close = {
params = {
id = "depot/rail/train_depot_era_a/close/door_r.ani",
},
type = "FILE_REF",
},
open = {
params = {
id = "depot/rail/train_depot_era_a/open/door_r.ani",
},
type = "FILE_REF",
},
},
_meshId = 1,
materials = { "asset/bbhf_depot_doors.mtl", "asset/bbhf_depot_transparent.mtl",
"asset/bbhf_depot_doors.mtl", },
mesh = "tore/hessie_bbhf_depot_tor_a_r.msh",
name = "door_a_r",
transf = { 0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 62.500, 17.500, 0.5, 1, },
children = { },
name = "RootNode",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
static = false,
visibleFrom = 0,
visibleTo = 1,
},
},
metadata = {
availability = { },
cost = {
price = -1,
},
description = {
name = _("Schwebebahn Depot"), -- Small train depot
--description = _("Description")
},
transportNetworkProvider = {
laneLists = {
{
nodes = {
{
{ 0.12, 0, 0, },
{ -1, 0, 0, },
3,
},
{
{ 0, 0, 0, },
{ -1, 0, 0, },
3,
},
{
{ 0, 0, 0, },
{ -1, 0, 0, },
3,
},
{
{ -0.12, 0, 0, },
{ -1, 0, 0, },
3,
},
},
speedLimit = 20,
transportModes = { "TRAIN", "ELECTRIC_TRAIN", },
},
},
},
vehicleDepot = {
capacity = 5,
carrier = "RAIL",
inNodes = { 2, },
outNodes = { 2, },
},
},
version = 1,
}
end
Habe leider keinen blassen Schimmer. Mache das nach Trial and Error Prinzip ^^. Wenn jemand Lust hat das ganze neu zu Scripten, dann gerne, Ich bin froh das Ich das Mesh und die Texturen heile zusammen bekommen habe.
Wer sich das ganze Ingame mal ansehen möchte, habe Ich ein Zipfile im Anhang. Am besten das Zipfile entpacken und den res Ordner aus der Webdisk da reinkopieren.
Der neue Mod heist dann hessie_depot_1.
Grüße Hessie