RimWorld

RimWorld

Better Stacktraces
31 Comments
AwesomeShite 11 Aug @ 5:13am 
w
PandorasActor 10 Aug @ 5:00pm 
GOD MOD
The Menacing Urethra 10 Aug @ 11:18am 
GIVE ME YOUR SEED

10/10
Andy(bubbles) 10 Aug @ 8:58am 
HOLY SHIT
VitaKaninen 10 Aug @ 8:45am 
This mod is AMAZING! Such a timesaver!

Thanks so much for making it!
stephenkohnle53 10 Aug @ 5:06am 
If this is as helpful as it looks like it will be, then I fucking love you.
Meme Goddess 10 Aug @ 2:00am 
Oooo, what, yes! :O I didn't know I needed this
cramer 10 Aug @ 1:04am 
what is this? a godsend?
FlyOnTheWall 9 Aug @ 8:51am 
delicious!
Aleksey  [author] 8 Aug @ 4:40pm 
I guess it depends on how they're patching those methods. My stacktrace replaces the ExtractStackTrace() method. If other Harmony patches patch the same method mine does, they will also run, but it depends on which order they're run in. My patches have Priority.First in them, but if they do too, the order will vary. I'd think it should be fine. Harmony combines the patches for a method and runs them once, so other patches won't be overwritten or anything, they'll still run. So, in theory, they should be compatible.
Dweebus Rex 8 Aug @ 3:56pm 
Would this cause issues with other things that extend stack traces or otherwise improve error log messages? I.e XMLExtensions and such.
yum yum yum yum yum yum yum
Aleksey  [author] 7 Aug @ 3:59pm 
Yeah, if you have no errors, then this does nothing and you're good. :) The point is to help you fix those errors, so it'll be slow until they're all gone or minimal.
tide{S}haper industries 7 Aug @ 3:44pm 
Errors/stacktraces ALWAYS show up high in PerfAnalyzer because they are just... well... slow. So if a mod hooks anywhere into the basegame or harmony logging, their patches will likely be up there by default as well. Not that this actually matters though, because if someone gets error-spam, their performance is the least of their concern anyways.

If some patches would show up without errors happening, now THAT would be sort of a concern - but I can't say I saw the mod showing up even once high enough in my setups to make me aware of it...
Aleksey  [author] 7 Aug @ 3:38pm 
New in this update is XML error detection. If there's XML in the error (as long as it's valid), this mod will catch it tell you the potential mod sources.
AphEX 7 Aug @ 8:11am 
Ah mate having this early in the update would've saved me an entire day of debugging figuring which of my mods were breaking my game
frus-m 7 Aug @ 1:09am 
COOOL
Aleksey  [author] 6 Aug @ 9:36am 
I'm working on a way for it to catch XML errors as well.

@archidictus No worries!

@JunoCat運富 Thanks for testing that. I'll take a look in the performance. It would depend on how many times the Postfix gets called, which is any time a stacktrace would be generated for the log. There might be no way around that, but I will look into it.
archidictus 6 Aug @ 8:54am 
A fantastic idea. Thank you for making this.
Tab13 6 Aug @ 8:51am 
Maybe I can finally see what's making buttons dissappear when i use drafted pawns with assault rifles
JunoCat運富 6 Aug @ 6:38am 
@Aleksey
Okay~ Looks like Better Stacktraces and Visual Exceptions work well without any issue. Altho your mod in dubs analyzer sometimes has high ms by BetterStacktrace.TestPatch:PostFix, but i don't really know why it happens (errors by other mods might be the cause)
https://prnt.sc/rCnafX2GO8Ri
Aleksey  [author] 5 Aug @ 11:22am 
@JunoCat運富 Да, немного. Я изучаю русский язык, потому что я русский, но живу в США. Так, английский мой родной язык, хотя русский был первый язык.

@hog_jocky Yes. It doesn't save or load any data.
hog_jockey 5 Aug @ 10:53am 
Is this safe to add to an existing save?
JunoCat運富 5 Aug @ 9:12am 
@Aleksey
Do you speak russian?
Aleksey  [author] 5 Aug @ 7:58am 
It should. This patches the method that gets the stacktrace string. Visual Exceptions probably patches a different method, but seeing how it's a Postfix, it should run both, if Visual Exceptions does patch the same method. It would likely depend on load order.

Did you try it? Did you run into any issues? I can test it later today to see if anything is wrong too.
VitaKaninen 4 Aug @ 12:17pm 
Maybe RimPy will be updated someday.
Aleksey  [author] 4 Aug @ 12:16pm 
Nice! I love RimSort, but boy does it have its problems.
VitaKaninen 4 Aug @ 12:15pm 
Actually, I restarted Rimsort, and it is working properly now.

All good now!
Aleksey  [author] 4 Aug @ 12:04pm 
No worries! It should have it placed before RimWorld and after the new Load Bar mod. Can you check the XML you have and see if it has <loadBefore> and <loadAfter> nodes?
VitaKaninen 4 Aug @ 9:17am 
Thanks so much! Could you add a line in the about.xml to have it loaded in the correct place automatically? When I use RimSort, it just puts it alphabetically.