The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: DrSuperGood on December 19, 2017, 07:44:26 AM

Title: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: DrSuperGood on December 19, 2017, 07:44:26 AM
As a small port grows into a larger port it is often required to extend it to cope with the larger traffic. However often the traffic that visits it prevents one from building the extensions for some reason.

Here is some ASCII art showing the problem.

D = dock
N = where new dock is trying to be built
S = ship
T = ship tail (holds)
W = water
C = coast

Dock with no ships, N can be built.
WWWW
WWWW
CDNC

Dock with ship in orientation allowing N to be built
WTWW
WSWW
CDNC

Dock with ship in orientation that prevents N from being built with a "Vehicles cannot be removed" error message.
WWWW
WSTW
CDNC


Since the ship is already interacting with the dock I see no reason why it should prevent the enlargement of the dock to the sides.
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: jamespetts on December 19, 2017, 11:36:29 AM
Can you identify a particular place on the online game where this issue can reliably be reproduced, or alternatively upload a saved game in which this issue can reliably be reproduced at a particular place and time?
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: DrSuperGood on January 10, 2018, 07:01:01 AM
I have set up a demonstration for this bug on the server game @1528,505. The signs mark where trying to place an expansion to the dock fails due to "Vehicles cannot be removed".

It is possible this is a problem in Standard as well, just standard paksets do not have many multi-tile ships so it is never encountered.
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: jamespetts on January 10, 2018, 07:44:52 PM
I have managed to reproduce this in Standard, so I have moved this to the Standard bug reports board. I should note that there are multi-tile ships in the Standard version of Pak128.Britain.
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: DrSuperGood on January 11, 2018, 01:26:14 AM
Does anyone still need the demonstration on the experimental server?
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: jamespetts on January 11, 2018, 11:10:27 AM
I do not think so.
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: prissi on January 12, 2018, 05:29:41 AM
No considered an error, since before building a dock everything is removed. And ships are non-removal items. In realisty you cannot build a dock on a ship, you need to remove it first too.
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: DrSuperGood on January 12, 2018, 05:53:07 AM
The problem is that the dock is not being built over any ships. The dock is trying to be built on the shore (land) while a ship tail (cargo holds) is in front of it. I could understand if the dock in question had a peer as that would get built over the ship, however it does not.
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: Ters on January 12, 2018, 06:35:28 AM
In other words, it is not the dock/pier itself that is conflicting with the unremovable objects, but the invisible stops on water tiles surrounding it?
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: DrSuperGood on January 12, 2018, 06:45:58 AM
Quotebut the invisible stops on water tiles surrounding it?
Sounds about right.

Why must it remove all objects in the way? Surely it could ignore trying to remove all convoys.
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: Leartin on January 12, 2018, 06:56:05 AM
One could question why tiles on water need to be checked for objects at all, given that water objects are not 'solid'?
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: Ters on January 12, 2018, 04:32:52 PM
It is after all possible to build train platforms and bus stops on tiles with vehicles on them.
Title: Re: Bug: Cannot build dock (Vehicles cannot be removed)
Post by: Dwachs on January 13, 2018, 10:13:30 AM
should be fixed with r8368.