![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
10-30-26, 06:57 AM
|
#1 |
|
Sparky
![]() Join Date: Mar 2016
Posts: 150
Downloads: 25
Uploads: 0
|
Does sh5 write crash dumps? If so to where, or otherwise how did you trap the faulting location and reason? Thanks.
|
|
|
10-30-26, 03:30 PM
|
#2 | |
|
Swabbie
![]() Join Date: Oct 2026
Posts: 7
Downloads: 25
Uploads: 0
|
Quote:
It does rudimentary analysis of the Windows Event Viewer -> Application logs, which windows generates automatically. It then requested detailed crash dumps via registry keys that generate windows crash dumps for selected executables. I enabled that, reproduced the crash, sent the dump and it identified the cause from it. The commands are available in this log I'm attaching. This does not include the dissasembly details it steps through to read the game files, thats a ton of data and the UI doesn't let me export it so these returns are pure text explanations, but it gives you an idea of how it process flows to debug the crashes. Edit: I don't want to share edited sh5.exe files for multiple reasons here, but if you are crashing at the same spot of a save and have this error (Fault: MSVCR90.dll. Exception code: 0xc0000417 in Windows Event Viewer -> Application Logs). I've attached the explanation of how to fix it with a simple hex edit or pop it into an AI agent to have it run the fix on your copy. Last edited by arthurdiaz; 11-03-26 at 08:39 PM. |
|
|
|
10-31-26, 05:13 AM
|
#3 |
|
Ace of the Deep
![]() |
awesome work you are doing here!
![]() does this work for SH4 too? would it be possible to create an editor for SH4/SH5 ? |
|
|
10-31-26, 04:46 PM
|
#4 |
|
Swabbie
![]() Join Date: Oct 2026
Posts: 7
Downloads: 25
Uploads: 0
|
Most of the features I've explored would not work in SH3 or 4. Silent Hunter 5 introduced Python & .NET, and these mods utilize those languages to run their functions.
Certainly lots of other mods would be doable for those games, the AI's best function is simply automating things that take lots of time, like building those internal hull meshes for 3d damage. That would take a long time by hand, the AI writes a python script that analyzes the hull and generates proper internals based on bridge/engine room/etc location. That all carries over to SH4 ship .dat files. I haven't looked at tasking the AI to make an editor, I could brainstorm it but right now I'm focused on adding specific game features I want to see. You have a limited amount of compute each week so you have to plan out your approach to avoid having the AI run in circles. SH5.exe, at least through Ubisoft Connect version and TWoS provided .exe, is not encrypted so it is hex editable and thats why the AI can make quick patches for it. SH4.exe through Steam is encrypted so it would have to utilize some sort of .dll patcher to patch it in memory after steam loads it. The other library files are the same as SH5 though. I tasked the AI with how it would add some of the features I've made in SH5 to SH4, and it confirmed the .dll injection route, but also added this which kind of opens up anything for Sh3 or 4: "Write the logic in whatever language you like. Plain C++ calls game functions directly. You can also bring your own runtime: a 32-bit Python interpreter (python3x.dll) embedded in your DLL gives you real Python scripting in SH4, and a 32-bit .NET runtime can be loaded into the process the same way for C#. SH4 not shipping a scripting engine doesn’t stop you from adding one." Basically anything is possible. One caveat and this is something you see a lot lately with other games. These dll's can be dangerous, SH5 already has lots of dll mods, TDW's files are mostly dll based so its not new, but AI generated dll files are a potential security issue and developers are shutting down AI modding utilizing them in their steam workshops right now as a precaution. SH5 has exposed scripting languages built in so I don't need dll files for these mods, they are open source plain text readable, but something to keep in mind when you see AI generated mods. Last edited by arthurdiaz; 10-31-26 at 05:24 PM. |
|
|
11-01-26, 04:21 AM
|
#5 |
|
Ace of the Deep
![]() |
thanks for the explanation, very interesting stuff
|
|
|
11-03-26, 10:13 AM
|
#6 | |
|
Sparky
![]() Join Date: Mar 2016
Posts: 150
Downloads: 25
Uploads: 0
|
Quote:
input: Sent Windows event viewer Application crash log for sh5.exe Faulting application name: sh5.exe, version: 1.2.0.0, time stamp: 0x562b9a96 Faulting module name: MSVCR90.dll, version: 9.0.30729.9625, time stamp: 0x5db2747f Exception code: 0xc0000417 When sh5 was crashing here, it exited without writing anything into the event logs... at least I had assumed it was crashing (part-way through load). If I see it crash again, i'll take another look. |
|
|
|
11-03-26, 10:16 AM
|
#7 |
|
Gefallen Engel U-666
|
Peril!
__________________
"The world is too rediculous to even live in!"- Little Big Man |
|
|
11-03-26, 12:54 PM
|
#8 |
|
Sparky
![]() Join Date: Mar 2016
Posts: 150
Downloads: 25
Uploads: 0
|
So with help from AI, along with my own debugging and findings from years ago(!), I was able to make a fix for the missing tonnage bar. It's actually quite interesting and turned out to be an-memory relay fault (upc.exe) that lives between sh5 and osi.exe.
See attached readme for more details. |
|
|
11-05-26, 07:27 PM
|
#9 |
|
Swabbie
![]() Join Date: Oct 2026
Posts: 7
Downloads: 25
Uploads: 0
|
I released an initial version of the Merchant Boarding mod, linked in my first post. Its only hard requirement is TDW's NewUI's latest version as it uses this to draw the GUI, but it works with TWoS.
The included AI mod overwrites some of the TWoS AI files to revert them to stock merchant/escort behavior because of licensing restrictions in IRAI. My suggestion, since these are swappable pretty much anytime, is to save your game if you find a merchant you want to stop, exit and activate the "Merchant Heave-To AI v.1.0" Mod in JSGME, then relaunch and reload and make your stop. This way, you will still use IRAI until a boarding is necessary, and can switch back once you are finished. Hopefully I can get permission to edit IRAI to make this unnecessary, but if not I can create a new AI framework to replace it. Some bugs/features about the mod still in progress:
|
|
|
![]() |
| Tags |
| claude, modding, rea, reverse engineering |
| Thread Tools | |
| Display Modes | |
|
|
