This drove me crazy for about a week, searching and reading a ton without any clear / easy to understand instructions. So I figured id post this for anyone else looking do get data such as unit data, triggers, etc from other maps. It's really fairly easy to do.
FIRST: Make a back up of your map is you have not yet done so, you can screw it up very easily doing this if you're not sure what you're doing.
Next, open your source map in the galaxy editor then open the import module.
Check the box that says "Show Reserved"
This is all the data you can export from this map, for units you would export everything under Base.SC2Data/GameData
Hold Shift and select every time file under Base.SC2Data/GameData, then rightclick and export. For this example we will say c:\SC2Units
Now, we have the data we want to import so close that map, also be sure that your destination map is closed.
Open LadiK's MPQ editor, you should be able to leave most of the settings as default, I set my working directory and list in my maps project folder.
Open your destination map
open Base.SC2data, look familiar? You should see, ActorData.xml, EffectData.xml, etc...
You have a couple of options here. If you want to keep your existing data, you can modify each file, cut and paste the xml data. If you're unfamiliar with XML, google it. or you can deleted / rename all of these. Note: Renaming them will leave them in your project, wasting space and making it bigger, you cannot access them.
After deleting or renaming right click in a black spot in the file list and select add. Browes to the folder you exported your data to, in out case C:\SC2Units
If you deletd all the files, you're done. If you're adding / merging existing data, you'll need to rename the files in order to import them and edit the xml data.
The editor works in real time so you do not have to save. just close the editor and open your map. If you did everythign right you should have all your unit data from your other map.
Triggers and other localized data can be found in enUS(or EU?).SC2DATA
Hope this saves some headaches for other people trying to do this. Enjoy!
This will come in handy ! Especially if you want to transfer sc2map data to a sc2mod !
Thanks you !
It would be cool to have some images and set it as a tutorial.
I'm also having troubles here. When I create a new map, Base.Sc2Data is not even a directory in the map file. So when I go ahead and just add the exported directory it still doesn't work for some reason. The map opens but I can find find none of my units.
When I instead just try to simply import the files it says that those files are using reserved filenames.
Instead of using his method you can just use File -> Save As... and choose Save As Type: Editor Component Lists (.SC2Components). This saves all the map files in a folder instead of in a MPQ file and you can copy paste XML files between maps easily.
Another way to export data is to open the console (via Window) and type "browse". This will show everything in your map, so just search for whatever you want to export and export it. BAM!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
This drove me crazy for about a week, searching and reading a ton without any clear / easy to understand instructions. So I figured id post this for anyone else looking do get data such as unit data, triggers, etc from other maps. It's really fairly easy to do.
FIRST: Make a back up of your map is you have not yet done so, you can screw it up very easily doing this if you're not sure what you're doing.
Download a mpq editor, I use - LadiK's MPQ Editor: http://www.zezula.net/en/mpq/download.html
Next, open your source map in the galaxy editor then open the import module. Check the box that says "Show Reserved"
This is all the data you can export from this map, for units you would export everything under Base.SC2Data/GameData Hold Shift and select every time file under Base.SC2Data/GameData, then rightclick and export. For this example we will say c:\SC2Units
Now, we have the data we want to import so close that map, also be sure that your destination map is closed.
Open LadiK's MPQ editor, you should be able to leave most of the settings as default, I set my working directory and list in my maps project folder.
Open your destination map
open Base.SC2data, look familiar? You should see, ActorData.xml, EffectData.xml, etc...
You have a couple of options here. If you want to keep your existing data, you can modify each file, cut and paste the xml data. If you're unfamiliar with XML, google it. or you can deleted / rename all of these. Note: Renaming them will leave them in your project, wasting space and making it bigger, you cannot access them.
After deleting or renaming right click in a black spot in the file list and select add. Browes to the folder you exported your data to, in out case C:\SC2Units
If you deletd all the files, you're done. If you're adding / merging existing data, you'll need to rename the files in order to import them and edit the xml data.
The editor works in real time so you do not have to save. just close the editor and open your map. If you did everythign right you should have all your unit data from your other map.
Triggers and other localized data can be found in enUS(or EU?).SC2DATA
Hope this saves some headaches for other people trying to do this. Enjoy!
@nezoic:
Thanks. This is indeed most useful.
Hmmm! Handy.
Shouldn't this be in the tutorial section, BTW? :P
Awesome stuff. I was just looknig for this.
@nezoic: Go
I dont get the part on how to merge the data.
I agree with Ezera.. I lost you half way in.. you aren't very descriptive.
This tutorial is ok but it could be a bit better with some pictures etc.
Anyway I'm was able to move data from map to another by this tutorial so thanks for the writer!
I'm also having troubles here. When I create a new map, Base.Sc2Data is not even a directory in the map file. So when I go ahead and just add the exported directory it still doesn't work for some reason. The map opens but I can find find none of my units.
When I instead just try to simply import the files it says that those files are using reserved filenames.
@Bijan641: Go
Instead of using his method you can just use File -> Save As... and choose Save As Type: Editor Component Lists (.SC2Components). This saves all the map files in a folder instead of in a MPQ file and you can copy paste XML files between maps easily.
Another way to export data is to open the console (via Window) and type "browse". This will show everything in your map, so just search for whatever you want to export and export it. BAM!