Transport Fever 2

Transport Fever 2

DMA Road Stations
Capacity
I see there have been a few requests for higher capacity values for these.
For my own use, I added the following modifier:


local function constructionHandler(fileName, data)

local extraCap = {
{
terminals = {0,1},
tag = 0,
pool = {moreCapacity = 100}
}
}
local t4 = {0,1,2,3}
local t2 = {0,1}
local t1 = {0}
local t10 = {0,1,2,3,4,5,6,7,8,9}

if string.find(fileName, "cargo_dma_city1.con") or
string.find(fileName, "cargo_dma_country1.con") or
string.find(fileName, "passenger_dma_small.con") then
local oldUpdate = data.updateFn
data.updateFn = function(params)
local result = oldUpdate(params)
extraCap[1].terminals = t2
result.stations = extraCap
return result
end
return data
end

if string.find(fileName, "cargo_dma_country2.con") or
string.find(fileName, "passenger_dma_large.con") then
local oldUpdate = data.updateFn
data.updateFn = function(params)
local result = oldUpdate(params)
extraCap[1].terminals = t4
result.stations = extraCap
return result
end
return data
end

if string.find(fileName, "cargo_dma_city2.con") or
string.find(fileName, "station_bus_greyhound.con") then
local oldUpdate = data.updateFn
data.updateFn = function(params)
local result = oldUpdate(params)
extraCap[1].terminals = t1
result.stations = extraCap
return result
end
return data
end

if string.find(fileName, "truck_parking.con") then
local oldUpdate = data.updateFn
data.updateFn = function(params)
local result = oldUpdate(params)
extraCap[1].terminals = t10
extraCap[1].pool.moreCapacity = 300
result.stations = extraCap
return result
end
return data
end

return data
end
< >
Zobrazuje se 16 z 6 komentářů
Where to put these?
Can you not make small road side cargo station that does not take up extra space for inner city cargo pick ups and unloads for like post and garbage?
how to put these value and where please
I created a mod to do this. It is available in my workshop.
can u give me the link please
Naposledy upravil हरि नाशपति18; 5. čvc. 2023 v 7.40
< >
Zobrazuje se 16 z 6 komentářů
Na stránku: 1530 50