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 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-01-13, 09:17 AM   #12
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,973
Downloads: 465
Uploads: 0


Default

Quote:
Originally Posted by TorpX View Post
Cooking Mod Soup is more of an art, than a science, I'm afraid.

I must respectfully disagree. Using multiple mods successfully is not art and need not be done by trial and error. It is necessary, though, to understand the modding process, and what happens when a mod is installed.

The SH4 game consists of an executable (.exe) file and several thousand data files, which control the operation of the .exe. By changing the contents of the data files, you can, as Operation Monsun does, change the geography, the national origin, the submarines – both performance and appearance – and the “atmospherics” of the game, all by telling the .exe what you want it to do. The SH4 .exe (the “game engine”) is incredibly adaptable!

What a mod does is change the contents of one or more of those data files. The modder starts with a data file from the stock game, opens it in a suitable editor program, and makes changes to the contents to change those elements he wants to mod. The rest of the stock game file he leaves alone, since there is no reason to change it.

When you install a mod, JSGME (or whatever other means you use) overwrites the entire file in the SH4 game’s /data/ folder (or a subfolder). In effect, it changes the parts the modder rewrote, and replaces the rest of that file with exactly what was there before in the stock game.

Understanding this process is important when using multiple mods. If the mods overwrite different files, then they will not interfere with each other. If they both overwrite the same file, then the only copy of the file the .exe will see and use is the last version installed. There is absolutely no way to change this.

Let’s take a simple example: We want to change the keyboard mapping. Assignment of keys to commands is done with a file called /data/cfg/commands.cfg. It’s a text file, so you can use Notepad or any text editor to change it. So we change the dive and surface commands to CTRL-D and CTRL-S, making it harder to hit them accidentally. The rest of the file we leave alone, with the stock key mapping. We set our mod up so that it can be installed by JSGME. We play the stock game, with our mod loaded, and it works as we intended.

But we want to play TMO, not the stock game. And TMO already has changed the keyboard mapping, to something similar to the SH3 keyboard commands. If we install our mod before we install TMO, our mod gets overwritten, and our change never takes effect. If, on the other hand, we install our mod after TMO, all the TMO key assignments are lost, and we are left with the stock keyboard with our two changes. Either way, it’s not what we wanted to do.

The only way to make our changes work with TMO is to edit the TMO version of commands.cfg. We have then made a “TMO-compatible” mod. Great, but remember that it won’t work correctly with the stock game.

How do you know what files are being changed? Whenever, you install a mod using JSGME, the installer tells you when a file is being changed that has already been changed by another mod. (Remember, “changed” means “completely overwritten.”) If a file is being overwritten a second time, the first change will probably be lost, unless the second mod is “compatible” with the first. Every time you overwrite a file, only the last version written will actually be used. So you need to look carefully at that warning window in JSGME and make sure you know what is being changed. You have to know a bit about what all those files are controlling. And some of them control lots of different elements in the game.

If you find a mod that you really want to try, but you see that it is overwriting important files, files you don’t want changed or files you don’t understand, then you have a choice. You can experiment and see what happens. Or you can use a program like WinMerge to compare the two files and see what game elements each one is changing. You can even, if you are careful, merge the two files and make a “compatible” version.

All of this may be much too much for some gamers. If so, you are probably better off sticking to a few mods – one of the megamods and its patches, for instance. And you can always try mods that state they are “compatible” provided you install the “compatible” mod after the mod it is “compatible” with. If you want to use a lot of additional mods, then you need to determine what is being changed, what it does, and what changes will be lost. Then you can decide which changes you want to keep.

As I said above, it’s not art, and it need not be trail and error. But it does involve learning something about how SH4 works, how the mods you want to use work, and how they will interact.
BigWalleye 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 12:57 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.