Transport Fever 2

Transport Fever 2

DMA Road Stations
doug 28 maj, 2022 @ 13:30
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
< >
Visar 1-6 av 6 kommentarer
Falconerle 28 feb, 2023 @ 14:48 
Where to put these?
Hammer 69 10 jun, 2023 @ 4:43 
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
doug 5 jul, 2023 @ 6:03 
I created a mod to do this. It is available in my workshop.
can u give me the link please
Senast ändrad av हरि नाशपति18; 5 jul, 2023 @ 7:40
scrublord1013 19 okt, 2023 @ 21:42 
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2850044637 Link to dougs mod that increases the capacity.
< >
Visar 1-6 av 6 kommentarer
Per sida: 1530 50