The International Simutrans Forum

 

Author Topic: [Partly fixed] Expansion of city may obstruct navigable route  (Read 1156 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran

  • Devotee
  • *
  • Posts: 1202
  • Languages: ja
I saw it happen


Also, as reported in another thread, the convoy caught in this bridge cannot get out of it without removing it.
« Last Edit: August 27, 2020, 11:43:19 AM by jamespetts »

Offline TheRoadmaster1996

  • *
  • Posts: 245
  • Languages: EN, some ES
Re: Expansion of city may obstruct navigable route
« Reply #1 on: June 27, 2020, 04:09:54 PM »
You might want to try expanding the road a little bit and see if that helps. As for the convoy, I can't help you sorry.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20266
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Expansion of city may obstruct navigable route
« Reply #2 on: July 21, 2020, 11:29:57 PM »
This has been reported previously, and I spent a considerable time looking into it. This is an extremely difficult problem to solve because of the way in which the automatic road building system builds bridges: there is no way (at least that I could find) of causing this system to build double height bridges (I spent quite a few hours looking into this): the problem is that it needs an extra tile for the ramp, and that would have major and extremely complex implications for the whole system of building city roads. So, without very major changes to the city road code, either cities build no bridges, or they build these low bridges.

Offline Freahk

  • Devotee
  • *
  • Posts: 1303
  • Languages: DE, EN
Re: Expansion of city may obstruct navigable route
« Reply #3 on: July 22, 2020, 01:50:44 AM »
Iirc, standard had just fixed a quite simmilar issue half a year ago or something like this by artificially flattening the terrain and then building a bridge with slopes on top of it.
In standard the problem was that towns won't build any bridges over rivers if there is a half-height slope involved (which would still be better than the obstructive behavior)

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20266
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Expansion of city may obstruct navigable route
« Reply #4 on: July 22, 2020, 06:42:28 PM »
Iirc, standard had just fixed a quite simmilar issue half a year ago or something like this by artificially flattening the terrain and then building a bridge with slopes on top of it.
In standard the problem was that towns won't build any bridges over rivers if there is a half-height slope involved (which would still be better than the obstructive behavior)

Interesting - can anyone find the commit number in Standard so that I can investigate incorporating this?

Offline Vladki

  • Devotee
  • *
  • Posts: 3437
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: Expansion of city may obstruct navigable route
« Reply #5 on: July 22, 2020, 07:04:58 PM »
Maybe this one?
r8911: city more strongly attempt to build double height bridges over navigable rivers

While looking for that I found this which sound like a bug I hit in extended too:
r9084: enable bridge starting at tiles with road & tram

   

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20266
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Expansion of city may obstruct navigable route
« Reply #6 on: July 22, 2020, 08:28:45 PM »
Maybe this one?
r8911: city more strongly attempt to build double height bridges over navigable rivers

That is very helpful, thank you. I have now incorporated this and it seems to work. I have modified it so that single height bridges can be built over public rights of way that have not been used either in the current or the last month.

Quote
While looking for that I found this which sound like a bug I hit in extended too:
r9084: enable bridge starting at tiles with road & tram   

I have also incorporated this - thank you.

Offline Freahk

  • Devotee
  • *
  • Posts: 1303
  • Languages: DE, EN
Re: Expansion of city may obstruct navigable route
« Reply #7 on: July 22, 2020, 08:57:26 PM »
I have modified it so that single height bridges can be built over public rights of way that have not been used either in the current or the last month.
Great!

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20266
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Expansion of city may obstruct navigable route
« Reply #8 on: July 29, 2020, 08:02:59 PM »
Can I check whether this can be recorded as fixed?

Offline Freahk

  • Devotee
  • *
  • Posts: 1303
  • Languages: DE, EN
Re: Expansion of city may obstruct navigable route
« Reply #9 on: July 29, 2020, 09:09:31 PM »
I guess it's solved for rivers and canals. At least I've not seen this kind of obstruction anymore.
Real water is a different thing though. There had been some obstruction of this kind after the fix.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20266
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Expansion of city may obstruct navigable route
« Reply #10 on: July 29, 2020, 09:16:11 PM »
I guess it's solved for rivers and canals. At least I've not seen this kind of obstruction anymore.
Real water is a different thing though. There had been some obstruction of this kind after the fix.

This is more complex, since there is no sensible way to determine whether what is being obstructed is a thoroughfare or not.

Offline Freahk

  • Devotee
  • *
  • Posts: 1303
  • Languages: DE, EN
Re: Expansion of city may obstruct navigable route
« Reply #11 on: August 17, 2020, 10:39:02 AM »
I am sorry to say this, but it just happened again :(

Online freddyhayward

  • Devotee
  • *
  • Posts: 429
  • Languages: EN
Re: Expansion of city may obstruct navigable route
« Reply #12 on: August 17, 2020, 10:46:41 AM »
Really, this needs to be stopped entirely. No bridges is better than bridges that regular bring the entire global shipping network to a standstill. This is yet another case of half a feature being far worse than no feature at all.

Offline Freahk

  • Devotee
  • *
  • Posts: 1303
  • Languages: DE, EN
Re: Expansion of city may obstruct navigable route
« Reply #13 on: August 17, 2020, 11:54:30 AM »
In principle, I agree with you, but in this case it's just a bug, not an issue with the design.

In relation to "real" water, I'd always require the cityrowth and industry chain connection system to build high bridges.
Same goes for bridges over roads.
The only case where the system should be allowed to build low bridges is in cases where we know that is definitely won't cut any existing connections.
These cases are initial map creation, unused waterways and unused roads.
In case of "real" water, we don't know, so the system should assume it's used.

Online freddyhayward

  • Devotee
  • *
  • Posts: 429
  • Languages: EN
Re: Expansion of city may obstruct navigable route
« Reply #14 on: August 17, 2020, 12:43:32 PM »
My point was not that disabling bridges entirely is desirable, but just that it would be preferable to the existing behaviour, assuming it can't be trivially fixed.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20266
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Expansion of city may obstruct navigable route
« Reply #15 on: August 18, 2020, 10:04:03 PM »
Thank you for your report. Is anyone able to upload a reproduction case in which this reliably occurs at a specific date and time in the saved game? I assume that the canal had had shipping traffic in the last month?

Offline Freahk

  • Devotee
  • *
  • Posts: 1303
  • Languages: DE, EN
Re: Expansion of city may obstruct navigable route
« Reply #16 on: August 18, 2020, 10:41:05 PM »
Is anyone able to upload a reproduction case in which this reliably occurs at a specific date and time in the saved game?
No. It happened once after many years and I have no idea what has caused this.

I assume that the canal had had shipping traffic in the last month?
Definitely. There are quite many ships running along that canal.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20266
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Expansion of city may obstruct navigable route
« Reply #17 on: August 18, 2020, 10:42:36 PM »
I am not realistically likely to be able to find this problem without a reliable reproduction case, I am afraid.

If anyone can upload one, I should be very grateful.

Offline Freahk

  • Devotee
  • *
  • Posts: 1303
  • Languages: DE, EN
Re: Expansion of city may obstruct navigable route
« Reply #18 on: August 27, 2020, 11:09:52 AM »
Should be moved out of the solved section though.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 20266
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: [Partly fixed] Expansion of city may obstruct navigable route
« Reply #19 on: August 27, 2020, 11:44:08 AM »
Should be moved out of the solved section though.

I have moved it out of the solved section and added [Partly fixed] to the title to indicate that the original reproduction case has been fixed.

If anyone can produce a reliable reproduction case for this occurring again, I should be grateful if people could post this here.