SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-10-24, 03:55 AM   #1
buksik
Watch
 
Join Date: Jul 2015
Posts: 23
Downloads: 20
Uploads: 0
Default sh3xtractjson tool to extract silent hunter 3 files into json format for comparision

This little tool parses your folder looking for .dat, .sim, .zon, .dsd, .cam, .val, .sdl, .off files, and serializes them to JSON format, saving into a new file with a .json extension.

I was trying to compare some modded files to see changes, and I gave up because it was exhausting to compare using S3D. I couldn't find any tool for this (am I blind?) but I found a GitHub project by skwasjer with sources used for S3D and I played around. I hope it can be useful for someone. Probably needs some fixes, etc., because I am lazy, this is probably hacky and I didn't test much, but it works for me and here is the source:

I named it in the spirit of "sh3" tools

https://github.com/bukowa/sh3xtractjson, and here you can download it: https://github.com/bukowa/sh3xtractjson/releases.



buksik is online   Reply With Quote
Old 05-10-24, 05:24 AM   #2
GrenSo
Grey Wolf
 
Join Date: Apr 2019
Location: Germany
Posts: 866
Downloads: 586
Uploads: 7


Default

Sounds very interesting and I will look at the tool when I have time. Sounds very interesting and I will look at the tool when I have time.



Do all the files mentioned have to be available or can you only select individual files?
If so, then your tool can also be used for SH5.
__________________
Best regards,
GrenSo


“Mankind must put an end to war, or war will put an end to mankind.” - J.F.K.
GrenSo is offline   Reply With Quote
Old 05-10-24, 05:30 AM   #3
buksik
Watch
 
Join Date: Jul 2015
Posts: 23
Downloads: 20
Uploads: 0
Default

Quote:
Originally Posted by GrenSo View Post
Sounds very interesting and I will look at the tool when I have time. Sounds very interesting and I will look at the tool when I have time.



Do all the files mentioned have to be available or can you only select individual files?
If so, then your tool can also be used for SH5.
You can select any folder and it will be searched recursively. So you cannot select a file but a folder with one file will work.

It uses skwasjer code from here https://github.com/skwasjer/SilentHunter so if that works with SH5 then yes.
buksik is online   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.