Transport Fever

Transport Fever

View Stats:
Custom map sizes question
Okay, might be a stupid question but am I correct in thinking that the maximum size for a map is 576 km², that map dimensions must be a multiple of 1024+1, and that if I want to make a 48km * 12km map, that should be possible?
< >
Showing 1-14 of 14 comments
Thork Apr 1, 2018 @ 11:08am 
Yes, that should be possible. At least I'm not aware of hard limits if you enable:
experimentalMapSizes = true,
in:
"\Steam\userdata\<YourSteamID>\446800\local\settings.lua"
1025, 2049, 3073, 4097, 5121, 6145, 7169, 8193... all valid.
There might be hard limits I'm not aware of and you always need to consider performance. Such a huge map with standard settings for towns is unlike to perform well.
If you use the Map Creation Tool[www.transportfevermods.com], it will also automatically adjust heightmaps to the next best supported size.
If you aim for realism, 1 pixel should be 2 meters, afaik.
Dirkels Apr 1, 2018 @ 12:26pm 
As far as I know the maximum size of one side is 8193 which is 32.75 km
A Guy Called Pi Apr 1, 2018 @ 1:07pm 
I'm pretty sure it's 16385, since I've seen maps that are 64 kilometers on one end.
Dirkels Apr 1, 2018 @ 2:17pm 
I stand corrected, you are right and 16385 is posible too. Soo I did a test and a 12 by 48 km map is posible. You will need to make 3073 by 12289 pixel heightmap for that.
Last edited by Dirkels; Apr 1, 2018 @ 2:18pm
A Guy Called Pi Apr 1, 2018 @ 4:13pm 
Awesome, thanks.
SoftwareSimian Apr 1, 2018 @ 4:20pm 
https://www.transportfever.com/wiki/doku.php?id=modding:developerinfo:maps
The width and heigth of the image should be multiples of 256 plus one and are limited to be between 257 and 16385. The total number of pixels should be at most 16 millions, for example 4097 x 4097 or 2049 x 8193
So 1025x16385 will give you a very long skinny map. I've seen elsewhere that 32769 might be acceptable, but I'm not sure that's true.
The 256+1 (not 1024+1) is true, my Canada Transcontinental map is 12289x1281 (12*1024 x 1024+256)
Dirkels Apr 1, 2018 @ 4:48pm 
The article linked says the maximum for one side is 16385. But it also says the heightmap should have no more than 16M pixels but the test map i tried had 3073x12289=36M pixels and that worked. So I should do some testing to see how far we can really go....
A Guy Called Pi Apr 1, 2018 @ 6:58pm 
16M is the default limit, I believe, and 36M is the limit with experimental sizes enabled.
Dirkels Apr 2, 2018 @ 6:15am 
So after some tests I came to the following resuts:

Size of a side is indeed in steps of 256, so (N * 256) + 1.

A map can have a maximum of 37 761 025 pixels giving maximum square map of 6145 x 6145 pixles (24.576 x 24.576 = 603.98 square Km or 15.27 x 15.27 = 233.2 square Miles).

Maximum length is 16385 pixels (65.5 Km or 40,7 Miles) at this length the maximu width is 2305 pixels (9.2 Km or 5.7 Miles). By coincidence this is a 16:9 aspect ratio most monitors have ;-)

Smallest map that worked with auto generated cities and industries is 769x513 pixels (3 by 2 Km or 1.9 by 1.27 miles)
A Guy Called Pi Apr 2, 2018 @ 6:40am 
I might have to give the 16385x2305 one a shot.
SoftwareSimian Apr 2, 2018 @ 7:10am 
Originally posted by Dirkels:
Smallest map that worked with auto generated cities and industries is 769x513 pixels (3 by 2 Km or 1.9 by 1.27 miles)
That might be pushed further by adjusting game.config.world.areaPerTown and game.config.world.areaPerIndustry in base_config.lua?
A Guy Called Pi Apr 2, 2018 @ 8:00am 
Yeah, you can also use this modifier to increase the distance between towns and/or industries.
SoftwareSimian Apr 2, 2018 @ 10:40am 
I was thinking (for the purposes of trying to create the smallest map possible) to reduce them, since you need to fit 2 industries and 2 towns on a map. I'm not sure if the game will let you set them low enough to generate a town in a 257x257 map :)
Dirkels Apr 2, 2018 @ 11:42am 
The 769x513 map only holds 2 cities and 2 industries so I doubt changing the areaPer parameters will make any change.
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Apr 1, 2018 @ 9:44am
Posts: 14