News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

City roads are "bridleway" with timeline off

Started by Vladki, August 21, 2016, 09:45:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vladki

I have noticed this on the testing network server (server.exp.simutrans.com). The game was started with timeline on, but later switched to timeline off. Now as the city grows, it rebuilds public roads to bridleways, thus disrupting road traffic (too low weight limit). I suggest that city roads either obey the timeline even if it is off, or that the most modern cityroad is used instead of oldest. A game with timeline off should be IMHO the "easy" game.

jamespetts

Thank you for that. I have now changed the method for selecting city and inter-city roads in the case where the timeline is disabled to choose more suitable roads.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

Thanks, seems fixed, server game now builds hot-rolled asphalt road 280 mm by default (no-timeline, game year 2032)

Vladki

I have restarted the server with freshly compiled executable and pakset, and foud that some city roads got rebuilt again to bridleway. I have repaired a piece of road at trnava - new cemetery, but left a piece at osterskar - builders yard as evidence

jamespetts

You write that "some" city roads were thus built - can you elaborate as to which ones? Is this on new map generation, or the expansion of roads?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

If you look at the server game you'll find about 3 tiles of bridleway near the builders yard at Osterskar. The road was there before - I think that the houses nearby have grown (upgraded) and rebuilt the road. The same happened at the cemetery - 2-3 tiles of existing (intercity) road on both sides of rail crossing have been changed to bridleway as the city grew closer.

I have tried to grow the Osterskar city as public player and the roads have been upgraded to asphalt.

jamespetts

This is very odd. Are you able to define circumstances in which a specific tile of road will reliably downgrade to a bridelway?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

#7
It happened again on the test servergame - see the railway station at Selpice - there is a long continuous stretch of bridleway, destroying bus lines.

It looks like most of the bridleways - anywhere on the map, are in places where city buildings are only one one side of the road, while on the other is something else: factory (builders yard at Osterskar), station and fields at Selpice, open country (Bohdanovce), runway (Kopanka), rail track (Trnava - near railway works ZOS), church at Modranka

jamespetts

Hmm - is there a way in which I can reliably reproduce a specific piece of road being downgraded to a bridleway so that I can capture the actual mechanism by which that specific tile is downgraded in the debugger?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

I dont know. It always happened while the server was running unattended. And btw should not the server stop if nobody is connected?

I would try to fix those roads on local copy and turn fast fwd on.

jamespetts

The server will stop if nobody is connected if the relevant setting is set, otherwise not. If this setting is set and the server does not stop, this would be a separate bug; if you find that this is so, I should be grateful if you could post a fresh bug report.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

jamespetts

I am having considerable difficulty reproducing the bridleway issue. I can see bridleways when I load the server, but they do not seem to generate when I run the game. I am afraid that I will need some more detailed steps about exactly how to reproduce this if I am to track this down (such as a saved game in which it is known that a specific tile of road will be downgraded in a specific month in the future after being loaded).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

I have tried running the game from server with fast forward, but no bridleways appeared. I have fixed most of them on server by growing the cities as public player. However one city - bohdanovce does not grow at all. It may be related bug to bridleways, as there are also some of them. I managed to get the city grow again by upgrading all roads in the city by hand. Server game is left in the non-growing state.

Vladki

Hmm, it happened again, while nobody watched... And again it is in places where there is a station (trnava cargo), railroad (ZOS depot) or runway (kopanka) next to the road.

jamespetts

Very odd. It will be extraordinarily difficult to fix this issue unless there is a way of reproducing it reliably at a certain place and time.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

After almost a week of running on the server, bridleways again appeared on random places. With the most strange one being inside the tunnel. All of them were quite heavily used, which makes me think if they were not worn out as the owner is long bankrupted - but freeplay is on. But all the tiles in tunnel should have the same wear and indeed they have 97% condition, both asphalt and bridleways...

jamespetts

Quote from: Vladki on December 21, 2016, 07:39:23 PM
After almost a week of running on the server, bridleways again appeared on random places. With the most strange one being inside the tunnel. All of them were quite heavily used, which makes me think if they were not worn out as the owner is long bankrupted - but freeplay is on. But all the tiles in tunnel should have the same wear and indeed they have 97% condition, both asphalt and bridleways...

It will be fantastically difficult to fix this unless there is a method of reliably reproducing this (i.e., a specific tile that is known to downgrade incorrectly at a specific time in a specific saved game).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

I know, this is like ghost coming and changing the roads... Just noticed that newly built roads say Built: January,0, some older roads 1970. Nothing in between

jamespetts

Very odd. I am also away from my usual computer at the moment, so cannot easily work on the code: I will have to look into this when I get back from my Christmas break in January. Until then, I am working on rescaling/improving the road vehicles.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

I have a susipcion that the server.exp.simutrans.com does not pause while players are disconnected....

The bridleway conversion seems to happen in places where city is growing along an existing road, or more precisely when a road is being taken over by city. And most often when such road should be upgraded to more modern, and/or has been used - i.e. worn out (not completely, but not 100% new).

I know this his hard to track, just putting down more info for future bug hunting...

jamespetts

Is this server set to pause when disconnected? If it is, but it fails to do so, that is a separate bug in its own right which will need to be investigated.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

pause_server_no_clients was commented in simuconf.tab. Well, let's see after next update/crash/restart.

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Ves

I checked the swedish server today and that was way out in the future!

Rollmaterial

Here the roads at city edges wear out completely without upgrading (i. e. "upgrade" to mothballed road).

jamespetts

Quote from: Rollmaterial on December 28, 2016, 11:32:14 PM
Here the roads at city edges wear out completely without upgrading (i. e. "upgrade" to mothballed road).

Who is the owner of these roads?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Rollmaterial


jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.


jamespetts

This does not seem to be correct behaviour, in that case. If you can give steps reliably to reproduce the occurrence of this phenomenon, I will look into trying to fix it when I get back home in around the second week of January.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Rollmaterial

Actually it applies only to city roads that are "unowned or privately owned" and outside the city limits (i. e. in "open countryside").

Vladki

Quote from: Rollmaterial on December 28, 2016, 11:32:14 PM
Here the roads at city edges wear out completely without upgrading (i. e. "upgrade" to mothballed road).

I had also one such example. Perhaps the road is not renewed because the owner is very deep in debt (milions) although freeplay is on. So no bankruptcy.

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

They are public right of way, but It is hard to guess what they were before... It seems that some were public right of way and some not.

jamespetts

The code should work as follows: if the way is worn out and in need of renewing, renew it unless:

(1) it is owned by a player with insufficient money to upgrade it;
(2) it has been marked by a player not to be upgraded; and
(3) it is owned by nobody, is not in a town and is not a public right of way.

There should not be circumstances in which city roads are not in the towns of which they are roads. Are you getting circumstances occurring where roads are failing to upgrade, and are becoming degraded, where the above do not apply?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

1) - As said before - all players are bankrupt, but freeplay is enabled
2) - I don't know how to do (or check) that
3) - nobody - yes, not in town - probably yes, public right of way - sometimes yes sometimes not

On the server.exp.... there is a stretch of bridleway at 24,106 - 24,97 that is unowned, public right of way, has a sidewalk but is out of city limits. Some tiles of it are in quite bad condition (18%) some still good (85%). I think it was built as the city grew, and the growth was blocked by railway. Also other places where it happened were on the edge of the city, and on busy roads. So it may be that the piece of road was taken by the city (unowned), but the city limits did not extend that far. And a time to upgrade has come. Probably the public right of way makes a difference whether the road becomes mothballed (not public) or bridleway (public)

jamespetts

Hmm - I will have to look into this in more detail when I get home.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

Quote from: Ves on December 28, 2016, 10:38:11 PM
I checked the swedish server today and that was way out in the future!

It seems that the new bridgwater brunel server is also running int he background - perhaps the default is NOT to pause.

jamespetts

Quote from: Vladki on December 30, 2016, 11:14:41 PM
It seems that the new bridgwater brunel server is also running int he background - perhaps the default is NOT to pause.

I think that that is explicitly set to pause - I shall have to look into this.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

#39
I hope I have found a way to replicate the bridleway issue. On the server game I have prepared a scene - look at town Bohdanovce - there is a rail track alongside a road with some traffic. On the other side of the road, there is the town. It cannot grow to the other side of the road, as it is blocked by the track. As houses are built near the road - the road is taken over by nobody (unowned) - turned to public right of way, but is still outside of the city. And that is the piece of road that I expect to turn to bridleway, when it should be renewed.

Oh **** the server crashed... I have to recreate that again

Edit: server up again, set to run even wehn everybody is disconnected, let's see what happens with the roads

Vladki

So, I have one more appearance of the bridleway. It is on the server.exp.simutrans.com - (80,72) - near brewery Trnavan. That tile was owned by public player, public right of way, and is now within the town (just on the border), but may have not been when it turned to bridleway. It has the sidewalks, and is unowned now. The road tile next to it (in direction out of town) is in 99% condition, which means it was renewed recently, as there is quite some traffic on it.

The experiment setup at Bohdanovce has no result so far, but I expect the tile (128,99) to turn to bridleway or mothballed road soon, as it is in 25% condition.

jamespetts

Thank you for this. I have just pushed a possible fix for this, but have not had the chance to test it yet. Would you be able to test this and let me know whether the problem recurs? Thank you very much for all the information on this.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

Server has been restarted, let's run it a few days and see what happens.

Vladki

#43
After leaving the server unattended for quite a while, no bridleways appeared, but one tile of road was mothballed.

Again it was on the edge (outside) of the city - unowned (with sidewalk), but this time it was NOT public right of way. Again it was a busy road, and neighboring tiles were most probably renewed. The road used to be owned by human player, but as the city grew near it was taken over by the city (unowned), but was still outside of the city borders and without public right of way.

jamespetts

This is intended behaviour - if the road is unowned and not a public right of way, it will not be maintained for free. A player who wishes to use it will need to maintain it.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

Quote from: jamespetts on January 22, 2017, 11:23:20 PM
This is intended behaviour - if the road is unowned and not a public right of way, it will not be maintained for free. A player who wishes to use it will need to maintain it.
But the road was originally private. It would be impossible to watch if city has taken over my roads in large network game.


Sent from my ONEPLUS A3003 using Tapatalk


jamespetts

Is the problem then that a city somehow takes over a road that ends up being outside a city border?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.


Vladki


jamespetts

That is very odd - can either of you narrow down the circumstances in which this occurs?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

The city borders are defined by city houses. Lets have a city from which you build a private road to somewhere. The city grows along the road. As it extends by building new houses it takes over your road. But it takes over not only the tile directly adjacent to the new house but also one more on both sides. The tile outwards from the city is then unowned, but outside of city limits, and not renewed when it should be.

jamespetts

Hmm - this is possibly a bug with the city borders algorithm, in that case.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Vladki

Well, this happened again on the server.exp.simutrans.com:13353
A piece of road that was "Public property" but without public right of way has been taken over by city (unowned + sidewalk), but still not within city borders. Subsequently it missed its renewal time and has been mothballed.