MaxGhost
08-26-2009, 02:06 PM
How to combine mods
by MaxGhost
I decided to make this guide because of the problem the modding community of HoN faces, and because of my combination mod solution slowly coming to an end.
There are a few programs and tools you will need to be able to do this. Also, I'm not saying these are the best tools to do the job, but these are of my personal preference.
This guide requires you to have intermediate knowledge of how computer files and folders work and it requires you to have some common sense.
You will need file extensions turned on in your folder options turned on for you to be able to do some things during this guide. If you don't know how, Google it (http://lmgtfy.com/?q=turn+on+file+extensions+folder+options).
Note: This guide is for Windows operating systems for the first two steps. Notepad++ and 7-Zip are both cross platform applications, so for those using linux, they can easily use the linux versions of the programs.
1. Download and install the following programs:
i. Notepad++ Installer (.exe) (http://sourceforge.net/projects/notepad-plus/files/notepad%2B%2B%20releases%20binary/npp%205.4.5%20bin/npp.5.4.5.Installer.exe/download)
ii. Compare plug-in for Notepad++ (.dll) (http://sourceforge.net/projects/npp-plugins/files/ComparePlugin/Compare_1_5_5_UNI_dll.zip)
iiia. 7-Zip file archiver (.exe) (http://downloads.sourceforge.net/sevenzip/7z465.exe) (32-bit)
iiib. 7-Zip file archiver (.exe) (http://downloads.sourceforge.net/sevenzip/7z465-x64.msi) (64-bit)
2. Install the plug-in for Notepad++.
Navigate to the following folder: C:\Program Files\Notepad++\plugins
Place the downloaded ComparePlugin.dll into this folder and it should be installed.
3. Get the mods you want to combine.
Visit The Modification Repository (http://forums.heroesofnewerth.com/showthread.php?t=7391) and download the mods you want to combine together.
Once you've done that, I suggest you put all the mods (.s2z files) into one folder that you can easily reach (desktop mabye).
4. Open and extract the mod files.
Next, we'll need to open the mod files with 7-Zip. The easiest way is the right-click on them and under the new 7-Zip menu, choose "Open Archive". This will bring up an explorer-style 7-Zip panel. Now, you've opened the mod. After opening the mod, we'll need to extract it to another folder, so click the extract button. Make a new folder inside of your folder you just made in step 3, and give it the name of the number of the mod. For example, if the mod is "resources009.s2z", call the folder "009". It should look like this:
http://img43.imageshack.us/img43/9272/guide7z1.png
5. Open mod files with Notepad++.
First, open Notepad++ (shouldn't be too difficult). Then, navigate into the extracted mod's folder. Using the same example, open the "ui" folder inside of the "009" folder. You should have some .interface files and possibly some .package files in it. Some mods even include other folders too. If the mod has the game.interface file in it, you'll want to open that with Notepad++ by right-clicking on it, then clicking Edit with Notepad++ (If you don't have that option, do Open with and find notepad++.exe). Now, Notepad++ should open up and you should have the game.interface file opened in one of the tabs. It should look like this:
http://img510.imageshack.us/img510/5851/guidenotepad1.png
6. Find and open the original game .interface or .package file.
Next, we will want to open (but not extract) the resource0.s2z file, which contains the game's original .interface and .package files. First, navigate to: C:\Program Files\Heroes of Newerth\game and like in step 4, open resource0.s2z with 7-Zip. Now, go into the ui folder in 7-Zip, and find the game.interface file. There should be around 70 interface files, in there, but we only want game.interface for our example. You can extract this file into another folder into the folder you created in step 3, and I suggest that you name the folder "original" or something similar. Now, like in step 5, open the original game.interface file you just extracted.
Before you do anything else, I suggest that you save a copy of the game.interface file with "Save As..." in Notepad++ to a new "ui" folder inside of a new folder would call "Combo", or something else if you prefer.
7. Compare the two files.
Now that we have two game.interface files open we're ready to start bringing changes over into our original file (which we're saving in a new "Combo" folder). In Notepad++, click plug-in at the top, then go into the Compare menu, then click "Compare". Here's a picture of the menu:
http://img262.imageshack.us/img262/5245/guidenotepad2.png
Now that we've done that, we should have a new window in notepad++ on the right that should look like this:
http://img182.imageshack.us/img182/4440/guidenotepad3.png
As you can see above, all the blue and violet lines and blocks on the right window are differences between the two files we have open. I opened an older version of mod 009 just to show what you might see when you compare files. In my example, the file on the left is the original game.interface file, and the one on the right is mod 009's game.interface file.
8. Making the necessary changes.
Since our original file is on the left, we must make the changes in that one. Now, use the scroll bar, and scroll slowly, and look for highlighted lines in the files, that show a part that has been modified. Here's an example:
http://img17.imageshack.us/img17/3346/guidenotepad4.png
In this picture above, you see a big block of PINK highlighted code. This means it's been ADDED into the mod. You can also tell it was added by the '+' symbols to the left of the code. So now, you'll want to copy and paste this large block of code into the left side.
Also, if the code is blue, and there are minus ( - ) symbols to the left of it, it's been removed from the code. If it's purple, it means there's something missing from those lines, and if it's blue with a >>> symbol to the left of it, it means there was a change somewhere in that line.
So now, your job is to make all the changes.
9. Repeat steps 4 to 8 for other mods.
For step 8, just make the changes to the same game.interface file you made changes to the first time, and keep saving it in the same "\combo\ui" folder.
10. Import all the other mod files from inside the mod's .s2z
If you remember in step 5, I mentioned there might be other files and folders inside of some mod's s2z files. Namely some .tga pictures, .package files, other .interface files, etc. You'll want to extract the contents of those mods into your "\combo\ui" folder. DO NOT EXTRACT THE GAME.INTERFACE FILE WITH THEM OR IT WILL OVERWRITE ALL YOUR WORK. You should not be overwriting any files at all during this step. Once that's done, you can move on to the next step.
11. Turn your mod into a .s2z mod file.
Now, navigate to your "Combo" folder. Right-click it, and in the 7-Zip menu, select "Add to 'ui.zip'". (Note that if your combo uses files outside of the ui folder, you will have to select all the files in your combo folder and then zipping.) This will create a new file next to your ui folder, and you will want to rename it to "resources013.s2z" (or any other mod number of a mod you combined with during this guide). You can now place the mod in your \Heroes of Newerth\game folder, and enjoy!
**To-do list.
- Revise the text
- Add more pictures
- Add protips
by MaxGhost
I decided to make this guide because of the problem the modding community of HoN faces, and because of my combination mod solution slowly coming to an end.
There are a few programs and tools you will need to be able to do this. Also, I'm not saying these are the best tools to do the job, but these are of my personal preference.
This guide requires you to have intermediate knowledge of how computer files and folders work and it requires you to have some common sense.
You will need file extensions turned on in your folder options turned on for you to be able to do some things during this guide. If you don't know how, Google it (http://lmgtfy.com/?q=turn+on+file+extensions+folder+options).
Note: This guide is for Windows operating systems for the first two steps. Notepad++ and 7-Zip are both cross platform applications, so for those using linux, they can easily use the linux versions of the programs.
1. Download and install the following programs:
i. Notepad++ Installer (.exe) (http://sourceforge.net/projects/notepad-plus/files/notepad%2B%2B%20releases%20binary/npp%205.4.5%20bin/npp.5.4.5.Installer.exe/download)
ii. Compare plug-in for Notepad++ (.dll) (http://sourceforge.net/projects/npp-plugins/files/ComparePlugin/Compare_1_5_5_UNI_dll.zip)
iiia. 7-Zip file archiver (.exe) (http://downloads.sourceforge.net/sevenzip/7z465.exe) (32-bit)
iiib. 7-Zip file archiver (.exe) (http://downloads.sourceforge.net/sevenzip/7z465-x64.msi) (64-bit)
2. Install the plug-in for Notepad++.
Navigate to the following folder: C:\Program Files\Notepad++\plugins
Place the downloaded ComparePlugin.dll into this folder and it should be installed.
3. Get the mods you want to combine.
Visit The Modification Repository (http://forums.heroesofnewerth.com/showthread.php?t=7391) and download the mods you want to combine together.
Once you've done that, I suggest you put all the mods (.s2z files) into one folder that you can easily reach (desktop mabye).
4. Open and extract the mod files.
Next, we'll need to open the mod files with 7-Zip. The easiest way is the right-click on them and under the new 7-Zip menu, choose "Open Archive". This will bring up an explorer-style 7-Zip panel. Now, you've opened the mod. After opening the mod, we'll need to extract it to another folder, so click the extract button. Make a new folder inside of your folder you just made in step 3, and give it the name of the number of the mod. For example, if the mod is "resources009.s2z", call the folder "009". It should look like this:
http://img43.imageshack.us/img43/9272/guide7z1.png
5. Open mod files with Notepad++.
First, open Notepad++ (shouldn't be too difficult). Then, navigate into the extracted mod's folder. Using the same example, open the "ui" folder inside of the "009" folder. You should have some .interface files and possibly some .package files in it. Some mods even include other folders too. If the mod has the game.interface file in it, you'll want to open that with Notepad++ by right-clicking on it, then clicking Edit with Notepad++ (If you don't have that option, do Open with and find notepad++.exe). Now, Notepad++ should open up and you should have the game.interface file opened in one of the tabs. It should look like this:
http://img510.imageshack.us/img510/5851/guidenotepad1.png
6. Find and open the original game .interface or .package file.
Next, we will want to open (but not extract) the resource0.s2z file, which contains the game's original .interface and .package files. First, navigate to: C:\Program Files\Heroes of Newerth\game and like in step 4, open resource0.s2z with 7-Zip. Now, go into the ui folder in 7-Zip, and find the game.interface file. There should be around 70 interface files, in there, but we only want game.interface for our example. You can extract this file into another folder into the folder you created in step 3, and I suggest that you name the folder "original" or something similar. Now, like in step 5, open the original game.interface file you just extracted.
Before you do anything else, I suggest that you save a copy of the game.interface file with "Save As..." in Notepad++ to a new "ui" folder inside of a new folder would call "Combo", or something else if you prefer.
7. Compare the two files.
Now that we have two game.interface files open we're ready to start bringing changes over into our original file (which we're saving in a new "Combo" folder). In Notepad++, click plug-in at the top, then go into the Compare menu, then click "Compare". Here's a picture of the menu:
http://img262.imageshack.us/img262/5245/guidenotepad2.png
Now that we've done that, we should have a new window in notepad++ on the right that should look like this:
http://img182.imageshack.us/img182/4440/guidenotepad3.png
As you can see above, all the blue and violet lines and blocks on the right window are differences between the two files we have open. I opened an older version of mod 009 just to show what you might see when you compare files. In my example, the file on the left is the original game.interface file, and the one on the right is mod 009's game.interface file.
8. Making the necessary changes.
Since our original file is on the left, we must make the changes in that one. Now, use the scroll bar, and scroll slowly, and look for highlighted lines in the files, that show a part that has been modified. Here's an example:
http://img17.imageshack.us/img17/3346/guidenotepad4.png
In this picture above, you see a big block of PINK highlighted code. This means it's been ADDED into the mod. You can also tell it was added by the '+' symbols to the left of the code. So now, you'll want to copy and paste this large block of code into the left side.
Also, if the code is blue, and there are minus ( - ) symbols to the left of it, it's been removed from the code. If it's purple, it means there's something missing from those lines, and if it's blue with a >>> symbol to the left of it, it means there was a change somewhere in that line.
So now, your job is to make all the changes.
9. Repeat steps 4 to 8 for other mods.
For step 8, just make the changes to the same game.interface file you made changes to the first time, and keep saving it in the same "\combo\ui" folder.
10. Import all the other mod files from inside the mod's .s2z
If you remember in step 5, I mentioned there might be other files and folders inside of some mod's s2z files. Namely some .tga pictures, .package files, other .interface files, etc. You'll want to extract the contents of those mods into your "\combo\ui" folder. DO NOT EXTRACT THE GAME.INTERFACE FILE WITH THEM OR IT WILL OVERWRITE ALL YOUR WORK. You should not be overwriting any files at all during this step. Once that's done, you can move on to the next step.
11. Turn your mod into a .s2z mod file.
Now, navigate to your "Combo" folder. Right-click it, and in the 7-Zip menu, select "Add to 'ui.zip'". (Note that if your combo uses files outside of the ui folder, you will have to select all the files in your combo folder and then zipping.) This will create a new file next to your ui folder, and you will want to rename it to "resources013.s2z" (or any other mod number of a mod you combined with during this guide). You can now place the mod in your \Heroes of Newerth\game folder, and enjoy!
**To-do list.
- Revise the text
- Add more pictures
- Add protips