-
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
separete lane connections for track/road vehicles. #1550
Conversation
don't show track node marker when acute
fixed mixed acute only.
polished overlay code: use `DrawShape` to draw everything.
Looks good! |
- [Meta] This release adds a new language, updates translations, and improves lane routing - [New] Veitnamese translation #1551 (DucAnhLam) - [Updated] Separate road and track lane routing #1550 #1546 #1545 #354 (kianzarrin) - [Updated] Translations for multiple languages #1551 #1344 (Nguyễn Tài Đức, OldEj, AduitSSH, Chamëleon, 문주원, krzychu124, shg166, John Lok Ho, Márcio Saeger, DucAnhLam, DNSE, Arne Peirs, Neoone, Fatih YILDIRIM, Zeldslayer, GiorgioHerbie, krzychu124)
Sync with |
@@ -186,12 +187,15 @@ public class LaneConnection : ISerializable { | |||
|
|||
public bool sourceStartNode; | |||
|
|||
public bool Legacy => SerializableDataExtension.Version < 2; | |||
public LaneEndTransitionGroup group = LaneEndTransitionGroup.Vehicle; |
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.
I am concerned about continuing to introduce breaking file format changes. Can this all wait until the new persistence code is merged?
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.
This PR has waited for a month already. I don't think we need to wait more. conflicts will accumulate over time.
Is it breaking anything?
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.
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.
If we don't want to merge it with master, we should consider merging a feature branch instead of stopping this PR. but it is forward/backward compatible so I don't think this is good to go to master.
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.
It's exactly the same situation as last time. If you save game with this build you won't be able to load it using current master
or WS stable
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.
I think it doesn't matter because the change in any of serializable configuration classes will make the savegame incompatible with previous version of deserializer (current master
or any workshop version)
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.
You sure about that? I encountered the problem specifically in relation to adding a new type, which is still a pretty drastic limitation when doing work of any significance, since the whole system is type-based. #1559 explains it as an issue with strongly typed serialization.
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.
ok, did not throw exception or anything, loaded something, looks good. Ignore previous comment
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.
loaded something
it is both forward/backward compatible.
if you make different lane connections on mixed/car track lanes -> save -> load with earlier version of TMPE, then car/track lane connections will merge.
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.
yeah, noticed that, looks ok.
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
fixes #354
Bonus:
TMPE.zip
pictures are in the comments.
Tests:
target lane connection is highlighted. shift clicking will put in car mode.
mixed connections tests: connect car and track differently on a mixed car+tram lane and:
backward compatibility test:
TODO: