Transport Fever 2

Transport Fever 2

DMA Road Stations
doug 28. maj 2022 kl. 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
< >
Viser 1-6 af 6 kommentarer
Falconerle 28. feb. 2023 kl. 14:48 
Where to put these?
Hammer 69 10. juni 2023 kl. 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. juli 2023 kl. 6:03 
I created a mod to do this. It is available in my workshop.
can u give me the link please
Sidst redigeret af Иосиф Сталин18; 5. juli 2023 kl. 7:40
scrublord1013 19. okt. 2023 kl. 21:42 
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2850044637 Link to dougs mod that increases the capacity.
< >
Viser 1-6 af 6 kommentarer
Per side: 1530 50