The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: RESTRICTED ACCOUNT on May 20, 2018, 12:23:08 AM

Title: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: RESTRICTED ACCOUNT on May 20, 2018, 12:23:08 AM
When put a marker at the signal box, it is displayed as "Controlled from: none" in the signal detail window which is connected to it.

(https://simutrans-germany.com/files/upload/signalbox_normal.png)

(https://simutrans-germany.com/files/upload/signalbox_markered.png)

It does not affect signaling behavior. Just a small bug.  ;)
(´・ω・`)
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: jamespetts on May 27, 2018, 01:00:25 PM
Thank you for your report. I am afraid that I am having trouble reproducing this. Can you upload a saved game in which this can be reproduced?
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: RESTRICTED ACCOUNT on May 27, 2018, 02:39:31 PM
OK, I uploaded the saved game here (https://drive.google.com/open?id=1TKSM_MvWR0Nhyuut2Rpa3nsnjSiy2VmS).
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: jamespetts on May 27, 2018, 04:45:34 PM
I am afraid that I still cannot reproduce this. I suspect that it may be idiosyncratic depending on which objects are in what order in the game's internal system for storing objects. Given the difficulty in reproducing this and its minor effect, I am classing this as a low priority bug for the time being.

Thank you very much for your report, however.
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: RESTRICTED ACCOUNT on May 27, 2018, 05:21:13 PM
Thank you for taking the time to do this.
I confirmed it again.
It occurs in Simutrans-Extended-64.exe but not in Simutrans-Extended.exe in my environment.
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: jamespetts on May 28, 2018, 12:20:07 PM
Quote from: Ranran on May 27, 2018, 05:21:13 PM
Thank you for taking the time to do this.
I confirmed it again.
It occurs in Simutrans-Extended-64.exe but not in Simutrans-Extended.exe in my environment.

A difference between the 64-bit and 32-bit versions? Curious. I tested with the 64-bit version compiled with Visual Studio (which I use for debugging) and was not able to reproduce it there.
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: RESTRICTED ACCOUNT on May 28, 2018, 12:50:57 PM
QuoteA difference between the 64-bit and 32-bit versions?
Yes. In my environment it always occurs with 64-bit version. However it does not occur with 32-bit version ???
My PC is windows 7 64-bit.
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: jamespetts on May 29, 2018, 09:38:08 AM
I suspect that the problem is caused by the order in which objects are checked in the per tile object list. I wonder whether it would be sensible simply to prevent players adding markers to tiles occupied by signal boxes?
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: Matthew on May 30, 2018, 12:26:12 AM
Quote from: jamespetts on May 29, 2018, 09:38:08 AM
I suspect that the problem is caused by the order in which objects are checked in the per tile object list. I wonder whether it would be sensible simply to prevent players adding markers to tiles occupied by signal boxes?

If you do this, could you also prevent players from adding signs to tiles occupied by depots, please? I did this by accident with a sign from a different player and it seemed to have odd effects.
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: ACarlotti on May 30, 2018, 03:37:11 AM
I believe I have fixed this (on my master branch on Github). The issue was that signalboxes have a negative object type (stored as an sint), which was being used as an array index to get the priority for sorting object lists. As a result, this priority was being read from unrelated data 10 bytes before the static priority array; the content of this data depended on whether it was a 64-bit or 32-bit version.

Quote from: Matthew on May 30, 2018, 12:26:12 AMI did this by accident with a sign from a different player and it seemed to have odd effects.
Could you tell us what those odd effects were? They are probably bugs that can be fixed if they can be identified.

Actually, is the bug that you can place a marker on someone else's property? If so, that should be fairly easy to fix.
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: jamespetts on May 30, 2018, 10:06:51 PM
Thank you very much for that fix - now incorporated.

And, yes, one should not be able to place a marker on another player's buildings in any event, as a marker should denote land ownership.
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: RESTRICTED ACCOUNT on May 31, 2018, 10:19:30 AM
Quote from: ACarlotti on May 30, 2018, 03:37:11 AM
I believe I have fixed this
I confirmed that it has been fixed in today's nightly build. Thanks. (´・ω・`)b
Title: Re: Bug: Displayed as "Controlled from: none" when put a marker on the signal box
Post by: ACarlotti on April 23, 2019, 01:07:53 AM
Quote from: ACarlotti on May 30, 2018, 03:37:11 AMI believe I have fixed this
I was wrong - see here (https://forum.simutrans.com/index.php/topic,18940.0.html).