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?
KhatheAngur 2023 年 7 月 5 日 上午 5:34 
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.
KhatheAngur 2023 年 7 月 5 日 上午 7:39 
can u give me the link please
最后由 KhatheAngur 编辑于; 2023 年 7 月 5 日 上午 7:40
scrublord1013 2023 年 10 月 19 日 下午 9:42 
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50