News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Factory locations: Ports, mills, mines

Started by wlindley, January 19, 2014, 12:11:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wlindley

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.

jamespetts

Has this gone into the Standard trunk? If so, Bernd Gabriel is working on merging at the present.

prissi

No it is not, as the factory builder itself has undergone some renovation. It is much considered however.

jamespetts