|
ShockEd Automaps - Zygoptera
Introduction
The original files available with either Shock2 or Thief2
are an invaluable resource- They may be found in
..\intrface.crf\ LevelName\ language\.. as a series of graphics
files and .bin files. If something I've written confuses then try looking at
them as they may help to illustrate what I'm trying to say.
Making a Basic Map
suggested method:
- Enlarge top-down view in ShockEd by dragging the sliders
- Select filter and remove lights, objects and rooms.
- Zoom out until the map fits onto screen
- Use a screen capture program to take a snapshot
- Make walls and blank spaces one colour each. It is probably sensible to
resize the image at this point so that it fits the map parameters
- Erase non-space defining walls.
- End image size should be 614x260x8bit. Larger or smaller size will work,
but with problems
- Save file as Page001.pcx and place in path
..\sshock2\intrface\english\MyMisName. If making an automap save as
Page001a.pcx
For a really basic map, and if you do not want it to be
an automap this should be enough. Getting to this point should take about an
hour, depending on competence with the paint programs and size of the level.
A few notes and observations on making the basic map:
- If you want to make an automap it is important to resize the map to its
correct size at the right time. Writing and thin walls especailly may scale
oddly or be lost
- Palette entry #1 is the transparent colour, which in PSP defaults to pure
black. If the "no map data" shows up through your map this is the probable
reason.
- For insets, use area brushes first to isolate the area for the inset and
then use screen capture. It is best to keep all screenshots to the same scale,
especially if an automap is planned.
- Use the same palette for all files in each folder
Making an Automap
- If you find that your level is orientated the wrong way relative to the
automap there is a "map rotate hack" under the mission parameters of the
editor menu.
- Make named room brushes, typically by opening up the object hierachy,
selecting rooms from the dd menu, clicking on default room and then new,
naming them and clicking create. Each new subtype defines an automap area
- Make a "blank" version of the basic map. Save as Page001.pcx
- Complicated, see examples
- Draw boxes around automap sections as defined by the rooms
(alternatively define the rooms based on the automap) using palette entry
254. Best to edit the palette so that colour 254 is an obvious colour,
typically either bright green or pink. I used bright yellow.
- Fill in the section around the "map parts" with palette entry 1, which
makes the surrounding areas transparent.
- The fill must go over any bits of the map which are outside the
appropriate automap section.
- The boxes may not overlap

- Save as p001ra.pcx
- Repeat steps until all automap sections are defined. Save file as
p001ra/b/c.. sequentially.
- Run cutout.exe from the LGS mapping tools (available in the Resources section of ShockEd Central) from either
the run dialog or DOS box with the usage "cutout p001ra.pcx ..", with all the
p001r_ you made listed after p001ra.
- Run makerect.exe (also in LGS mapping tolls) with the same usage.
- To make the areas light up as you enter them copy p001ra.bin (made by
makerect) and rename to p001xa.bin. Then copy all the files generated by
cutout.exe (p001r000.pcx etc.) change as desired and rename to p001x000.pcx)
- Add the property gamesys..map loc to the rooms of your level and number
them equivalently to the cutout generated versions, for example p001r004 would
be map loc 4.
Getting the automap to work
- In ShockEd, create two markers at obvious positions, but not in inset
areas
- Find the marker's place on the automap graphic and note their x,y
coordinates (at bottom right in PSP for example)
- Give the two markers the property obj..map ref info and enter the x,y
coordinates into them. Set frame to -1
- To get insets to work, create a single marker in each and give it the map
ref info property. Fill in the x,y as appropriate from the graphic and set the
frame# to the same as the room number of the inset.
This should give a
working automap and allow the player cursor to appear. There are also several
Thief based tutorials available at DromEd Central, though not all information is
relevant to Shock.
|