-
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
quick fix for lane connector #703
Comments
I assume existing I think these two, defintely should be part of Remember also that
The other two examples you posted are not "straight on" from the perspective of the main road: Maybe those could be |
The shift+S hotkey will be repurposed to be quick fix. Also we don't need a 4-state stay in lane state-machines for one way roads. |
@aubergine10 we put comments at the same time. I prefer to use the same hotkey and not introduced a new one. the state machine would be variable depending on the connection. |
@aubergine10 The other two examples you posted are not "straight on" from the perspective of the main road so ctrl+s is no longer straight on but rather quick setup. |
ok |
It gets confused when the road is connected from All of these scenarios is handled with one inclusive formula. EDIT: I also modified stay in lane a bit. when removing lane connections, the node circles no longer disappear. Also one-way roads have only two states. |
OK this is done. but it depends on #701 |
fixed a couple of issues with stay in lane.
In this issue I do not intend to handle tracks. That should be handled as part of #705 I want to limit scope. |
The second phase of this issue can connect the lanes from the other side of the T junction as well. Also support for 4 way junctions. This way we can have a 4-state quick-setup state machine. StayInLane would be special case of Quick-setup where the connecting road has 0 lanes. |
Aha, nice to see TMPE team also want to implement this function. actually, I have implement this function for CSUR road. https://github.com/citiesskylines-csur/CSURToolBox/blob/master/UI/StayInLaneUI.cs All outgoing lane will connect to nearest incoming lane, and All incoming lane will connect to nearest outgoing lane. This is a quick way for Y juction in CSUR road. Nice to see if more complex cases can by handle by TMPE tools. |
fixes #703 - stay in lane on junctions (lanes do not crisscross). - When lane arithmetic does not match lanes connections are distributed evenly. the remainder goes to inner/other/center lanes depending on circumstances. - guide message is shown when nothing happens. - changed shortcut key to CTRL+S (which conflicts with mod tools). - I fixed a problem with stay in lane when stay in lane : when stayInLaneMode == None selected node markers disappeared. - I added simple CanConnect() Condition for tracks which mostly solves #705. Asymmetrical tracks and mixed car/tram roads are still unsupported. fixes #617 - stay in lane does not connect if there is only one lane: #617
fixes #703 - stay in lane on junctions (lanes do not crisscross). - When lane arithmetic does not match lanes connections are distributed evenly. the remainder goes to inner/other/center lanes depending on circumstances. - guide message is shown when nothing happens. - changed shortcut key to CTRL+S (which conflicts with mod tools). - I fixed a problem with stay in lane when stay in lane : when stayInLaneMode == None selected node markers disappeared. - I added simple CanConnect() Condition for tracks which mostly solves #705. Asymmetrical tracks and mixed car/tram roads are still unsupported. fixes #617 - stay in lane does not connect if there is only one lane: #617
pressing CTRL+S activates stay in lane feature. we can expand it to support the following situations:
Sometimes people use lane connector to handle split road like this:
![Screenshot (497)](https://user-images.githubusercontent.com/26344691/74601058-30b03600-50a2-11ea-9220-17e37826e496.png)
![Screenshot (504)](https://user-images.githubusercontent.com/26344691/74601065-4b82aa80-50a2-11ea-9558-616f758ffa52.png)
But i think that is unnecessary because changing lane arrows would be sufficient(already possible by priority tool -> CTRL+ckick):
Cars are not going to change lanes if
switch lane while going straight in junctions
is turned off.maybe its worth supporting this too because customer is always right?
We need to limit the scope of this review so that it does not get into an all or nothing scenario. The following junction does not support quick fix:
![Screenshot (503)](https://user-images.githubusercontent.com/26344691/74601114-dd8ab300-50a2-11ea-9689-3caa0d396799.png)
I cannot think of other junctions right now. but its worth discussing them for the second phase of this issue.
The text was updated successfully, but these errors were encountered: