Hallo Eisfeuer,
erstmal vielen Dank für deine ausführliche Antwort. Du hast mir sehr weiter geholfen, leider hänge ich noch an einem Fehler fest, den ich nicht gelöst bekomme.
Texture resolve error: file not found: ui/bridges/siri.tga
Exception type: Lua exception
This error is usually caused by modding. Some game resources contain incorrect data.
Details:
Error message: error: res/scripts/bridgeutil.lua:11: attempt to index field '?' (a nil value)
stack traceback:
=[C](-1): __index
@res/scripts/bridgeutil.lua(11): getMaxSize
@res/scripts/bridgeutil.lua(157): ?
@res/scripts/bridgeutil.lua(272): ?
File name: F:/steam/userdata/171248212/1066780/local/mods/siri_bridge_1/res/config/bridge/siri.lua
Key: game/res/bridge/siri.lua
Mod: "Siri Brücken Pack" (!siri_bridge, 1) (consider removing this mod and contacting the mod author)
In file: urban_games/train_fever/src/Lib/lua/State.cpp:753
In function: void __cdecl lua::State::Call(int,int)
Alles anzeigen
Hat jemand einen Lösungsansatz?
Meine lua:
local bridgeutil = require "bridgeutil"
function data()
local dir = "bridge_7/carriageway/5/6/"
local railing = {
dir .. "railing_rep_side.mdl",
dir .. "railing_rep_side.mdl",
dir .. "railing_rep_side_no_side.mdl",
dir .. "railing_rep_rep.mdl",
dir .. "railing_rep_rep.mdl",
dir .. "railing_rep_side2.mdl",
dir .. "railing_rep_side2.mdl",
dir .. "railing_rep_side2_no_side.mdl",
}
local config = {
pillarBase = { dir .. "pillar_btm_side.mdl", dir .. "pillar_btm_rep.mdl", dir .. "pillar_btm_side2.mdl" },
pillarRepeat = { dir .. "pillar_rep_side.mdl", dir .. "pillar_rep_rep.mdl", dir .. "pillar_rep_side2.mdl" },
pillarTop = { dir .. "pillar_top_side.mdl", dir .. "pillar_top_rep.mdl", dir .. "pillar_top_side2.mdl" },
railingBegin = railing,
railingRepeat = railing,
railingEnd = railing,
}
return {
name = _("Cement bridge"),
yearFrom = 1970,
yearTo = 0,
carriers = { "RAIL" , "ROAD"},
speedLimit = 320.0 / 3.6,
pillarLen = 3,
pillarMinDist = 101.0,
pillarMaxDist = 200.0,
pillarTargetDist = 101.0,
noParallelStripSubdivision = true,
cost = 500.0,
costFactors = { 10.0, 1.94, 1.2 },
materialsToReplace = {
streetPaving = {
name = "street/country_new_medium_paving.mtl",
},
streetLane = {
name = "street/new_medium_lane.mtl",
},
crossingLane = {
name = "street/new_medium_lane.mtl",
},
sidewalkPaving = {
name = "street/new_medium_sidewalk.mtl",
},
sidewalkBorderInner = {
name = "street/new_medium_sidewalk_border_inner.mtl",
size = { 3, 0.6 }
},
},
updateFn = bridgeutil.makeDefaultUpdateFn(config),
}
end
Alles anzeigen