Forum Mod Bakery Docs

SHAR Crash Analyzer

Please sign in to reply to this topic.

What is it?

Powered by WinDbg and a CSV of known SHAR functions, this tool will open and analyze SHAR crash dumps, and return the stack trace.

How to use it

  • Press the Browse button and locate a crash dump. By default it opens to Lucas' Mod Launcher's Crashes directory.
  • Once a crash dump has been selected, if there is no shar_functions.csv file, it will create the default one.
  • The tool will then analyze the dump.
  • Once analyzed, the results will be given in the Dump Stack Trace textbox.
  • If an address is known, it will show the name from shar_functions.csv.
    • Note that if the crash is within Lucas' Mod Launcher, it will always show Hacks.dll+Offset.
  • If an address isn't known, it will show just the address.
  • Use the known addresses in the traceback to try and narrow down the root cause of the crash.
  • If the addresses are unknown, you can use something like Ghidra to manually figure it out.

Screenshots

A screenshot of the tool after opening a crash dump
A scrolled down screenshot of the tool after opening a crash dump

Download

Download from Mod Bakery


Credits to @EnAppelsin for the initial CLI tool that inspired this GUI.

This looks very clever, good work all of you. Just out of interest how long did this take to make?
It works.
This looks very clever, good work all of you. Just out of interest how long did this take to make?

@duffhause


My bit didn't take long because I just put a UI on top of existing code. I'm not sure how long Appel's code originally took, but the Ghidra project is a culmination of about 10 months of work, mainly led by Aldelaro, but with other contributors. You can see the entire process in the #reverse-engineering channel in SHARcord.

Thanks,
Josh
There could be a tool to actually make missions. From my knowledge in programming, I suppose it would take a shitload of variables (is that used to describe "if" command?) to create the script and would be VERY tedious.
There could be a tool to actually make missions. From my knowledge in programming, I suppose it would take a shitload of variables (is that used to describe "if" command?) to create the script and would be VERY tedious.

@Yzma


You mean like a flow chart interface? Like Scratch or similar?

Thanks,
Josh
That could work. But I was imagining like a drop down selection of stage objectives, like "Add Stage", "AddCondition" buttons, etc. etc. Cuz having a tool to make missions would save a lot of time debugging the game and scripting the missions (also, would be perfect for people like me, who don't do scripting and work in art department and then make boring missions like in BS cuz they don't know how to script and/or other functionallities I think I made my point.

Updated to v2.0 and added to mod bakery.

Changelog:

  • Massively improved loading times
  • Updated embedded function list
  • Added syntax highlighting to the output

Updated to v2.1.

Changelog

  • Added validation to check the dump is the supported Release English.
  • Added OS Version and Memory Around Fault to dump
  • Expanded modules