Hi, everyone. Ever wanted to get that campaign unit into your map without making your map dependent on any of the 2 campaign dependencies? Or, perhaps you have a mod and want to port the mod into a map or another mod (in this case a part of it). Say, you want to add the Diamondback into the game, but don't want to have to open a map with the campaign dependency, copy a part of the diamondback, open your map, paste it there, switch again, until the entire unit is in your map. Well, this tutorial is for you, then.
I'm not going to copy a unit from the campaign, but I will go over the basics of what you need to do to accomplish this.
Here are the tools you'll need:
Ladik's MPQ Editor (Be sure to download the 64-bit version if you have a 64-bit OS)
A text editor (Notepad will do)
StarCraft 2 and the SC2 Editor
So, let's get this started. Open up Ladik's MPQ Editor.
Go to File > Open
At the bottom, at the "files of type" dropdown menu, select "All Files *.*"
Navigate to the StarCraft 2 installation folder (usually C:\Program Files (x86)\StarCraft II or C:\Program Files\StarCraft II)
Find Campaigns\Liberty.SC2Campaign\Base.SC2Data inside the StarCraft II installation folder and open it.
Extract the "GameData" folder somewhere you can find it (E.G. Local Disk, Desktop, My Documents). This folder will contain ALL the in-game campaign data (Units such as the Diamondback and Leviathan, for example.)
Now close the MPQ file (File > Close)
Go to File > Open and again, under the StarCraft II installation directory, find and open Campaigns\LibertyStory.SC2Campaign\Base.SC2Data (Remember to set the "files of type" to "All Files *.*" or "StarCraft II Data")
CAUTION: Once again, extract the GameData folder, but NOT in the same directory as the previous file, as the files inside will override the in-game campaign data. These files contain the campaign data that is outside the missions (Hyperion Upgrades for example).
Now that all these files are extracted, you can open them with a text editor (Right Click, "Open With"), as double-clicking on them usually opens them in Internet Explorer and copy the unit, ability, model, etc. data that you want. I'm not going to cover this part in the tutorial however. Each data type (Ability, or Model, for example) has its very own XML file. AbilData.xml is the XML file for Abilities. You can also open the editor and check what you have to copy, for say, the Spectre. All its abilities, upgrades, etc. So this works well to replace the need for having a second editor open, which is not possible so far on the same computer.
Now, let's go to the editor and create a really basic mod so we can just add the data we want to the mod outside the editor. Open up the SC2 Editor.
Create a new Mod (File > New, and select Document Type "Mod" from the dropdown menu. Leave "Melee (Liberty)" as the dependency).
Save the Mod somewhere and close the editor.
Open the Mod with Ladik's MPQ Editor. (You need to select "All Files *.*" from the file type dropdown menu)
Create a new folder (Right Click on the mod filename at the top of the list on the left, and then click "New Folder...") and name it "Base.SC2Data"
Now again, click "Base.SC2Data" and click "New Folder..." and name this folder "GameData"
Create a new XML and add your data in it or edit an existing one. Remember all abilities have to be in the AbilData.XML file, and the same applies to Models, Units, etc. Take a look at the XML files you extracted to get an idea of what goes where. See note (1).
In the MPQ Editor, select the GameData folder from the list. Now drag & drop the XML file into the GameData folder. A menu will pop-up, but you can just click ok and ignore the pop-up menu.
Close the MPQ Editor and open the mod in SC2. Check the data editor for your new custom data. If you did everything correctly, it should be in there under the appropriate section.
This should make it much easier to port singleplayer heroes, units and buildings to multiplayer.
The first and second lines are the opening lines, and the third one is the closing line. So if you add "XYZ" which will be variable denoting, let's say, a weapon or an ability, it will look like this:
Post reserved; Answers to questions and additional help will be provided here.
Hi, everyone. Ever wanted to get that campaign unit into your map without making your map dependent on any of the 2 campaign dependencies? Or, perhaps you have a mod and want to port the mod into a map or another mod (in this case a part of it). Say, you want to add the Diamondback into the game, but don't want to have to open a map with the campaign dependency, copy a part of the diamondback, open your map, paste it there, switch again, until the entire unit is in your map. Well, this tutorial is for you, then.
I'm not going to copy a unit from the campaign, but I will go over the basics of what you need to do to accomplish this. Here are the tools you'll need:
So, let's get this started. Open up Ladik's MPQ Editor.
Now that all these files are extracted, you can open them with a text editor (Right Click, "Open With"), as double-clicking on them usually opens them in Internet Explorer and copy the unit, ability, model, etc. data that you want. I'm not going to cover this part in the tutorial however. Each data type (Ability, or Model, for example) has its very own XML file. AbilData.xml is the XML file for Abilities. You can also open the editor and check what you have to copy, for say, the Spectre. All its abilities, upgrades, etc. So this works well to replace the need for having a second editor open, which is not possible so far on the same computer.
Now, let's go to the editor and create a really basic mod so we can just add the data we want to the mod outside the editor. Open up the SC2 Editor.
This should make it much easier to port singleplayer heroes, units and buildings to multiplayer.
(1) Remember, every XML has to have this in it:
The first and second lines are the opening lines, and the third one is the closing line. So if you add "XYZ" which will be variable denoting, let's say, a weapon or an ability, it will look like this: