Transport Fever 2

Transport Fever 2

Enhanced terrain generator (tropical)
39 Comments
Grizz 4 Feb @ 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 25 Dec, 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 7 Nov, 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 7 Jul, 2023 @ 8:53am 
@charly-o
which file and location should i edit?
Tks
Xann 6 Jul, 2023 @ 2:19pm 
derelict
captain403 24 Jun, 2023 @ 10:33am 
Abandoned mod. :(
Serialtasted 14 May, 2023 @ 12:43pm 
@charly-o thanks! it works
and with a brief analysis those two variables are not even being used
Dr_Sascha 12 May, 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 15 Apr, 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 19 Feb, 2023 @ 5:30am 
fail generater error.... :(:steamsad:
Globetrotter 19 Feb, 2023 @ 4:02am 
@henning.schaefer . I really like this idea but, as mentioned earlier, it needs updating / fixing. I and others would really appreciate it if you could find the time.
AverageEuropeanTramEnjoyer 28 Dec, 2022 @ 9:04am 
@henning.schaefer Could you update this? It only gives a error, no matter what setting I use, it will always give a error.
TonyMontana 8 Oct, 2022 @ 9:13pm 
Generates an error
DrunkenPenguin 3 Oct, 2022 @ 5:13am 
Gives an error regardless of settings.
Sparkster 7 Jul, 2022 @ 8:01am 
Any plans for an enhanced generator working for the dry climate?
steenjsj 17 Jun, 2022 @ 7:58am 
Returns errors on all settings. Maybe an update is needed.
Sea Fairy 4 Apr, 2022 @ 7:48am 
I like so much these generators! Thank you so much for making this :Yonah:
Sumadisi 10 Dec, 2021 @ 5:56am 
Im sorry but wen I want to use the extended version it doesnt show me the map
How can I fix it?
Adroitly Absurd 24 Nov, 2021 @ 11:55am 
Gave @Duckboot's workaround a try - sadly it didn't work for me but I'm glad it worked for others! Hopefully we'll get an official fix!
charly-o 21 Nov, 2021 @ 6:12am 
@Duckboot: Your workaround works. Great!
Adroitly Absurd 8 Nov, 2021 @ 12:19pm 
I've also found this mod no longer works - any suggestions? It's fantastic and I'd really like to use it again!
charly-o 30 Oct, 2021 @ 5:20am 
I tried to use the mod today and I got the same error.

Is there any reaction from the developer?
Skara-Baeus 5 Aug, 2021 @ 12:12am 
This error it shows up

Exception type: Lua exception

This error is usually caused by modding. Some game resources contain incorrect data.

Details:

Error message: error: [string "C:/Games/Steam/steamapps/workshop/content/106..."]:118: attempt to perform arithmetic on field 'land' (a nil value)
stack traceback:
=[C](-1): __div
G:/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/username/1066780/local/crash_dump/6f1f51ee-6221-4263-82b6-b03758540f1e.dmp

In file: ..\..\src\Lib\lua\State.cpp:592

In function: void __cdecl lua::State::Call(int,int)
Skara-Baeus 5 Aug, 2021 @ 12:07am 
After Summerupdate this Mod seems to be out of Order. :steamsad:
Ipak 1 Aug, 2021 @ 5:16pm 
looks like this mod is dead.......
Gru Lightyear 31 Jul, 2021 @ 8:04am 
@DiscoDave i have the same problem
DiscoDave 10 Jul, 2021 @ 11:12pm 
Not working with latest update. Get this message:
Map generation failed: Internal error.
Huperspace 8 Jul, 2021 @ 3:59am 
@Skara-Baeus: after that fix, there is no difference between that and the vanilla generator.
Skara-Baeus 1 Jul, 2021 @ 2:25am 
@Boontee: just get this marked out of "tropical_ext.gen.lua"

"-- local islands = params.islands / 4"
"-- local islands = params.islands / 7"

at Line 118 and 120
tis how to marked out with "--"

for me it works now
iDontlikeTheworld 25 May, 2021 @ 10:59pm 
I want to create one with a round center, as shown in your mod picture in the mod list.
iDontlikeTheworld 25 May, 2021 @ 10:58pm 
how to generate an island ring (atoll) with the sea in the middle?
Godric Whiffindor 24 Apr, 2021 @ 7:21pm 
Really like this generator but I'm wondering if there's a way to smooth out the edges of land masses and cut down on the 'island fragments' when you make a smaller main island and several outer islands. (see pic) There's lots of little bits of land that get generated making the map look messy. It's like it's using a fractal equation to generate the map and leaving random bits in the water. https://i.imgur.com/jhCp9uc.jpg
Boontee 16 Apr, 2021 @ 9:40am 
This mod does not work for me. Error message

"Error message: error: [string "E:/SteamLibrary/steamapps/workshop/content/10..."]:118: attempt to perform arithmetic on field 'land' (a nil value)
stack traceback:
=[C](-1): __div
E:/SteamLibrary/steamapps/workshop/content/1066780/1960762394/res/config/terrain_generators/tropical_ext.gen.lua(118): ?"
Lasergeezer1 2 Nov, 2020 @ 9:01am 
Flipping marvellous. I've spent days messing around with Gimp and PaintShopPro trying to edit my own heightmaps, but with this mod I had what I wanted in 15 minutes. Brilliant, mate!
Zyntax 16 Aug, 2020 @ 2:46am 
How did you manage to get a stand alone island? My creations always have some kind of connection to the borders.
GUIJA 7 Aug, 2020 @ 12:45am 
Thank you so much! I wanted to create a map with a really huge and isolated big island in the center. With the default Terrain Generator it's impossible, but with this tool it's so easy! After a couple of tries I finally got what I exactly wanted.
Spectre 9 Jul, 2020 @ 3:26pm 
also could you publish a tutorial on how to get different island/atolls? I'm mainly just randomly guessing on what sliders effects are
Spectre 9 Jul, 2020 @ 3:23pm 
this is great, any advice on slider settings to make multiple large disconnected islands?
StopNLean 6 Mar, 2020 @ 1:42am 
AWESOMEEEEEEEEEEEEEEEEEEEEEEEEEEE