Conversation
This is a bugfix release.
Seems pointless having so many clones of changelog.
|
Looks like 11.6.5.2 is about ready. Will need to send another commit to this PR to update changelogs. If anyone has any stuff that needs going in 11.6.5.2 lmk asap. |
So we are going to release an update which will make migration from TEST to Stable impossible because of introduced breaking changes in the serializable data? |
|
Is there no way we can fix that issue? Both the global config and the mod options now have version numbers so we can potentially translate back and fourth (might require a cherrypicked update to STABLE)? Otherwise how are we going to get 11.6.5.2 out to test? |
Date will need updating nearer release
Two and 1/2 ways:
We currently use binary serialization, no way to load savegames from "the future"(without changing anything) if there was any change in the layout of data - that previous version (e.g. current Stable) has no idea how to read new/changed things so whole serialization will fail till we add migration code, which effectively means... release new version. |
|
Which aspects of the serialized data changed? Is it something that failed load will only break one tool, or does it break everything? |
Everything. Binary serialization is "all or nothing" if you don't explicitly add methods to handle changed things in advance. I think that reverting names in that class to previous model would fix the problem but still requires implementing additional handling to read data from current Error stacktrace
Info 269.5560148: Loading Data from New Load Routine! Length=8943
Error 269.6905090: Error deserializing data: System.Runtime.Serialization.SerializationException: Field "sourceLaneId" not found in class TrafficManager.Configuration+LaneConnection
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadTypeMetadata (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean hasTypeInfo) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectInstance (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean hasTypeInfo, System.Int64& objectId, System.Object& value, System.Runtime.Serialization.SerializationInfo& info) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject (BinaryElement element, System.IO.BinaryReader reader, System.Int64& objectId, System.Object& value, System.Runtime.Serialization.SerializationInfo& info) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject (System.IO.BinaryReader reader) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph (BinaryElement elem, System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in <filename unknown>:0
at TrafficManager.Lifecycle.SerializableDataExtension.DeserializeData (System.Byte[] data) [0x00000] in <filename unknown>:0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Error(System.String s)
at TrafficManager.Lifecycle.SerializableDataExtension.DeserializeData(System.Byte[] data)
at TrafficManager.Lifecycle.SerializableDataExtension.Load()
at TrafficManager.Lifecycle.SerializableDataExtension.OnLoadData()
at SerializableDataWrapper.OnLoadData()
at SimulationManager.LateUpdateData(UpdateMode mode, Single minProgress, Single maxProgress)
at SimulationManager.Managers_LateUpdateData(UpdateMode mode, Single minProgress, Single maxProgress)
at LoadingManager+<LoadSimulationData>c__IteratorB.MoveNext()
at AsyncTask.Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Info 269.7049555: at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadTypeMetadata (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean hasTypeInfo) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectInstance (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean hasTypeInfo, System.Int64& objectId, System.Object& value, System.Runtime.Serialization.SerializationInfo& info) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject (BinaryElement element, System.IO.BinaryReader reader, System.Int64& objectId, System.Object& value, System.Runtime.Serialization.SerializationInfo& info) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject (System.IO.BinaryReader reader) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph (BinaryElement elem, System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in <filename unknown>:0
at TrafficManager.Lifecycle.SerializableDataExtension.DeserializeData (System.Byte[] data) [0x00000] in <filename unknown>:0
Error 269.7069267: OnLoadData: Error while deserializing data: System.ApplicationException: An error occurred while loading
at TrafficManager.Lifecycle.SerializableDataExtension.DeserializeData (System.Byte[] data) [0x00000] in <filename unknown>:0
at TrafficManager.Lifecycle.SerializableDataExtension.Load () [0x00000] in <filename unknown>:0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Error(System.String s)
at TrafficManager.Lifecycle.SerializableDataExtension.Load()
at TrafficManager.Lifecycle.SerializableDataExtension.OnLoadData()
at SerializableDataWrapper.OnLoadData()
at SimulationManager.LateUpdateData(UpdateMode mode, Single minProgress, Single maxProgress)
at SimulationManager.Managers_LateUpdateData(UpdateMode mode, Single minProgress, Single maxProgress)
at LoadingManager+<LoadSimulationData>c__IteratorB.MoveNext()
at AsyncTask.Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread() |
|
@aubergine10 has anything left for updating here before merge? |
|
@krzychu124 Just this small PR from Kian related to the routing diagnostic tool: #1549 |
|
Also #1523 is now merged - is that going in 11.6.5.2? If so I'll update changelogs. |
|
Is Vietnamese new language in 11.6.5.2 ? - if so I should probably mention that in changelogs |
I approved the strings but they aren't in the translation files yet. Some manual work is required to add a column to export files, so i decided to not pull that stunt in the Chinese branch. |
|
diagnosis tool is debug build only. it will not be release to test. |
|
@aubergine10 merge when ready, I'll build and release to the ws TEST and at the github releases page 😉 |
|
@aubergine10 ready? ready? 😄 |
|
merged :) |
Reversible Tram AIfails if mod subscribed but disabled fix regression for reversible tram patch #1471Reversible Tram AIpatch failed #1470 (kianzarrin)Electric Carsdistrict policy Parking AI ignoresElectricCarsdistrict policy and also prevent spawning electric cars at outside connection #1543Electric Carspolicy does not work as expected with ParkingAI enabled #1527 (krzychu124)ElectricCarsdistrict policy and also prevent spawning electric cars at outside connection #1543Electric Carspolicy does not work as expected with ParkingAI enabled #1527 (krzychu124)ElectricCarsdistrict policy and also prevent spawning electric cars at outside connection #1543Electric Carspolicy does not work as expected with ParkingAI enabled #1527 (krzychu124)ElectricCarsdistrict policy and also prevent spawning electric cars at outside connection #1543Electric Carspolicy does not work as expected with ParkingAI enabled #1527 (krzychu124)ManagersFactorynot working Api hotfix #1548 (kianzarrin)vehicle restrictions aggressionmod option #1468 (kianzarrin)GetSortedLaneswith extension Minor improvements toGetSortedLanes#1522 Modernise remaining uses ofGetSortedLanes()#1521 Modernise several uses ofGetSortedLanes()batch 2 #1496 Modernise several uses ofGetSortedLanes()#1490 (aubergine18)IsStartNodewith extension ModerniseIsStartNode()#1506 (aubergine18)Microsoft.Unity.Analyzersto version1.13.0UpdateMicrosoft.Unity.Analyzerspackage to1.13#1513 (aubergine18)