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 03-26-10, 05:46 PM   #1
Fader_Berg
中国水兵
 
Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
Default modMerge.js

modMerge.js appends your mods menu_1024_768.ini items to the users customized one without a fuzz, (well not for sure - it's still in alpha stadium - but almost).
Read the source for more details... and see http://www.subsim.com/radioroom/showthread.php?t=166246 for an example.

Features:
- Appends items to respective group by giving it the next free item number.
- Generates a new ItemID if necessary.
- If a new object got the same name as a existing one, the user gets a question whether to replace or append the object.

Instructions:
To install ModMerge, simply put the modMerge.js script in your SH3 directory.

To merge a mod, drag and drop the mods *-objects.ini file on to the modMerge script. It will merge, (or replace) the new objects in a new menu_1024_768.ini file. It will not overwrite your existing one. That part will be left for JSGME.
The new menu file will be created in .\data\Menu from where the *-objects.ini file is located. If the path exists that is, otherwise it will be created in the same directory as the *-objects.ini file. So...

A good way to install a mod that supports modMerge is...

1. Unzip the mod into your MODS folder.
2. Drag and drop the *-objects.ini file on to the modMerge script.
3. Enable the mod in JSGME.


Download here.

Code:
                  C h a n g e L o g
================================================================================
0.3.1
    - Changed the ini parsing method.
 
      Before the items in ini-files had to be separated with one empty
      line. This is no longer necessary.
 
0.3.0
    - Changed the way modMerge treats the SH3 path.
 
      Before modMerge used the installation register value to find out
      where SH3 was installed. This was a problem with multiple installs.
      From now on, modMerge expect to be located in the SH3 directory and
      simply uses the menu.ini-file for that particular installation.
__________________
patSH3r-developer, (https://fb.tuxxor.net)
Type II junkie

Last edited by Fader_Berg; 04-12-10 at 04:01 AM.
Fader_Berg is offline   Reply With Quote
 


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:08 AM.


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