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 10-04-25, 03:32 PM   #1
Kirienko
Gunner
 
Join Date: Jan 2013
Posts: 100
Downloads: 32
Uploads: 0
Nuke Pedro's Unified Modular UI System

*** UPDATED ***


Utils Pack

- Added a separate download with some command line utilities pack to provide some help when creating mods for this system.
- Includes commands to list all dials and images of a given menu_1024 ini entry (a couple of screenshots added in the screenshot section of the post). It is useful to list what files you have to package into your custom mod.


(Download link in the download section of the post)


v1.4

- Group element numeration handled by the system in menu_1024_768 files: this means that you don't have to renumber every group element name if you add a new element in the middle or if you reorder them (wrong numeration is fixed in the output file after building). You also can use X or XX as the group element number (example: [G26 IXX]). So what is matter is the order of the element in the file, but the numbers of element in the group label are pretty much ignored, anyway you have to use a number or X/XX so the group label is identified correctly.

- Source/Split file names for menu_1024_768 now use 3 digits in their numeration.


v1.3

- Improved dials management in merge operation.
- Original dials order is kept.
- Dials are now identified by Dial, CrtVal, NewVal and Cmd.

v1.1

- Includes the split of Cameras.dat


******


The goal of this system is to split the monolithic UI definition files (menu_1024_768.ini, dials.cfg, commands_en.cfg and Cameras.dat) into smaller, modular components. This allows you to modify or extend specific parts of the UI independently, without creating conflicts between mods.


For example, one mod could change the binoculars view, while another modifies the attack periscope view. With the current system, both would overwrite the entire menu_1024_768.ini file, making them incompatible. By adopting this modular approach, each mod can safely alter its own UI section.


How it works:
  1. Prepare the files (only the first time, one time, skip this step next time or you might break things if you run it again)
    Run the script: modular-ui-prepare-files-run-me-once.cmd
    This script splits the original UI configuration files into multiple smaller files, organized into subfolders.
  2. Apply mods that modify the new created split files
    Install any mods designed for this modular system. These mods will target and modify only the relevant split files or add new ones.
  3. Rebuild the game UI
    After applying or removing mods, run: modular-ui-update-and-build-ui.cmd
    This script merges all modular files and regenerates the game’s original configuration files.
Note: Every time you enable or disable PUMUS mods, you must run the update-and-build script again to update the UI (but not the other script). So you repeat steps 2 and 3 anytime you want to modify things.


Folder structure (where you can find the split files after running the preparation script):

data/Cfg/Command_en
data/Menu/menu_1024_768
data/Menu/cfg/Dials
data/Library/Cameras


Intelligent Dial management

The system includes an automatic Dial management feature. When rebuilding, any Dial not referenced in the UI (menu_1024_768 items) is automatically excluded from dials.cfg. This allows you to safely add new Dial entries or leave unused ones in place as the script handles them intelligently.

Compatibility

This modular UI system is designed to work with any SH3 installation or mod pack.


Example - Simple PUMUS Mod

Included is a small proof-of-concept mod that adds a keyboard shortcut (Shift + L) for ship identification. It can be used with mod packs such as GWX OneAlex or Fifi’s NYGM. Follow the steps above to apply and build it.


Download links

v1.4: https://www.mediafire.com/file/82g8w...-_v1.4.7z/file


Updating from previous version to v1.4

If you are updating from a previous version it requires the rebuilt of the split files by running modular-ui-prepare-files-run-me-once.cmd again.
Before running it, disable all your mods and execute modular-ui-update-and-build-ui.cmd to revert the game UI files to its initial state (or if is easier for you reinstall and overwrite these files with their original versions: menu_1024_768.ini, dials.cfg, commands_en.cfg and Cameras.dat)


PUMUS UTILS Pack: https://www.mediafire.com/file/aeny1..._Utils.7z/file


Download example PUMUS Mod - Adds ship identify key shortcut (shift + L):
https://www.mediafire.com/file/tx48m...ip_Key.7z/file


(Older versions)
v1.3 (obsolete): https://www.mediafire.com/file/ysece...-_v1.3.7z/file

v1.1 (obsolete): https://www.mediafire.com/file/9cj2t...-_v1.1.7z/file

v1.0 (obsolete): https://www.mediafire.com/file/a254u...System.7z/file



Screenshots:







Utils Pack


Last edited by Kirienko; 05-17-26 at 09:00 AM. Reason: Utils Pack Added
Kirienko is offline   Reply With Quote
Old 10-04-25, 04:11 PM   #2
FUBAR295
Krusty Krab
 
FUBAR295's Avatar
 
Join Date: Mar 2002
Location: Decks awash in the North Atlantic
Posts: 1,568
Downloads: 624
Uploads: 0
Default

Thank you!


Downloaded. Have to try this out.
__________________
Good judgment comes from experience. Unfortunately, the experience usually comes from bad judgment.


FUBAR295 is offline   Reply With Quote
Old 10-05-25, 06:12 AM   #3
GrenSo
The Analyst
 
GrenSo's Avatar
 
Join Date: Apr 2019
Location: Germany / Frankfurt am Main
Posts: 1,030
Downloads: 614
Uploads: 7


Default

Looks very interesting
__________________
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 10-05-25, 03:33 PM   #4
Kirienko
Gunner
 
Join Date: Jan 2013
Posts: 100
Downloads: 32
Uploads: 0
Default

Quote:
Originally Posted by FUBAR295 View Post
Thank you!


Downloaded. Have to try this out.
Quote:
Originally Posted by GrenSo View Post
Looks very interesting

Kirienko is offline   Reply With Quote
Old 10-05-25, 05:09 PM   #5
fitzcarraldo
Argentinian Skipper
 
fitzcarraldo's Avatar
 
Join Date: Jul 2009
Location: Somewhere between Buenos Aires and the Bungo Suido
Posts: 5,381
Downloads: 3484
Uploads: 0


Default

Many thanks. I´ll try it.

Fitzcarraldo
__________________



My subject is War, and the pity of War. The Poetry is in the pity - Wilfred Owen.
fitzcarraldo is offline   Reply With Quote
Old 10-06-25, 11:34 AM   #6
Kirienko
Gunner
 
Join Date: Jan 2013
Posts: 100
Downloads: 32
Uploads: 0
Default

Quote:
Originally Posted by fitzcarraldo View Post
Many thanks. I´ll try it.

Fitzcarraldo





There's still one final step missing: Cameras.dat

This file defines the cameras in the game (viewport coords, sizes, fov, ...) so it is another file you might need to modify when modding UI screens with a camera (like binoculars or periscopes screens). I would like to incorporate the split of this file to the system. If anyone is familiarized with this C# library https://github.com/skwasjer/SilentHunter I could use some help.


Cheers!!
Kirienko is offline   Reply With Quote
Old 10-10-25, 10:26 AM   #7
Kirienko
Gunner
 
Join Date: Jan 2013
Posts: 100
Downloads: 32
Uploads: 0
Default

Updated!!

It was quite a headache but I managed to figure out how to deal with Cameras.dat to split it in several .ini files (one for each camera) and bring back the changes there to the dat file.


Now the system is complete.


Cheers!!
Kirienko is offline   Reply With Quote
Old 10-10-25, 12:46 PM   #8
FUBAR295
Krusty Krab
 
FUBAR295's Avatar
 
Join Date: Mar 2002
Location: Decks awash in the North Atlantic
Posts: 1,568
Downloads: 624
Uploads: 0
Default

Thank you!!!


Downloaded new version.
__________________
Good judgment comes from experience. Unfortunately, the experience usually comes from bad judgment.


FUBAR295 is offline   Reply With Quote
Old 10-11-25, 12:19 PM   #9
Kirienko
Gunner
 
Join Date: Jan 2013
Posts: 100
Downloads: 32
Uploads: 0
Default

Some heads up, guys:

I have found the dials config present in the GWX modpacks (OneAlex and Knight Cross) seem to have dial config problems: several dials that point to the same menu item ids (as far as I know this should not happen) and the prepare script gives the corresponding warning. The result is that in these modpacks the dials of the TDC stop working after running the UI build script.


I think this "strange" dial config works in the game because it merges the different properties present in the different entries for the same dial, while the UI build script takes only the properties of the last one discarding the previous ones.

So this is the state of affairs:

- SH3 Vanilla - WORKS
- Fifi's NYGM - WORKS
- GWX OneAlex - TDC Dial Problem
- GWX Knight Cross - TDC Dial Problem


I will try to make a fix patch for them, but I can not make any promises.
Kirienko is offline   Reply With Quote
Old 10-11-25, 02:59 PM   #10
Kirienko
Gunner
 
Join Date: Jan 2013
Posts: 100
Downloads: 32
Uploads: 0
Default

Updated.


Version 1.3 fixes the problems with GWX modpacks. It seems the order of dials must be preserved or it breaks down otherwise. Also, now I am identifying the dials by the Cmd property (in addition to Dial, CrtVal and NewVal).


So, after the update:


- SH3 Vanilla - WORKS
- Fifi's NYGM - WORKS
- GWX OneAlex - WORKS
- GWX Knight Cross -WORKS


Cheers!!
Kirienko is offline   Reply With Quote
Old 10-11-25, 03:01 PM   #11
FUBAR295
Krusty Krab
 
FUBAR295's Avatar
 
Join Date: Mar 2002
Location: Decks awash in the North Atlantic
Posts: 1,568
Downloads: 624
Uploads: 0
Default

__________________
Good judgment comes from experience. Unfortunately, the experience usually comes from bad judgment.


FUBAR295 is offline   Reply With Quote
Old 10-12-25, 01:43 PM   #12
Kirienko
Gunner
 
Join Date: Jan 2013
Posts: 100
Downloads: 32
Uploads: 0
Default

Quote:
Originally Posted by FUBAR295 View Post

Kirienko is offline   Reply With Quote
Old 11-17-25, 11:14 AM   #13
Kirienko
Gunner
 
Join Date: Jan 2013
Posts: 100
Downloads: 32
Uploads: 0
Default

Updated to 1.4


Details in the changelog of the first post.
Kirienko is offline   Reply With Quote
Old 11-17-25, 11:59 AM   #14
FUBAR295
Krusty Krab
 
FUBAR295's Avatar
 
Join Date: Mar 2002
Location: Decks awash in the North Atlantic
Posts: 1,568
Downloads: 624
Uploads: 0
Default

__________________
Good judgment comes from experience. Unfortunately, the experience usually comes from bad judgment.


FUBAR295 is offline   Reply With Quote
Old 11-17-25, 06:57 PM   #15
Kirienko
Gunner
 
Join Date: Jan 2013
Posts: 100
Downloads: 32
Uploads: 0
Default

Quote:
Originally Posted by FUBAR295 View Post

Kirienko is offline   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 04:30 AM.


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