Cities: Skylines

Cities: Skylines

149 ratings
XCatcher
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
11.264 KB
Mar 26, 2023 @ 10:47am
Jul 11, 2023 @ 11:10pm
11 Change Notes ( view )

Subscribe to download
XCatcher

In 1 collection by Nyoko
General Troubleshooting
5 items
Description
XCatcher: Exception Catcher
Exports Null Reference Exceptions to a separate file as they happen.


[www.paypal.com]


[discord.gg]

  • Exception Monitoring: When the game is launched, XCatcher actively monitors for exceptions, specifically NullReferenceExceptions.
  • Error Reporting: When a NullReferenceException is detected, XCatcher captures the error message and stack trace associated with the exception.
  • HTML Logging: XCatcher logs the error message, stack trace, and additional details to an HTML file located within the XCatcher/Logs directory. The HTML file provides comprehensive information about the exception, including the date and time it occurred.
  • Exception Trigger: XCatcher includes an experimental feature to trigger a NullReferenceException manually. This feature helps test the mod's functionality and allows users to simulate exceptions for debugging purposes.






Consider supporting me!
[ko-fi.com]

Source code:
[github.com]

Get support on Discord
[discord.gg]
Popular Discussions View All (1)
0
2
Mar 27, 2023 @ 10:37am
PINNED: Common Mods Known to Cause NullReference Exceptions
Nyoko
51 Comments
Lord Mar 25 @ 9:09pm 
@patioticparadox I approve and endorse the improved/edited version of the protip. :)
patrioticparadox Mar 25 @ 3:57pm 
This mod gets the log location wrong on Linux because it uses backslash "\" instead of forward slash "/" for the path. A Linux file system sees it as a long file name rather than a path.

Protip for all Windows developers: ALWAYS use forward slash "/". Never use back slash.

The result is that Windows will treat a forward slash exactly the same and it'll also work on Linux, even when the application isn't Linux native.
alegomin Jan 23 @ 6:34am 
Could you update it to catch these ones too? They're so annoying popping every sec without no info
Cannot cast from source type to destination type. [System.InvalidCastException]

Details:
No details

Wonderful mod by the way :)
Nyoko  [author] Nov 22, 2024 @ 10:53am 
If you have a null reference it's better to hit a support center with your logs if possible.
vic.foras Nov 22, 2024 @ 9:07am 
This works with "Array Index is out of range"?
Lord Aug 24, 2024 @ 4:44pm 
It works fine on Linux, it just puts the log file in an incorrect path due to the slashes, which clutters up the directory structure with junk.
Nyoko  [author] Aug 24, 2024 @ 3:39pm 
This mod wasn't made with Linux in mind. If you have a null reference it's better to hit a support center with your logs in Linux if possible.
Lord Aug 24, 2024 @ 9:14am 
This mod gets the log location wrong on Linux and creates a folder in the local folder ("LocalAppData" on Windows I guess) named "Colossal Order\Cities_Skylines\Addons\Mods\XCatcher\Logs". I think because it uses backslash \ instead of forward slash / for the path so a Linux file system sees it as a long file name rather than a path.

PROTIP for all Windows developers: ALWAYS use forward slash ("/") never use back slash.

Windows will treat a forward slash just the same and it'll work on Linux, even when the application isn't Linux native.
stick Jul 23, 2024 @ 12:06pm 
this doesnt work the error messages still pop up
acquadiroccia Jan 9, 2024 @ 9:59am 
Date and Time: 1/9/2024 9:12:41 AM

Error Message: NullReferenceException caught: 'WoodBridgeback' failed to load. System.NullReferenceException: Object reference not set to an instance of an object at LoadPanel.Refresh () [0x00000] in :0 [Serialization]

Stack Trace:
Possible source of Exception:

any idea?