Better logging for broken assets
Describe the bug
Exception in log file (line 38399):
The 'Real Time' mod could not load Rush Hour events, error message: System.IO.InvalidDataException: Unknown type to deserialize
at ColossalFramework.Packaging.AssetSerializer.DeserializeHeader (System.Type& type, ColossalFramework.Packaging.PackageReader reader) [0x00000] in <filename unknown>:0
at ColossalFramework.Packaging.PackageDeserializer.Deserialize (ColossalFramework.Packaging.Package package, ColossalFramework.Packaging.PackageReader reader) [0x00000] in <filename unknown>:0
at ColossalFramework.Packaging.Package.DeserializeAsset (System.IO.Stream stream) [0x00000] in <filename unknown>:0
at ColossalFramework.Packaging.Package.Instantiate (ColossalFramework.Packaging.Asset info) [0x00000] in <filename unknown>:0
at ColossalFramework.Packaging.Package+Asset.Instantiate () [0x00000] in <filename unknown>:0
at ColossalFramework.Packaging.Package+Asset.Instantiate[CustomAssetMetaData] () [0x00000] in <filename unknown>:0
at RealTime.Events.Storage.CityEventsLoader+<>c.<LoadRushHourEvents>b__12_1 (ColossalFramework.Packaging.Asset a) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[ColossalFramework.Packaging.Package+Asset,CustomAssetMetaData].MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[CustomAssetMetaData].MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[CustomAssetMetaData,System.String].MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateDistinctIterator>c__Iterator3`1[System.String].MoveNext () [0x00000] in <filename unknown>:0
at RealTime.Events.Storage.CityEventsLoader.LoadRushHourEvents (System.Collections.Generic.HashSet`1 loadedEvents) [0x00000] in <filename unknown>:0
Additional mods
Asterisk indicates enabled mod:
===================================================================================
[ModFreshener 1.0] SUBSCRIBED MODS LIST
===================================================================================
(Bundled) Hard Mode
(Bundled) Unlimited Money
* (Bundled) Unlimited Oil And Ore
* (Bundled) Unlimited Soil
* (Bundled) Unlock All
* (Local) ModFreshener 1.0
* (Local) Network Skins
(Local) TM:PE:BB
* (Local) TM:PE 10.18
* 1721492498 Cargo Hold Fix
* 1299305365 Fallout 4 Soundtrack Music Pack
* 476141470 Craft_Inc's Synthwave & 80s-Retro-Music pack
* 1289991722 Music pack: Vault Archives Music Pack
* 422934383 CSL Music Mod
* 412146081 PostProcessFX
* 611254368 Environment Changer
* 812713438 Dynamic Resolution
* 1209581656 Relight
* 650805785 First Person Camera
* 1562650024 Rebalanced Industries
* 1577882296 Resize It!
* 1591417160 Hide It!
* 1612287735 Purchase It!
1627986403 Bulldoze It!
* 1643902284 Watch It!
* 1656549865 Rebuild It!
* 1661072176 Empty It!
1665106193 Skip Intro
1658679290 Forest Brush
* 1680642819 Ultimate Level Of Detail
* 591137516 Redcomet's Municipal Sound Pack
* 618536610 AST: KRA Sound Pack
450877484 ModTools
453956891 Mesh Info 1.3.3
498386331 CrossTheLine
* 578320825 More Diverse Crowd
* 533958715 Real London Sound Pack
* 627096876 Improved Wind Simulation
* 625608461 Adaptive Prop Visibility Distance
634913093 Elevated Stops Enabler
* 672248733 Ultimate Eyecandy 1.5.2
714056356 Transport Line Rendering Fix
* 762520291 ShadowStrengthAdjuster
* 793176674 Sharp Textures
812107110 Less Steam
* 818641631 Ambient Sounds Tuner
* 833784103 British Rail Class 43 Effect Definitions Pack
* 815103125 Extra Vehicle Effects
* 898480258 Camera Positions Utility
* 870291141 Random Train Trailers 2.1.0
* 973512634 Sort Mod Settings
959894658 Custom Light Effects
* 954067599 PropRotating Params
* 940299505 AnimUV Params
* 934994075 Service Vehicle Selector 2 (r4.0.1)
* 928128676 Improved Public Transport 2 [r4.2.2]
* 1181352643 District Service Limit
* 569879360 WG Realistic Solar v1.3
* 1192250578 Emergency Lights Manager
1349895184 Tree LOD Fix
* 1369729955 Customize It!
* 1388613752 Tree Movement Control
1412844620 Realistic Walking Speed
1442713872 Detail
1536223783 Hide Selectors
1540147921 Grid be Gone
* 1546357276 Industries Vehicle Converter
* 1548831935 Advanced Vehicle Options 1.8.5
* 1552053911 Trailer Variation Loader
* 1556715327 Show It!
* 1567569285 Achieve It!
* 689937287 Surface Painter
* 502750307 Extra Landscaping Tools
* 1619685021 Move It 2.4.0
* 1568910950 ZONE Radio
* 1420955187 Real Time
* 1348627392 Tides
* 949504539 SingleTrainTrackAI
* 924884948 Plop The Growables
883332136 Any Road Outside Connections
* 793346248 Decal Hover Area
* 791221322 Prop Precision 1.0.1
* 787611845 Prop Snapping
* 780720853 Vehicle Effects 1.8.1a
* 667342976 Loading Screen Mod
654707599 WG Citizen Lifecycle Rebalance v2.6
* 651322972 Fine Road Tool 1.3.7
* 593588108 Prop & Tree Anarchy
* 586012417 Ploppable RICO
* 538019888 Spawn/Unspawn Positions Swapper
* 530871278 Daylight Classic
* 515489008 Extra Train Station Tracks
* 497033453 UnlimitedOutsideConnections
* 465318661 ToggleableWhiteness
* 426163185 WG Realistic Population v8.4.0
* 1435741602 Snooper
* 1433003062 Rotors FlipXZ
* 1394468624 Advanced Stop Selection
1393820309 Ticket Price Customizer
* 1393452031 Parkify r1.0.3
* 1372431101 Painter
* 1274199764 Network Tiling
* 928103306 Ship Converter
* 922939393 Transparency LOD Fix + Cloud Assets Enabler
* 903347963 Transparent Selectors
* 899063611 UKSoundPack
* 877748783 Topographic Lines Toggle
* 837734529 Find It! 1.5.4
* 820157360 Spawn Points Fix
* 802066100 Fine Road Anarchy 1.3.5
* 795514116 Train Converter
* 775021554 Theme Mixer
* 767233815 Decal Prop Fix
* 724382534 One-Way Train Tracks
* 707497031 Tram Station Track
* 694512541 Prop Line Tool
* 650436109 Quay Anarchy
* 608517757 Sub-Buildings Tabs
* 530771650 Prefab Hook
* 512314255 More Network Stuff
* 510677558 The Metropolitan Sound Pack
* 465127441 Airport Roads 1.3.7
* 1530376523 Railway Replacer
812125426 Network Extensions 2
816260433 Metro Overhaul
* 881291183 Ploppable Asphalt
* 1386697922 Garbage Bin Controller
===================================================================================
Game log file output_log.txt
Screenshots (optional) n/a
This issue isn't caused by Real Time or by any other mod. It's some broken asset that generates an exception on requesting its info.
These messages confirm an issue with an asset:
Unexpected type '' detected. No resolver handled this type. Skipping -1 bytes.
Is it possible for RT to determine which asset is causing problems (eg. if RT is requesting info, could it detect the exception and log the asset name / path / workshop id)? It would help track down broken assets.
That might be possible. I will take a look if I can implement this. It will be a low priority task tough.