HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Replacing terrain.

02-06-2008, 02:12 PM#1
cohadar
I need to replace the terrain in my map with a new one.

So I exported all triggers and all object data and imported them to the map with new terrain.

But when I tried to do that with imported icons I had to do one icon at a time.

Is there any better way to replace terrain?
02-06-2008, 02:16 PM#2
Ammorth
You can export all the imports to a folder and then import the folder. You then have to re-name all the icons, but its not that hard (just keep the path in the clipboard and copy it in).
02-06-2008, 02:28 PM#3
cohadar
Ok tnx.

And how do I import gameplay constants and gameplay interface?
02-06-2008, 03:10 PM#4
Strilanc
Why aren't you just importing the terrain instead of importing everything else?

You can copy-paste terrain and you can resize maps.
02-06-2008, 03:32 PM#5
cohadar
How can I copy-paste terrain???
02-06-2008, 04:19 PM#6
Zandose
If I'm correct, select the brush to edit terrain (don't select any options to edit terrain; press ESC not edit), then using the mouse select one corner of the map and drag it to the other side highlighing the terrain, then press Ctrl+C to copy, open the new map, highlight again and press Ctrl+V to paste.

Edit: Same thing Strilanc said bit with more detail. Open the terrain editor then copy/paste the terrain from one map to another.

Edit2: As TaintedReality said (below), but also copy the doodads/destructibles object data first, and under the "Advanced" menu unselect "Reset Fixed Object Heights" if you have doodads/destructibles which have been elevated.
02-06-2008, 05:07 PM#7
Alevice
Didn't newgen had an option to import terrain and such?
02-06-2008, 05:24 PM#8
Zandose
Quote:
Originally Posted by Alevice
Didn't newgen had an option to import terrain and such?
Nope. It has a option to "Edit Tileset" which I assume is like the normal tile editor but lets to use more tiles like WE Unlimited.
02-06-2008, 05:45 PM#9
TaintedReality
Just copy/paste the terrain as zandose explained, then copy/paste all doodads and destructibles.
02-06-2008, 07:56 PM#10
Alevice
Quote:
Originally Posted by Zandose
Nope. It has a option to "Edit Tileset" which I assume is like the normal tile editor but lets to use more tiles like WE Unlimited.

From the grimex documentation:

Quote:
File Exporter

The File Exporter plugin simply exports all files inside a map to a specified folder. It will also rebuild the folder structure from inside the map in the specified target directory. That way the target directory can the again be used as the source directory for the File Importer plugin. This can be useful to copy the files from a system that is distributed through a demo map to your own map. For example one could export all contents of the Ultimate Terraining Map and import them all into a custom map using the File Importer and Object Merger plugins with just a few clicks. Or it can be used to copy the terrain, units, doodads, sounds, regions, or cameras from one map to another map.

To get all files extracted simply click Extensions\Export Files in the menu and select the target directory. This will essentially extract all files listed in the import manager, but also some internal files that contain special data. For each category of files the tool creates a separate subdirectory in the target directory, here's the list:

* Imports\ All imports from the import manager go here. The folder structure of those imported files is recreated within this directory and it can then be used as the input directory for the File Importer plugin to get the files into some other map.
* Constants\ If you have customized the gameplay constants, the game interface or the test map settings, then the files that contain this information are put here. The directory can be used as the input folder for the Constant Merger plugin to get these changes into other maps. The list here explains what each file does.
* Objects\ If you have used the object editor to customize units, abilites, items, buffs, upgrades, doodads or destructables, all these changes will be put into this directory. The directory can then be used as the input folder for the Object Merger plugin to get the changes into other maps. The list here explains more about the file extensions and their meaning.
* Triggers\ Trigger data, variables and custom text content from your map goes here. Later this directory can be used as the input folder for the Trigger Merger plugin to import the trigger data into other maps.
* Environment\ Other internal content from your map like the terrain, placed units and doodads, sound definitions from the sound editor, regions, cameras, the minimap and minimap preview will be put here. Each of them is put into a separate file and using the File Importer plugin, you can put them into other maps. The following list explains what each file contains.

* war3map.w3e terrain file
* war3map.shd shadows
* war3map.mmp icons for the minimap
* war3map.wpm pathing map
* war3map.doo placed doodads
* war3mapUnits.doo placed units and items
* war3mapMap.blp minimap image
* war3mapMap.tga alternate file name for the minimap image
* war3mapPreview.tga minimap preview image
* war3map.w3r region definitions
* war3map.w3c camera definitions
* war3map.w3s sound definitions

On a final note, all files that are used as input for the Object Merger, Trigger Merger or Constant Merger plugins should have been exported using this File Exporter plugin or by the export function of the WE before. That is because it takes care of inlinig TRIGSTR references when exporting the files, which prevents strings from getting lost when importing those files into other maps. If the files however had been exported using a normal MPQ viewer, the strings will not be inlined properly and may get lost. Also if you ever want to use the File Exporter in a vJASS external call, here's an example that exports all files to C:\MyMap:
Collapse vJASS:

//! external FileExporter C:\MyMap
02-06-2008, 08:11 PM#11
Zandose
*Bows to Alevice's greatness*
02-06-2008, 08:54 PM#12
Alevice
Quote:
Originally Posted by Zandose
*Bows to Alevice's greatness*

As you should.
02-07-2008, 03:17 AM#13
Nuclear Arbitor
so the guy behind can shoot u, kidding