nonta1234 / terraining-heightmap-generator

Terraining - Online heightmap generator for "Cities: Skylines".
MIT License
28 stars 4 forks source link

CS2 maps sizes #6

Closed alexalder closed 5 months ago

alexalder commented 5 months ago

As per the CS2 documentation, to create a custom map, a 14.336x14.336km, 4096x4096 resolution, grayscale, 16 bit .png or .tiff is needed, plus an optional 57.334x57.334km heightmap for the worldmap.

image image

I can't input a 14.336 size in your tool, so i can't properly generate the required heightmaps. Could you fix this? Thank you

nonta1234 commented 5 months ago

Set the map size to include the unplayable area for both CS1 and CS2. That is, 17.28km for CS1 and 57.344km for CS2. In CS2, if you set the map size to 57.344km, a playable map of 14.336km will be automatically generated.

alexalder commented 5 months ago

Set the map size to include the unplayable area for both CS1 and CS2. That is, 17.28km for CS1 and 57.344km for CS2. In CS2, if you set the map size to 57.344km, a playable map of 14.336km will be automatically generated.

This isn't right, the game requires a 14.336km 4096px heightmap file as per the documentation i provided. Your app only downloads a 57.355km 4096px raw file. Please just allow for a lower value

nonta1234 commented 5 months ago

When you download RAW or PNG in CS2, two files are downloaded: "heightmap_lng-value_lat-value_map-size.raw(png)" and "worldmap_lng-value_lat-value_map-size.raw(png)". In this case, "map-size" is both the value of map size in the settings panel. This is to make it easier to find the heightmap and worldmap pair even when the map size is set to a value different from the default and many files are stored. Try importing both heightmap and worldmap into the map editor. I think there is no problem.

BrokVid commented 5 months ago

A little confused, can you show in a screenshot how to load the world map? I only see the button to load the altitude map.

mltytskr commented 5 months ago

@BrokVid in the CS2 editor, under Modify Terrain, there are button to import the Heightmap and Worldmap. You may need a mod to unlock the editor. I use MOOB by Cities2Modding (https://github.com/Cities2Modding/MOOB). CS2 Modify Terrain

alexalder commented 5 months ago

@BrokVid in the CS2 editor, under Modify Terrain, there are button to import the Heightmap and Worldmap. You may need a mod to unlock the editor. I use MOOB by Cities2Modding (https://github.com/Cities2Modding/MOOB).

Official map editing is coming next week