Transport Fever 2

Transport Fever 2

The Britannia Bridge
GordonDry 26 Feb, 2023 @ 5:23am
Bridge span parts also as track snappable assets
Please also provide those bridge span parts as assets instead of only depots with tracks.
Expecially for those who use track mods and want to choose different tracks.
< >
Showing 1-2 of 2 comments
GordonDry 26 Feb, 2023 @ 8:21am 
This is my version of the res\construction\asset\britanniabridge.con now:
local vec3 = require "vec3" local transf = require "transf" function data() return { type = "ASSET_TRACK", description = { name = _("Britannia Bridge Towers"), description = _("") }, availability = { yearFrom = 1850 }, buildMode = "MULTI", categories = {"cw_315"}, order = 1, skipCollision = true, autoRemovable = false, params = { {key = "liveries", name = _("Tower Type"), uiType = "ICON_BUTTON", values = { "ui/construction/depot/britanniabridge_abuttment.tga", "ui/construction/asset/britanniabridge_center.tga", "ui/construction/asset/britanniabridge_tower.tga", "ui/construction/asset/britanniabridge_end.tga", "ui/construction/depot/britanniabridge_prefire_10m.tga", "ui/construction/depot/britanniabridge_prefire_20m.tga", "ui/construction/depot/britanniabridge_prefire_40m.tga", }, }, }, updateFn = function(params) local result = {} result.models = {} if params.liveries == 0 then result.models[#result.models+1] = { id = "asset/britanniabridge/britannia_prefire_abuttment.mdl", transf = { 1.0025, 0, 0, 0, 0, 1.07, 0, 0, 0, 0, 1, 0, 0, -0.2, 0.41, 1 } } elseif params.liveries == 1 then result.models[#result.models+1] = { id = "asset/britanniabridge/britannia_prefire_centraltower.mdl", transf = { 1, 0, 0, 0, 0, 1.07, 0, 0, 0, 0, 1, 0, 0, -0.2, 1, 1 } } elseif params.liveries == 2 then result.models[#result.models+1] = { id = "asset/britanniabridge/britannia_prefire_tower.mdl", transf = { 1, 0, 0, 0, 0, 1.07, 0, 0, 0, 0, 1, 0, 0, -0.2, 1, 1 } } elseif params.liveries == 3 then result.models[#result.models+1] = { id = "asset/britanniabridge/britannia_prefire_endtower.mdl", transf = { 1, 0, 0, 0, 0, 1.07, 0, 0, 0, 0, 1, 0, 0, -0.2, 1, 1 } } elseif params.liveries == 4 then result.models[#result.models+1] = { id = "asset/britanniabridge/prefire_span_10m.mdl", transf = { 1.01, 0, 0, 0, 0, 1.07, 0, 0, 0, 0, 1, 0, 0., -2.569, 0.425, 1 } } elseif params.liveries == 5 then result.models[#result.models+1] = { id = "asset/britanniabridge/prefire_span_20m.mdl", transf = { 1.005, 0, 0, 0, 0, 1.07, 0, 0, 0, 0, 1, 0, 0, -2.569, 0.425, 1 } } elseif params.liveries == 6 then result.models[#result.models+1] = { id = "asset/britanniabridge/prefire_span_40m.mdl", transf = { 1.0025, 0, 0, 0, 0, 1.07, 0, 0, 0, 0, 1, 0, 0, -2.569, 0.425, 1 } } end result.terrainAlignmentLists = { { type = "EQUAL", faces = { } } } return result end } end
GordonDry 26 Feb, 2023 @ 8:35am 
It's glitchy as I needed to offset and scale the assets a bit.

A better solution would be if @cw_315 provides the asset functionality of choosing from all installed track types.
< >
Showing 1-2 of 2 comments
Per page: 1530 50