SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   [REL] sh3xtractjson tool to extract silent hunter 3 files into json format for comparision (https://www.subsim.com/radioroom/showthread.php?t=257017)

buksik 05-10-24 03:55 AM

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 :haha:

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


https://github.com/bukowa/sh3xtractj...e.jpg?raw=true
https://raw.githubusercontent.com/bu...4dd6438/ui.jpg

GrenSo 05-10-24 05:24 AM

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.

buksik 05-10-24 05:30 AM

Quote:

Originally Posted by GrenSo (Post 2911836)
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.


All times are GMT -5. The time now is 08:25 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.