I only know how to copy data from the same category. For example, i can copy multiple abilities but i cant copy actors and effects at the same time. I would have to copy actors into my other map then copy effects after. But this messes everything up, if i paste actors first then the effects that are linked to the actors do not carry over and the links will be blank. Is there away to copy everything i want?
I'm not sure if there's anything you can do now that you've already written if, but if you want to share data between maps it's best to develop them in .mod files.
I think if you delete all the terrain from a map, you can turn it into a mod by changing the file extension. Then set the mod as a dependency in your new map.
Save both maps as .SC2Component and you get a folder for each map that you can edit. copy the "Base.SC2Data" folder (contains all data changes) of your old maps folder into the new maps folder.
If there is no Base.SC2Data folder in your new map before you put the folder from the old map in, open the file "Componentslist.SC2Components" (or something like that...) with notepad and put in this line:
<DataComponent Type="gada">GameData</DataComponent>
This will make the map recognize that there are data changes inside your map.
Save everything and open the folder of the new map again in editor -> new map with old data.
If you want to add certain data from one map to another that also already has some custom data, don't overwrite the Base.SC2Data folder, but open the old one and you will find xml files for every data tab here. open those you want to copy data from, copy the entries with the names of the things you need and paste it at the end of the same xml file of the other map.
Save both maps as .SC2Component and you get a folder for each map that you can edit. copy the "Base.SC2Data" folder (contains all data changes) of your old maps folder into the new maps folder. If there is no Base.SC2Data folder in your new map before you put the folder from the old map in, open the file "Componentslist.SC2Components" (or something like that...) with notepad and put in this line:
<DataComponent Type="gada">GameData</DataComponent>
This will make the map recognize that there are data changes inside your map. Save everything and open the folder of the new map again in editor -> new map with old data.
If you want to add certain data from one map to another that also already has some custom data, don't overwrite the Base.SC2Data folder, but open the old one and you will find xml files for every data tab here. open those you want to copy data from, copy the entries with the names of the things you need and paste it at the end of the same xml file of the other map.
Thanks so much! This got it working but I still get error messages anytime I load up imported data. The unit is there but the name didn't save, it only goes by the idea. Its a little annoying to have an error pop up every time you use that unit but its a start.
I think I actually figured it out. in enUS.SC2Data there is a gamestrings.txt that has something that looks like it sets the unit name for the new unit. That might be the cause of the error, I didn't copy it before. Object strings as well.
Edit: OK so I added some of the files from enUS like gameobjects and some of my issues went away. The units now had their names back instead of just their id's. Unfortunately, I always get this error anytime I click anything at all:
Warning: Unable to lad 'GameData' from 'C:/Path/test.SC2Map
I only know how to copy data from the same category. For example, i can copy multiple abilities but i cant copy actors and effects at the same time. I would have to copy actors into my other map then copy effects after. But this messes everything up, if i paste actors first then the effects that are linked to the actors do not carry over and the links will be blank. Is there away to copy everything i want?
This is why .mod files are good :)
I'm not sure if there's anything you can do now that you've already written if, but if you want to share data between maps it's best to develop them in .mod files.
I think if you delete all the terrain from a map, you can turn it into a mod by changing the file extension. Then set the mod as a dependency in your new map.
Save both maps as .SC2Component and you get a folder for each map that you can edit. copy the "Base.SC2Data" folder (contains all data changes) of your old maps folder into the new maps folder. If there is no Base.SC2Data folder in your new map before you put the folder from the old map in, open the file "Componentslist.SC2Components" (or something like that...) with notepad and put in this line:
<DataComponent Type="gada">GameData</DataComponent>
This will make the map recognize that there are data changes inside your map. Save everything and open the folder of the new map again in editor -> new map with old data.
If you want to add certain data from one map to another that also already has some custom data, don't overwrite the Base.SC2Data folder, but open the old one and you will find xml files for every data tab here. open those you want to copy data from, copy the entries with the names of the things you need and paste it at the end of the same xml file of the other map.
@Talon0815: Go
Omg thank you so much! I've spent a week trying to figure this out. I simply changed my maps extension and couldnt publish my new map.
All the threads I read on this didnt go into much detail about how to sort this out, so once again thank you!
Thanks so much! This got it working but I still get error messages anytime I load up imported data. The unit is there but the name didn't save, it only goes by the idea. Its a little annoying to have an error pop up every time you use that unit but its a start.
are the dependencies the same in the old and new map?
I think I actually figured it out. in enUS.SC2Data there is a gamestrings.txt that has something that looks like it sets the unit name for the new unit. That might be the cause of the error, I didn't copy it before. Object strings as well.
Edit: OK so I added some of the files from enUS like gameobjects and some of my issues went away. The units now had their names back instead of just their id's. Unfortunately, I always get this error anytime I click anything at all:
Warning: Unable to lad 'GameData' from 'C:/Path/test.SC2Map