GUEdit3.6 alpha by GoldenUrg

Installation:
You'll need to extract this zip into a directory. Make sure the MPQ2K subdirectory is created
with the files mpq2k.exe storm.dll lmpqapi.dll and staredit.exe.

I assume you've downloaded the Java Runtime 1.2 (JRE 1.2). If not, go to www.javasoft.com or
http://gu.campaigncreations.com/files.shtml to get it.

Install that.

Now double-click the GUEdit.jar file.

A menu will appear. (Version of appearance)

Load - Load a map file (either MPQ (SCM or SCX) or raw (CHK) formats)

Protect - Enter your name and e-mail then click protect. You'll need to save 
the map, preferrably with a new name. (1.0)

Change Terrain Type - Only works on Broodwar maps. Converts between Jungle, 
Ice, Twilight, and Desert. The conversion isn't perfect. Doodads don't convert
correctly. Open the map in StarEdit and fix the problems before playing. (1.1)

Set Upgrades - Sets the upgrade min and max for multi-upgradeable upgrades. (2.3)

Edit Costs - Change the ore/gas/time/energy costs by a percentage. (2.3)

Add MPQ Wave... - This adds a wave file name to the list of wavs. StarEdit can't 
actually handle this so the feature is useless. (3.2)

Change Player Colors - Broodwar maps only. Allows you to set the color of
each of the players. Works for Melee as well as UMS. Some colors crash 
StarCraft. All color numbers are decimal (not hex). (1.1)

Edit Terrain... - This starts the terrain editor (See Below) (3.0)

Store Terrain - This ends the terrain editing (See Below) (3.3)

Repair Location Bug - This fixes a bug in maps that crashes StarEdit. This 
function deletes locations in the map that are corrupted by this bug. (2.2)

Load Triggers - Read the map triggers from a file. This file is the same 
format as save triggers. The locations and switch names must already exist
in the map. Strings can be created. Errors in import are saved to a file
errors.txt otherwise the existing triggers are replaced by the imported ones. (2.0)

Save Triggers - Write the existing triggers to a text file for viewing or
editing. (1.2)

Copy Sections - Load a second map and replace sections from the open map with
sections from the second map. (2.1)

Save CHK - Write out the raw map file. This is faster to load than an MPQ map
file and can be hex edited, if technical expertise permits. (1.1)

Save - Write out an MPQ format map file (SCM or SCX). This format is used by
StarCraft.

Quit - Exit the program.

GoldenUrg

GoldenUrg@iname.com

Troubleshooting:
MPQ2K should extract to a subdirectory called MPQ2K.
   If your zip extraction does not do this move all the .dll and .exe files into this directory.

Version History:
1.0beta: First release.
beta2: The GUEdit.bat was fixed. Also it now attempts to find Java if the path is not set.
beta3: Fixed bug that prevented opening or saving files with spaces or file in different directories.
1.1beta: Added change tileset and change player colors. The GUEdit1.0beta.jar is no longer needed.

Alpha Versions:

Issues:
Always Display is not checked on text.
Failed trigger loading corrupts existing triggers.
Disabled conditions and actions are included as normal.
Trigger flags are not created like StarEdit (does this matter?)

Things to note:
Locations must exist in map.
Switches with names must exist in map.
Names must match exactly (possibly including case).
Trigger text after colon(:) and not is quotes('') is ignored and may be omitted.
Pound (#) starts a comment line. 
All lines must be correct or no triggers will be changed. (See issue above)
Create unit with properties specifies the property as a number (editing this is not recommended).
AI scripts are displayed with internal codes instead of names.

Version 1.2a:

Bugs:
Read trigger errors scroll off the console window.

Things to add:
A window to display the read error messages.

Version 1.2a2:

Changes:
Read trigger error messages are written to a file errors.txt in the GUEdit directory.

Bugs:
Switch 1 does not work. Other switches?

Version 1.2a3:

Changes:
Fixed Switches bug.

Version 1.2a4:

Changes:
Fixed save bug introduced in 1.2a3
Added load/save CHK feature.

Version 2.0a3:

Changes:
Fixed path problem in zip file.

Version 2.0a4:

Changes:
Display text messages now load from triggers with always display checked. 
This should be what most people want. I'll eventually get to making this an option.

Version 2.1a1:

Changes:
Added copy sections function.

Version 2.2a1:

Changes:
Added Repair Location Strings function.

Version 2.2a2:

Changes:
Fixed String encoding problem with high ascii chars.

Version 2.2b1:

Changes:
Fixed name for Terran Medic

Version 2.3a1:

Changes:
Added Set Upgrades and Edit Costs.

Version 2.3a2:

Changes:
Added Technologies to the costs and included energy cost.

Version 2.3a2:

Changes:
Added a message explaining the use of name and e-mail for protect.

Version 3.0pre-alpha:

Changes:
Added a terrain editor (does not save).

Version 3.1pre-alpha:

Changes:
Fixed MOVE LOCATION action to display locations in correct order.
WARNING: If you saved a trigger file from a previous version of GUEdit with
   this action you'll need to fix the order of the locations.

Version 3.2pre-alpha:
Add Sounds without Size feature which does not seem to work.

Version 3.3pre-alpha:
Add Save Terrain.

Terrain Editing:
Invoke the terrain editor by using the "Edit Terrain..." button.
This may take a while to load the terrain data.
The save button will be greyed out.

Two windows will pop up:
Map Window - this contains the starcraft view of your map.
Tiles Window - this contains the complete set of tiles for the tileset.

To edit click a tile in the Tiles window, then click a location in the map
window. The new tile should appear.

To finish editing:
Close the map or tiles window (both will close).
Click the Store Terrain button.
The save button will ungrey.
Select save to save your map.
Note: This only edits the StarCraft view of your map. Using StarEdit will
revert the terrain to it's previous state (just like player colors).

Version 3.4pre-alpha:
Fixed message for other protections.

Version 3.5pre-alpha:
Fixed error message from cancelling Copy Sections file open.

Version 3.6alpha:
Fixed error loading certain tilesets.
Added StarCraft installation directory select.

It will now prompt you for the StarCraft.exe file, we first time the terrain
editor is invoked. Select your StarCraft.exe file.

