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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

Thread Tools
Display Modes

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:29 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.