Fix a problem
Fix a problem
Section titled “Fix a problem”Do not begin debugging with “I think the API is broken.” Begin with what you can actually observe.
FIXUse the Troubleshooter
Pick the symptom and get the shortest useful route.
LOGAnalyze Player.logExtract versions, group signatures and jump into relevant docs locally.
CSC# compile errorsStart from the first `CSxxxx` instead of debugging runtime code that never compiled.
NULLNullReferenceExceptionInvestigate lifecycle/object assumptions instead of adding random null checks.
LOOPStackOverflow / recursionRecognize a repeated call cycle and recursive initialization trap.
INFOCommon log noiseDo not mistake network/TLS/library lines for the root cause without context.
A useful debugging order
Section titled “A useful debugging order”- Prove whether the mod loaded.
- Find the first concrete compile/runtime signal.
- Follow the narrowest relevant guide.
- Reduce the test to one mechanic and re-run with a fresh log.
- Only then decide whether the problem is NML, WorldBox, PoliticalWorldAPI, another mod, or your own code.