Transport Fever 2

Transport Fever 2

171 ratings
Enhanced terrain generator (tropical)
   
Award
Favorite
Favorited
Unfavorite
Scenario: Tropical
Map/Savegame: Map
Misc: Script Mod
File Size
Posted
295.989 KB
Jan 5, 2020 @ 8:17am
1 Change Note ( view )

Subscribe to download
Enhanced terrain generator (tropical)

Description
This mod allows for more control over the parameters of the standard terrain generator for tropical climate. The unmodded generator only allows to set four different parameters (hilliness, mainland, islands and forest), which will then in turn influence several internal parameters such as the position and size of the islands and others. This mod exposes many of those parameters to the user, allowing for much more detailed influence on the resulting map. With this mod, you can, for example:

- generate single big islands
- generate an island ring (atoll) with the sea in the middle
- generate flat islands with steep cliffs
- generate largely forested islands
- and much more

The terrain generation library itself has not been changed, the mod will still use the original Urban Games terrain library, just with some more flexibility.

*** How to use ***

- When starting a new game, the mod can be used without prior activation. Simply select "Tropical" as your climate and "Tropical (extended)" as your terrain generator.
- If you want to use the mod in the map editor, you need to enable it first on the map editor startup dialog by choosing "User defined" settings.

*** Warnings ***

- The mod allows for heavy afforestation (much more so than the unmodded version). However, trees are a performance killer, so be sure you have enough computing power when choosing high values for the forest parameter
- The final layout of the map will still be heavily influenced by the random seed, and some parameters may not have the desired effect in certain circumstances. In this case, it is advised to refresh the random seed and to try again.
- Unfortunately, some tree generation values are hard-coded into the terrain generation library and cannot be influenced from outside. In order to suppress all trees when the forest value is set to zero, it is required to also suppress rock asset generation, which is what the mod is currently doing when no trees are desired. Still looking into this, but for now you have to go without rocks if you don't want any trees.

*** See also ***

Enhanced terrain generator for temperate climate: https://steamcommunity.com/sharedfiles/filedetails/?id=1959994153
39 Comments
Grizz Feb 4 @ 3:08am 
Getting an error too when trying to generate the map:


Error message: error: [string "C:/Games/Steam/steamapps/workshop/content/1066780/1960762394/res/config/terrain_generators/tropical_ext.gen.lua"]:118: attempt to perform arithmetic on field 'land' (a nil value)
stack traceback:
=[C](-1): __div
C:/Games/Steam/steamapps/workshop/content/1066780/1960762394/res/config/terrain_generators/tropical_ext.gen.lua(118): ?


Key: game/res/terrain_generator/tropical_ext.gen.lua

Minidump: C:/Games/Steam/userdata/72854613/1066780/local/crash_dump/ddb35107-fbf0-4281-ae98-e2d6bdd4b38c.dmp

In file: urban_games/train_fever/src/Lib/lua/State.cpp:753

In function: void __cdecl lua::State::Call(int,int)
tommi2032 Dec 25, 2024 @ 11:57am 
@tille
@charly-o
the error appeared today when I moved my account to another computer. Thanks for giving clear ionstructions, your solution worked.
tille Nov 7, 2023 @ 10:53am 
charly-o fix is working, here is a more detailed approach:

go to \steamapps\workshop\content\1066780\1960762394\res\config\terrain_generators
open the file tropical_ext.gen.lua with a text editor
find the following:

line 118
local land = params.land / 4 (delete the /4)

line 120
local islands = params.islands / 7 (delete the /7)

save and have fun :)
Castorsao Jul 7, 2023 @ 8:53am 
@charly-o
which file and location should i edit?
Tks
Xann Jul 6, 2023 @ 2:19pm 
derelict
captain403 Jun 24, 2023 @ 10:33am 
Abandoned mod. :(
Serialtasted May 14, 2023 @ 12:43pm 
@charly-o thanks! it works
and with a brief analysis those two variables are not even being used
Dr_Sascha May 12, 2023 @ 11:16pm 
I got both map editor for temperate and tropical , while temperate works perfect
the Tropical always causes an Error and can't create a map...

Someone got an Idea why it doesn't work?
charly-o Apr 15, 2023 @ 11:40am 
There are two divisions in Line 118 an 120 which causes the error. I deleted these two and the mod works. I don't know what was the sense of the two division. I do not notice any changes.
Spinix Feb 19, 2023 @ 5:30am 
fail generater error.... :(:steamsad: