-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more roundabout quick setup features #863
Conversation
- parking ban - speed limit - allow/ban entering blocked roundabout. - undo (created IRecordable interace to take snapshot of the current state)
My code original code: |
The Line Break sign in front of the Text comes from missing translation as @kianzarrin told me. So we have something to translate :) |
Parking on Branches will never come back if you do following: |
images from previous commentThis is expected behavior. Before step 3 the branches had parking bans. This is the state that is restored when undoing the roundabout at step 4. |
I figured out that the Speed-Limit function works within round-abouts in the same way they do on normal roads. On normal roads with Shift-Klick the speed limit is assigned from one junction to the next. I can understand this as in real world also the speed limits at the next crossing may be different. So this behavior i was ecpexting. But on roundabouts in my opinion there should be the logic to set the speed limit for the whole roundabout street with Shift-Klick. This is the way ot is in real i think. Additionally the super function of automated lower speed limits on roundabouts do it for the whole roundabout road. To be consistend to this function it would be good to handle it in the same way for the speed-limit function. |
It's due to the way we currently do caching based on camera position - if it's cached then you close tool, then open it again, it won't invalidate the cache until camera moves a little. We will be fixing that hopefully in v11.6 where we plan to make the caching more intelligent. |
@thebugfixnet this review is already too big. I created issue #869 for speed limit tool to cover the roundabout. |
Ok, just thinking about these options... Once again we have 'enter blocked junction' used as a strange and confusing alternative to a stop or yield sign; made even more confusing as we also have priority sign features for roundabouts. This just does not sit well with me. Discussion on that topic can be found in #424 (particularly #424 (comment) under the image of a box junction). Regarding the realistic speed limits, are we jumping in too soon with that feature? Is it the correct place to implement it? I think there are some questions we should consider...
|
as I said in #424 (comment) and #424 (comment) and #871 I think we are not ready to abolish enter blocked junctions. So I think until then we need to make it configurable. I think it would be wrong to wait until we find a better solution for enter blocked junction. I do not like the "perfect or nothing" approach (unless when it comes to reducing flexibility) |
@aubergine10
Lets do it in several stages. For now I only do it for roundabout. Later we can expand this feature to other segments as well as we have discussed in #793 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good except naming/style comments.
Did not test the final version in game yet.
|
|
fixed option serialization.
Looks ok from initial testing. I still have some more testing to do. |
@aubergine10 Do you agree with the UI? EDIT and functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
^ edited comment above |
Other than the minor text details above, it LGTM. |
yeah the only difference is priority signs. and also it could setup priority signs on low priory road too by applying yield signs. on the highlighted road. So I do think it is misleading. It all can be fixed from the crowdin so let this merge with master before any conflicts come up! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Added new features to roundabout quick setup (fixes #578). They can be setup in the settings.
Once I implemented the undo feature for roundabout I decided to use it for high priority road and road selection panel as well:
1- activate roundabout rules on road selection panel.
2-change some traffic rules using other TM tools.
3- deactivate roundabout rules on road selection panel to undo the changes from step 1
4- traffic rules modified in step 2 may be gone unexpectedly.
PS1: I temporarily have activated all new features by default for your testing convenience with a TOOD comment to change default before commit.I now have applied default options so if you want to test them you need to turn them on.PS2: please discuss the
featurefuture of the undo feature in #860 so as to not to pollute review comments.