Closed AllegedlyLuca closed 5 years ago
I did some testing and found a rather unique result. Please note that I am using the files from PR189 in the entirety of this testing.
Using the file provided in the referenced pull request, I would get this error. I tested the workshop version and it worked fine with no error at all, which I found strange. The serialisation code hasn't been touched, so why is this version erroring while the workshop version isn't?
I then tried altering the file version which you'd see in the Properties window, and this did nothing. My save still did not load correctly. Another idea came in to mind, which goes like this.
%programfiles(x86)%\Steam\steamapps\workshop\content\255710\583429740
with the PR189 files.%localappdata%\Colossal Order\Cities_Skylines\Addons\Mods
to ensure no conflicts.Much to my great surprise, my save then loaded correctly and all of my lane connections, timed lights, crossing restrictions, priority signs, etc., were working as they were.
The only thing which has changed is the file location, right?
Maybe I was mis-remembering when I said this issue occurred with workshop 1.10.8.
moved
While testing the fix proposed in pull request #189 I found that mod data was not persisting between game loads. After saving and quitting, then reloading the game, I found that I had to spend an hour remaking all of my lane connections, restrictions, speed limit changes, timed traffic lights, etc.
I'm not sure what the root cause is, but I also don't think it's the proposed pull either. When I was using workshop 1.10.8, this problem occurred (though I did not check for a stacktrace at that time).
Three days ago I was using TMPE 1.10.3, as a test to see if it fixes the PT bug which #189 appears to fix. When I switched to that version, there was a bug with data resetting and me having to redo all of the above. This happened again when I switched to 1.10.7, also as a test, and again when I switched back to workshop 1.10.8.
I inspected TMPE.log (
%programfiles(x86)%/Steam/steamapps/common/Cities_Skylines/TMPE.log
) and found a stacktrace (using the .dll's provided in #189).To me, this is suggesting that my mod data may be corrupt, but I'm not sure. I will provide my save file if necessary to help find a solution to this.
Since the stacktrace mentions it, I'll link in the SerializableDataExtension file.
https://github.com/VictorPhilipp/Cities-Skylines-Traffic-Manager-President-Edition/blob/8e17bfde3bddb8e6c497d58ffc1bd9e6d069f89e/TLM/TLM/State/SerializableDataExtension.cs
As near as I can tell, the specific lines which are referenced are 40, 82 (and the immediately following catch statement), 121, 125, and 131. I believe it gets to at least line 131, as the stacktrace specifically mentions
BinaryFormatter.Deserialize
.My best guess for the cause of this is a corrupt save. That said, I'd still like to report it here and find out whether it is my save that is corrupt.