Craxy / ToggleTrafficLights

Mod for Cities:Skylines. Tool to remove or add traffic lights at intersections.
Other
33 stars 10 forks source link

Data saved by mod might be an issue while temporary playing without the mod #1

Closed Craxy closed 7 years ago

Craxy commented 9 years ago

This mod stores the existence of traffic lights while saving and reads and restores their states while loading. When playing without the mod the traffic lights get reset to their default statuses. But on save the stored data by this mode will again be saved. If this savegame is now loaded with the mod again it restores the stored traffic light states. But their nodes might have change during the gameplay without the mod, so it might change some unexpected nodes. so: "game with mod -> save -> load without mod -> save -> load with mod" might corrupt NetNodes

Idea: hashing NetNodes and/or other values so it can be detected if there was a change without the mod active and therefore a gaming session without the mod. In this case throw away all previous stored traffic light states since they might not match the right nodes.

Craxy commented 7 years ago

Traffic Lights are now (33c2b86) stored by C:S, not TTL any more