The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: ceeac on October 23, 2022, 08:22:55 AM

Title: Building and removing crossing results in different maintenance
Post by: ceeac on October 23, 2022, 08:22:55 AM
Steps to reproduce:

Title: Re: Building and removing crossing results in different maintenance
Post by: jamespetts on November 04, 2022, 11:48:10 PM
I am having some trouble reproducing this, I am afraid. Can you confirm the precise order in which you add and remove the road and railway?
Title: Re: Building and removing crossing results in different maintenance
Post by: ceeac on November 05, 2022, 12:03:56 PM
For me, the order does not matter, and I can also reproduce the bug with both the way removal tool and the generic remover tool. Maybe the monthly maintenance of a single road tile is too low depending on bits_per_month and/or meters_per_tile? For me, a single tile of MacAdam road has a monthly maintenance of about 4 credit-cents (base_meters_per_tile = 1000 and base_bits_per_month = 18 in simuconf.tab). This is also the amount of monthly maintenance that is left after removing both rail and road which leads me to believe that when a single way of a crossing is removed the maintenance costs for both ways are reimbursed (which should not happen).
Title: Re: Building and removing crossing results in different maintenance
Post by: jamespetts on November 05, 2022, 12:21:45 PM
Quote from: ceeac on November 05, 2022, 12:03:56 PMFor me, the order does not matter, and I can also reproduce the bug with both the way removal tool and the generic remover tool. Maybe the monthly maintenance of a single road tile is too low depending on bits_per_month and/or meters_per_tile? For me, a single tile of MacAdam road has a monthly maintenance of about 4 credit-cents (base_meters_per_tile = 1000 and base_bits_per_month = 18 in simuconf.tab). This is also the amount of monthly maintenance that is left after removing both rail and road which leads me to believe that when a single way of a crossing is removed the maintenance costs for both ways are reimbursed (which should not happen).
Can I trouble you to upload a saved game where you can reproduce this issue on the basis of a precisely described sequence of events?
Title: Re: Building and removing crossing results in different maintenance
Post by: ceeac on November 05, 2022, 02:47:27 PM
Title: Re: Building and removing crossing results in different maintenance
Post by: jamespetts on November 05, 2022, 03:39:53 PM
Thank you for that: that is most helpful. I believe that I have now fixed this. I should be grateful if you could re-test to confirm.
Title: Re: Building and removing crossing results in different maintenance
Post by: ceeac on November 05, 2022, 10:37:17 PM
I can confirm that the bug is no longer present in the master branch or in the ex-15 branch.