User Guide

75
DEBUGGING
During the course of developing a map, you may discover problems with it. Textures can get blended poorly,
objects can get misplaced, scripts can acquire bugs, and designers can get confused. The following chapter
offers some basic suggestions for how to debug problems with your maps and their scripts.
DEBUGGING OBJECTS
SELECTING DUPLICATE OBJECTS
When you copy an object and then paste it, the new object is pasted on top of the original one. Looking at
the two objects, you see one image. If you forget about the object, you can end up with duplicate objects.
Use this command to select objects on top of each other. It selects the top instance of every object that has
a duplicate on the map. From time to time, you should select duplicate objects to locate these errors.
To select duplicate objects in your map, choose SELECT DUPLICATE OBJECTS from the Edit menu.
FINDING LOST OBJECTS
Have you misplaced an object? If so, you can use the Select Similar tool to select items of the same class. When
a building is selected, for example, apply the Select Similar tool to select each building on the map. You can use
this tool to select for all types across the entire map. For more information,
Select Similar on p. 16.
If you have a mouse wheel, you can use it to rotate the camera to other perspectives, which may reveal
smaller objects hidden behind larger one.
Additionally, you can scan through the Layers List to search for the missing item.
To reveal each layer in the Layers List, right-click on the icon next to the layer. Then, deselect HIDE
CURRENT LAYER. Check the map to see if the missing object is revealed.
FIXING TEAMS
If you delete a player from the Player List for your map, any units or structures that were assigned to the
player now have invalid associations. They belong to no team.
You can fix teams in two ways:
To let the application fix teams as best as it can, select FIX TEAMS from the Validation menu.
When the application fixes teams, it assigns unaligned units and structures to the remaining teams in the
map. However, if a Chinese MiG airfield is assigned to the GLA, for example, then the GLA side now has air
power, which could reshape the balance of power in the map. It’s much better to try to identify unaligned
units and structures and then to manually assign them to teams.
To manually assign units to team, choose SELECT BAD TEAM OBJECTS from the Edit menu. All objects
that have invalid team assignments are selected. You can then fix them manually.
To fix a unit’s team, select the unit. In the Object Properties window, select a new team from the drop-
down list. The unit has been re-assigned.