The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: wlindley on January 19, 2014, 12:11:47 PM

Title: Factory locations: Ports, mills, mines
Post by: wlindley on January 19, 2014, 12:11:47 PM
Any chance of getting this into Experimental as well?

Quote from: Dwachs on January 06, 2014, 07:39:13 PM
here is a quick patch. it adds the following options to the location parameter:

river: one tile of factory adjacent to river tile
shore: one tile of factory on a sloped shore tile
forest: more than X trees on the tiles covered by the factory, X=area of factory

Windows executables for patched version of simutrans and makeobj:
http://simutrans-germany.com/files/upload/sim-win-7003-factory-placement.zip

Edit: More on the implementation: No check whether the shore tile is connected to an ocean. No check for major rivers or lakes. Building dams is pretty tough code-wise.

If the factory site finder gives up looking for places with the right climates it still considers the location constraint. That is, a factory with location=river will only placed on rivers or never be built (if the site finder does not find a suitable spot). This can be changed ofc.
Title: Re: Factory locations: Ports, mills, mines
Post by: jamespetts on January 19, 2014, 12:37:20 PM
Has this gone into the Standard trunk? If so, Bernd Gabriel is working on merging at the present.
Title: Re: Factory locations: Ports, mills, mines
Post by: prissi on January 20, 2014, 09:12:05 PM
No it is not, as the factory builder itself has undergone some renovation. It is much considered however.
Title: Re: Factory locations: Ports, mills, mines
Post by: jamespetts on January 20, 2014, 09:16:47 PM
Ahh, thank you for letting me know.