The International Simutrans Forum


Author Topic: Bug in wayremover: First tiles ignored  (Read 3529 times)

0 Members and 1 Guest are viewing this topic.

Offline jarauh

  • *
  • Posts: 23
Bug in wayremover: First tiles ignored
« on: September 10, 2008, 12:10:36 AM »
It should be possible to use the "remove" tools for roads and tracks also for neighbouring tiles. Possible applications would be:

Sometimes stations consist of two parallel tracks with station tiles on them. Just before the station, they are connected. Now if I want to enlarge the station, I have to remove one of the tracks first, before I can enlarge the station and connect the parallel tracks at another place.

Also a crossing road may be the reason I want to change the place where two parallel tracks meet.

There are also some obscure reasons where I want to disconnect two roads, for example at large factories: Sometimes it is nice to have some place for the trucks to queue, such that they don't produce a congestion on the roads passing by the factories. If I buy more trucks or if I connect the factory to another factory, it may be necessary to change the road setup leading to the factory, and sometimes it would be very convenient to simply disconnect one road leading to another road.
« Last Edit: September 10, 2008, 07:36:26 PM by prissi »

Offline VS

  • Senior Plumber (Devotee)
  • Devotees (Inactive)
  • *
  • Posts: 4856
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Disconnect roads/tracks etc.
« Reply #1 on: September 10, 2008, 09:22:28 AM »
And how do you handle cases when you disconnected two last tiles and now there are two such tiles; what does the "remover tool" do with them? Do you have to delete this combination twice?

In other words, how do you decide which tiles should be deleted and which disconnected? Propose rules that cover every possible situation, and while thinking about that, I guarantee you'll start thinking differently. IIRC current behaviour is the best compromise.

That's not to say that there isn't some better scheme for this all, if you find it (and code) the better :)

Offline jarauh

  • *
  • Posts: 23
Re: Disconnect roads/tracks etc.
« Reply #2 on: September 10, 2008, 09:53:10 AM »
Good point. Maybe the following could work:

Normally single road tiles don't exist in simutrans. So clicking on two neighbouring road tiles with the remove tool could disconnect them, and any disconnected single road tile that appears could be removed.

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: Disconnect roads/tracks etc.
« Reply #3 on: September 10, 2008, 04:17:04 PM »
A single road tile that is connected...? ???

You might want to try explaining this whole thing with some screenshots...

Offline jarauh

  • *
  • Posts: 23
Re: Disconnect roads/tracks etc.
« Reply #4 on: September 10, 2008, 06:18:03 PM »
Ok, I'll try:

Suppose, we have the following roads as in the first attachment.

Clicking on A and B should simply disconnect the roads.

Clicking on B and C should remove C, because if B and C would be disconnected, C would be isolated.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10818
  • Languages: De,EN,JP
Re: Bug in wayremover: First tiles ignored
« Reply #5 on: September 10, 2008, 07:36:59 PM »
This is a bug in the wayremover. I changed your topic accordingly and submitted (hopefully) a fix.