• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Possible to copy data from one map to another?

Level 28
Joined
Sep 24, 2006
Messages
4,986
I was just wondering.

In this thread

I read that you can save a map as a folder, so this means you could carry over data from units, items etc. into another map?
So possibly if you automate this process you could have a core map and then export that data to other maps.

I am just questioning how feasible or usable something like this would be. I don't think the world editor supports something like cli arguments or that allow for saving as a folder.
So then it could be automated (or semi-automatic, just very fast) with something like auto hotkey.

In theory this sounds like something you could do but I don't think I have seen anyone do it before and I am wondering as to why not?
 
Are you referring to the files inside a map when you open it with an MPQ editor? or the files that can be exported via World Editor for each editing category
 
Files corrupted?
This mainly happens, when you import files without directly saving afterwards, i.e. importing -> testing instead of importing (adjusting all textures etc) -> saving -> testing.

Didn't have a single file corruption after following said routine.
Also be careful with sound variables and replacing internal sounds. Better import sounds and overwrite existing ones in the import editor directly (via file path), as opposed to using the sound editor.
 
Are you referring to the files inside a map when you open it with an MPQ editor? or the files that can be exported via World Editor for each editing category
The things created in the object editor like Units and Items, perhaps sound and everything imported into the asset manager.
I guess mpq editor also works but that depends if it can be sort of unzipped into a folder, would be easier to work with.
 
Assuming you can open the map in WE, then you can export and import all object editor data using the option Object Editor -> File -> Export/Import All Object Data.
Note that on import this will replace all your existing object data, so it's useful mostly for importing into new maps only.

As for copying map's internal files, then I think the answer is basically yes, it is possible. But that would again replace all your existing custom data. If you want to just import a small subset of data from one map to another, then the answer is "no, not without 3rd party tools", if any such tool even exist.
 
🤔I think it can be done; basically, all that's left is to merge the exported files.
Merging is too complex I think , if you just use 1 map as a core map (source of truth) and just overwrite to all other maps.
This way you could for example have an Age of Empires map or something, 1 is considered the core that holds all the units, items etc. The rest are just different maps with a forest environment, desert, jungle etc.
 
you need some libraries(i see in github if dont wrong) for manage these export files and merge, what type of files are object editer for the export?
 
you need some libraries(i see in github if dont wrong) for manage these export files and merge, what type of files are object editer for the export?
Mh I am not sure why you think you would need a custom script like that when the reforged editor has a feature like this already.

I just tried this feature with saving as a scenario folder and it works quite well actually you can just import all your imports, units, items, doodads etc. everything into the new map and they will work only issue might be some incorrectly named objects will default to TRIGSTR_<something> if they were named with some alternative editor version or something.

The only slight problem with automating is maybe that the import in the object editor does not have a hotkey, but I think I could just maximize that window then press file and then use the right position in the menu to make autohotkey click on it.
It already gives you a warning it will replace everything, which is great because then you don't need to merge anything and can just use a core map and overwrite to another map from over there. At least it suits my purposes :p
 
Back
Top