Transport Fever 2

Transport Fever 2

DMA Road Stations
doug 2022 年 5 月 28 日 下午 1: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
< >
目前顯示第 1-6 則留言,共 6
Falconerle 2023 年 2 月 28 日 下午 2:48 
Where to put these?
Hammer 69 2023 年 6 月 10 日 上午 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 2023 年 7 月 5 日 上午 6:03 
I created a mod to do this. It is available in my workshop.
can u give me the link please
最後修改者:हरि नाशपति18; 2023 年 7 月 5 日 上午 7:40
scrublord1013 2023 年 10 月 19 日 下午 9:42 
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2850044637 Link to dougs mod that increases the capacity.
< >
目前顯示第 1-6 則留言,共 6
每頁顯示: 1530 50