![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
中国水兵
![]() Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
|
![]()
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. Last edited by Fader_Berg; 04-12-10 at 04:01 AM. |
![]() |
![]() |
|
|