Transport Fever 2

Transport Fever 2

228 ratings
Expanded Cargo Demands (6 per city)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.562 MB
Dec 19, 2019 @ 7:01am
Jan 3, 2020 @ 8:22am
11 Change Notes ( view )

Subscribe to download
Expanded Cargo Demands (6 per city)

Description
TLDR: This mod adds additional city demands when generating maps for all base products.

Alternative Versions:
> Static Version - 4 items per city.
> Static Version - 6 items per city.
> Dynamic Version - 1850: 2 items, 1920: 4 items, 1990: 6 items.
> Progressive Version - 1850: 2 food/construction, 1920: + tools/fuel, 1990: + goods/machines.

Compatibility:
This mod should be set to load above/before any industry mods, to ensure the best compatibility.
Compatible with Industry Diversity by Magnetic Reaper
- Adds new resource chains and city demands
Compatible with Industry Expanded by Col0Korn
- Adds new resource chains

Third-party compatible mods that include residential demands, will increase the number of items demanded by the cities, additional industrial/commercial goods will stick within the set limit of 6 max per city

Industry mods that use only the base products for city supply are compatible by default, however mods adding products can be made compatible by the mod author - see info at the bottom of the description for more details.

This mod is not compatible with other mods that make changes to townbuildingutil.lua

Known issue.
Currently, The zoomed out overview (City name/icons) does not show the additional demands, but clicking the city does and they are accepted (See screenshot). It doesn't really matter though, because you already know they will accept any of the available products ;) I believe this may be hard-coded into the engine

Save game safe?
This mod is save-game safe and can added/removed at any time.
If removed, just bear in mind that additional demands will remain in your cities until the buildings change/upgrade or are replaced. If added to an existing game, cities will need to develop to begin demanding new items.

Mod Authors
Industry Mod authors, specifically those adding new products for city consumption, can include a compatibility file to enable this mod to use the new products, by simply adding their product(s) into the relevant list. It can also be configured to allow city buildings to produce items and residential to demand/produce items, with various options.

Copy and edit the file listed below, so its in the same path within your mod: res/scripts/expanded_industry.lua
The default file (with some comments) can be found:
Steam/steamapps/workshop/content/1066780/1940437537/res/scripts/expanded_industry.lua

Load order needs to have expanded cargo above any industry mod
1 - Expanded Cargo
2 - Industry Mod
This will over-ride the defaults with the options specified in your mod, however only one additional product mod will work at any one time, although can obviously contain multiple new products

94 Comments
𝓕𝔁  [author] Jun 20, 2022 @ 4:23am 
Yeah, it shouldn't be and should have been hidden (since I don't remove mods)
So hidden now... which means you may not see this @ilivTransportFever2 :steamhappy:
AverageEuropeanTramEnjoyer Jun 19, 2022 @ 10:53am 
This mod is not needed anymore, it's basically useless to this point. The new Spring update has this feature now.
PhazezGova Jan 5, 2022 @ 6:25am 
Is the mod up to date? :)
𝓕𝔁  [author] Nov 2, 2021 @ 8:54am 
@zain - try removing the file: /steamapps/workshop/content/1066780/1953649197/res/scripts/townbuildingutil.lua

It shouldn't be needed, if it breaks, you could always unsub & resub to get it back.

It's been a while, so I'm not 100% certain atm, but I do recall I stopped using vanilla files, but could not remove them from the mod (since existing subscriptions, retained it) so I still included it to replace the previously modded version from the initial release with a vanilla file.
ZAIN Nov 2, 2021 @ 5:01am 
Thanks for the reply, so after hours of testing, the error seems to happen when I select the TROPICAL climate on a map. If I select anything else it does not crash. I have no idea why this is happening tho but maybe that can help trace down the issue...
𝓕𝔁  [author] Nov 1, 2021 @ 2:16pm 
Sounds like a conflict with another mod, try moving this mod to the top of the mod order list or bottom.

Whilst it does include townbuildingutil.lua in my file, it is vanilla, some other mod is in use that is calling for "random_shrub_town"
ZAIN Nov 1, 2021 @ 1:50pm 
Any idea to whats causing this?

Error message: error: res/scripts/constructionutil.lua:144: group 'random_shrub_town' not found
stack traceback:
=[C](-1): ?
=[C](-1): error
@res/scripts/constructionutil.lua(144): addGroups
@res/scripts/constructionutil.lua(262): addModelsAndGroups
@C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/1953649197/res/scripts/townbuildingutil.lua(78): updateFn
@C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/1953649197/mod.lua(329): ?
@res/config/base_config.lua(41): ?


File name: res/construction/building/era_c/res_2_3x4_01.con

Key: game/config/ConstructWithModules

Mod: no mod

In file: ..\..\src\Lib\lua\State.cpp:592
jhughes Jul 10, 2021 @ 4:28am 
@fetfrumos96: There is another version of it posted .. I have not tried the new version:
https://steamcommunity.com/sharedfiles/filedetails/?id=2524533770
𝓕𝔁  [author] Jun 8, 2021 @ 7:58am 
No idea, sorry. It seems the author removed it from the workshop.
Fetfrumos96 Jun 8, 2021 @ 4:01am 
Compatible with Industry Diversity by Magnetic Reaper
- Adds new resource chains and city demands Where did this mod go and will it return to the game?