The International Simutrans Forum

 

Author Topic: New factory and attraction disturbs player highways  (Read 218 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran

  • Devotee
  • *
  • Posts: 1077
  • Languages: ja
New factory and attraction disturbs player highways
« on: July 21, 2020, 09:35:33 AM »
Hello.
I witnessed the road restrictions being rewritten when a factory was opened by chance. (´・ω・`)
I think this is undesirable behavior.



As the factory connected the road, one-way was rewritten as two way mode.
As such, players are sometimes forced to implement public services.

Online TheRoadmaster1996

  • *
  • Posts: 137
  • Languages: EN, some ES
Re: New factory and attraction disturbs player highways
« Reply #1 on: July 21, 2020, 06:21:07 PM »
Do you have road signs saying that that road is only one way?

Offline Ranran

  • Devotee
  • *
  • Posts: 1077
  • Languages: ja
Re: New factory and attraction disturbs player highways
« Reply #2 on: July 21, 2020, 09:44:57 PM »
Do you have road signs saying that that road is only one way?
Thank you for your advice. Certainly one-way signs seem to help prevent this. As pointed out in another thread, it means that oneway_mode and oneway sign exist independently and they are not linking properly.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 19975
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New factory and attraction disturbs player highways
« Reply #3 on: July 21, 2020, 10:35:20 PM »
Thank you for your report.

This is an inherently very complex problem to solve, as this would require a very deep pathfinding algorithm to check whether there are any other roads to connect to an existing city. The current system for connecting industries with roads relies on existing code from Standard, so this addition was intended to be lightweight.

If anyone can come up with a working solution to this, that would be splendid, but I expect that this would be a major project.

Offline Freahk

  • Devotee
  • *
  • Posts: 1172
  • Languages: DE, EN
Re: New factory and attraction disturbs player highways
« Reply #4 on: July 22, 2020, 02:41:12 AM »
The main purpose of such roads is to allow players connecting the industries without expensively affording land for roads first.
A positive sideffect is commuters reaching industries by cars.

A very simple solution would be to retain the road mode of existing roads while using the exact same road constuction algorithm as now.

I am aware this is not a perfect solution, but it's simple and still much better than the obstruction caused by industy spawning at the moment.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 19975
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New factory and attraction disturbs player highways
« Reply #5 on: July 29, 2020, 08:19:05 PM »
A very simple solution would be to retain the road mode of existing roads while using the exact same road constuction algorithm as now.

I have now implemented this - I should be grateful if you could test with to-morrow's nightly build.