Author Topic: How are non-waterway tiles calculated for "MUST USE: Waterway"?  (Read 296 times)

0 Members and 1 Guest are viewing this topic.

Offline A.Badger

I was building out a canal network in a recent game and discovered that canal boats (boat horse + barge) can travel on "inland lakes" despite having the "MUST USE: Waterways" constraint.  Is this intended?  It looks a little funny to have the horse swimming in the middle of a huge lake but I suppose it makes some sense... canal boats probably could travel along the shoreline of a lake on a calm day even if they couldn't travel through the center of the lake as depicted.  powered boats and barges could traverse the center of the lakes as depicted and share the same "MUST USE: Waterways"

So, assuming that this is intended behaviour, how are inland lakes separated from ocean?   Is it ocean tile + above sea level?

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15553
  • Total likes: 383
  • Helpful: 172
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: How are non-waterway tiles calculated for "MUST USE: Waterway"?
« Reply #1 on: July 16, 2017, 09:06:38 PM »
I have not looked at this code for some time, so I may be mistaken, but, if I recall correctly, an inland lake that is not at sea level is treated differently in the game than the sea. The sea is regarded as not having a "ground" at all, whereas a lake is a type of ground. I think that the constraints were set for lakes so as to be maximally permissive (as most constraints on waterways relate to the size of the waterway).

If you were referring to an inland lake that is at sea level, however, waterway restricted vehicles should not be able to pass upon it, and, if they can, this is a bug.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Offline A.Badger

Re: How are non-waterway tiles calculated for "MUST USE: Waterway"?
« Reply #2 on: July 18, 2017, 07:52:18 AM »
Cool.  Currently I've only tried sending waterway restricted boats across lakes that are higher than sea level.  So all seems to be working as expected.