I disabled terrain when I made the map. (you can unstick terrain when you make new document)
But now I changed my mind I want to use the terrain. Anyway to enable it?
Or what is the best way to copy my stuff to map with terrain?:D
It is possible to show/hide terrain through triggers, so it should be possible to show/hide the terrain in the editor itself. Although, if you only have triggers in the map, I would suggest you to move it to a different map. Triggers are easily moveable with copy/paste.
I've done a bit of poking around, but haven't found a solution yet.
Unless someone else points out something I missed, I'm inclined to say it isn't possible to get terrain back into a map that wasn't generated with it. (Trying to paste it over from another map just caused a crash for me.)
Ok, I have an idea, but I have only found out about this recently and am not really an expert on it. Also, when i tried this method my terrain became almost completely unpathable (Only in game. editor said everything was fine), but seeing as you said you dont need the terrain itself, you probably dont have to worry about ground pathing.
Try saving your map as an sc2components file ("Save As" and then change file type)
Make a new map (with terrain), modify its terrain slightly, save as "Sc2components" as well.
Find both folders and open them (Sc2components saves your map as a folder)
Also, very important, close the files in your editor (You can either shut down the editor completely, or just press "File-> Close" until you have no active documents anymore)
Now there's two things you can try, and I'm not sure whether they'll work.
First, open both "ComponentList.sc2component" files in notepad. What you'll get is something like this:
Now, I don't know for sure, but I'm guessing your terrainless map will be missing "t3Terrain.xml", and the other map might be missing a lot of the other things.
First try copying all files that start with "t3" into the folder of your original map, and modify the component list to include <DataComponent Type="terr">t3Terrain.xml</DataComponent>
Now open the ComponentList.sc2components file with the editor and see if you have the terrain of the other map.
If that didn't work, we do it the other way around. Copy all files from your map EXCEPT the t3 ones (and the components list ofc) to the terrain maps folder (overwrite files if needed). Open both ComponentLists in notepad. The terrain map ones might be missing a few lines that your other map has, copy those over and save.
Try opening the terrain map now and see if everything works.
@TheAlmaity: Go
good idea there.
I tried both, the terrain does work, but I couldnt place units to place where is no terrain (I could do in the editor but couldnt ingame with triggers) and terrain texture set Background Model doesnt show up. And I need both of them.
I will try later to copy only the map data and maybe attributes this way. That would help lot.
hmm I was wrong, it actually worked, I didnt have the ignore placement option on for creating units with triggers.
And actually the background (skybox) didnt show up because I had bad camera settings, so I actually dont need terrain anyway. (manage to waste 1 hour for nothing:D)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I disabled terrain when I made the map. (you can unstick terrain when you make new document)
But now I changed my mind I want to use the terrain. Anyway to enable it?
Or what is the best way to copy my stuff to map with terrain?:D
It is possible to show/hide terrain through triggers, so it should be possible to show/hide the terrain in the editor itself.
Although, if you only have triggers in the map, I would suggest you to move it to a different map. Triggers are easily moveable with copy/paste.
I tried:
Environment - Show terrain cells in (Entire map)
Environment - Show All Environment Types
didnt helped.
Yeah triggers are just copy paste, but I have some data and map info and attribute kind of stuffs too.
I've done a bit of poking around, but haven't found a solution yet.
Unless someone else points out something I missed, I'm inclined to say it isn't possible to get terrain back into a map that wasn't generated with it. (Trying to paste it over from another map just caused a crash for me.)
you dont have terrain editor if you terrain off. I actually need only the map background, I dont need terrain cells.
Ok, I have an idea, but I have only found out about this recently and am not really an expert on it. Also, when i tried this method my terrain became almost completely unpathable (Only in game. editor said everything was fine), but seeing as you said you dont need the terrain itself, you probably dont have to worry about ground pathing.
Try saving your map as an sc2components file ("Save As" and then change file type)
Make a new map (with terrain), modify its terrain slightly, save as "Sc2components" as well.
Find both folders and open them (Sc2components saves your map as a folder)
Also, very important, close the files in your editor (You can either shut down the editor completely, or just press "File-> Close" until you have no active documents anymore)
Now there's two things you can try, and I'm not sure whether they'll work.
First, open both "ComponentList.sc2component" files in notepad. What you'll get is something like this:
Now, I don't know for sure, but I'm guessing your terrainless map will be missing "t3Terrain.xml", and the other map might be missing a lot of the other things.
First try copying all files that start with "t3" into the folder of your original map, and modify the component list to include <DataComponent Type="terr">t3Terrain.xml</DataComponent>
Now open the ComponentList.sc2components file with the editor and see if you have the terrain of the other map.
If that didn't work, we do it the other way around. Copy all files from your map EXCEPT the t3 ones (and the components list ofc) to the terrain maps folder (overwrite files if needed). Open both ComponentLists in notepad. The terrain map ones might be missing a few lines that your other map has, copy those over and save.
Try opening the terrain map now and see if everything works.
I hope it works and that I could be understood :)
@TheAlmaity: Go good idea there.
I tried both, the terrain does work, but I couldnt place units to place where is no terrain (I could do in the editor but couldnt ingame with triggers) and terrain texture set Background Model doesnt show up. And I need both of them.
I will try later to copy only the map data and maybe attributes this way. That would help lot.
hmm I was wrong, it actually worked, I didnt have the ignore placement option on for creating units with triggers.
And actually the background (skybox) didnt show up because I had bad camera settings, so I actually dont need terrain anyway. (manage to waste 1 hour for nothing:D)