![]() |
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. |
![]() |
![]() |
![]() |
#2 |
Pacific Aces Dev Team
|
![]()
Wow a new modding tool, GREAT
![]()
__________________
One day I will return to sea ... |
![]() |
![]() |
![]() |
#3 |
中国水兵
![]() Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
|
![]()
Bugfix... download updated.
|
![]() |
![]() |
![]() |
#4 |
Ocean Warrior
![]() Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
|
![]()
How it works? It adds any new entries (one or more) for a giving group on the menu_1024 and automatically renumber them?
![]() If so this is avery good tool!
__________________
One gamer's must-have mod is another gamer's waste of time. -Sailor Steve |
![]() |
![]() |
![]() |
#5 | |
中国水兵
![]() Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
|
![]() Quote:
It doesn't work with any mod though. The mod creator has to create a newMenuObjects.ini-file for this script to work. Yes, I've missed it. Last edited by Fader_Berg; 03-27-10 at 06:11 PM. |
|
![]() |
![]() |
![]() |
#6 |
中国水兵
![]() Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
|
![]()
New ItemIDs are now created if necessary. Download updated. Last micro change update... I promise. It just felt fundamental for the sake of it.
(I don't want to update this thread every time I make a change. So the latest version will be available for download at the link below no matter the change.) |
![]() |
![]() |
![]() |
#7 |
Ocean Warrior
![]() Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
|
![]()
Thanks mate! I will try it with these new features (path) and will post feedback soon!
![]()
__________________
One gamer's must-have mod is another gamer's waste of time. -Sailor Steve |
![]() |
![]() |
![]() |
#8 |
中国水兵
![]() Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
|
![]()
modMerge created a incorrect menu.ini if there where items in it not separated with a empty line. I've changed the ini-parsing method, so that this will not be a problem any more. The download is updated.
(This problem made modMerge incompatible with Hitmans GUIs menu.ini.) |
![]() |
![]() |
![]() |
#9 |
中国水兵
![]() Join Date: Jun 2009
Location: Uppland, Sweden
Posts: 278
Downloads: 48
Uploads: 0
|
![]()
modMerge is discontinued.
|
![]() |
![]() |
![]() |
|
|