Save ingame modifications

Once you are finished with creating the escape ingame, because the map is finished or because it's time to go out and do other stuff, you have to save your modifications, which means inserting them in the map, because these data are for the moment present only in the game and if you leave they will be gone.

Whether you make the map solo offline or you do it online in multiplayer doesn't matter. For both ways these are the steps to follow:

  • Type command "-saveMapInCache" (-smic) and wait for the message "Saving game data to file "MEC/mec-smic-data_(date).txt" and the message "SMIC done in (time) s" to appear. After this you can leave the game. Note: you can use -smic multiple times in the map, it will generate a new .txt file every time you type it.
  • If you use Windows go to the folder C-disk -> Users -> (Name) -> Documents -> Warcraft III -> CustomMapData -> MEC and you find the generated .txt file as was written when you typed -smic. If you use a MAC or other operating system the Warcraft III -> CustomMapData -> MEC folder might be in a different location.
  • Put the file "mec-smic-loader-dotnet.exe" (downloadable here) in this folder if you haven't done this yet.
  • Select the generated mec-smic-data .txt file, hold left mouse click on it and move it on the "mec-smic-loader-dotnet.exe" file in order to open the .txt file with this program.
  • The folder "MEC_generated_files" should appear or be updated if it's already there. Inside this folder there are 2 files: "Set_game_data.txt" describes all the code that was saved and "war3map.w3e" contains all your terrain modifications on the map.
  • Close your map in the World Editor if it's opened and make sure you left the game in Warcraft III.
  • Open your map with MPQmaster.
  • Import file "war3map.w3e" present in "MEC_generated_files", erasing the old one. Do this by selecting the "war3map.w3e" in MPQmaster, right click it, press "Add file(s)", navigate to the folder "MEC_generated_files" and select the "war3map.w3e" inside this folder.
  • Leave MPQ master and open your map in the World Editor. You should see the terrain modifications in your map now.
  • In the trigger editor, find the trigger "Set game data". This trigger is empty (if you do this the first time) or has previously added code in it. If there is code in it then delete all the code so that it is empty again.
  • In the "MEC_generated_files" folder open the "Set_game_data.txt" file.
  • Copy (ctrl+C) the data in the "Set_game_data.txt" and paste (ctrl+V) it in the trigger "Set game data".
  • Close the trigger editor and save the map with a new version name.
  • In your next game your will find your modifications again, like magic.