The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: uci on April 10, 2018, 03:08:55 PM

Title: Ground objects distribution
Post by: uci on April 10, 2018, 03:08:55 PM
I noticed that ground objects are not scattered uniformly across the climate they belong to. For example, cacti in pak128 are always generated on the west side of desert climate. These objects have climates=desert.

(https://i.imgur.com/n42LHrd.png)

The same happens with another ground object I play with, at the interface between alpine and arctic climate. This object has climates=tundra,rocky.

(https://i.imgur.com/2cBH22E.png)


Could be a bug in the generation algorithm?
Title: Re: Ground objects distribution
Post by: Ters on April 10, 2018, 05:15:33 PM
Just looking at the images and knowing which way the coordinates run, it seems like the game fills in objects from west to east. It wanted to put the objects further east, but could not due to climate restriction. They are therefore built at the first possibility, as if spacing is done using a dithering-like algorithm, that accumulates regardless of climate.
Title: Re: Ground objects distribution
Post by: Dwachs on April 10, 2018, 09:26:23 PM
This should be fixed in r8420
Title: Re: Ground objects distribution
Post by: Ters on April 11, 2018, 05:51:52 AM
Looking at what Dwachs did, it seems I got it pretty right for the lower image, but I do not understand how the upper one came about. Were there no groundobjs defined for the tropical climate?
Title: Re: Ground objects distribution
Post by: uci on April 16, 2018, 11:10:53 AM
Quote from: Dwachs on April 10, 2018, 09:26:23 PM
This should be fixed in r8420
Yes, indeed.