Debug Viewer

From WiCWiki

Revision as of 13:56, 16 December 2007 by plucked (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

The Debug viewer and how we make it work

The Debug Viewer is one of the things I really can’t explain how I survived without before we got it. It is an in game debug tool and it can give you information about almost everything we use in the game from groups to reactions, actions and AI. We also use it to make objectives cameras. It will appear in the upper left corner and is displayed as text.


Before you can activate the debug viewer you have to make sure that you have the”wic_viewer.py” in the wic roots python folder (not the map specific ones).


Start the game with –console in the target bar in the wic.exe properties.

C:\wic\WIC.exe –console. Open the console by pressing the button right next to “1” and above the tab button (I know this button probably have a name or five, but there is, as you probably know, no keyboard standards. http://en.wikipedia.org/wiki/Keyboard_layout )

Write py import wic_viewer and press enter. Then write py wic_viewer.TogglePyViewer() and press enter. Now the debug viewer will start.


To make it a bit easier you can bind a key to show and hide the viewer. You do this in the wicautoexec.txt file. It is in the \Documents and Settings\user name\My Documents\World in Conflict\


Write the following text in the wicautoexec.txt file:


py import wic_viewer

bind ctrl+q py wic_viewer.TogglePyViewer()


Now you can show/hide the viewer by pressing ctrl+q.


To navigate in the viewer you can use the mouse or the arrow keys, if it is a long list you can scroll in it by using the page up and page down keys. Pressing the home key will take you to the top of the list.


Settings

You can switch the settings on and of by clicking the one you want to switch with the mouse or by pressing the enter key.

Image:DebugViewer_001.jpg


GroupAutoSelection – Selects a chosen units group in the group list.

GroupNameAutoView – Shows the chosen units group name.

ShowCommands – Shows added commands.

ShowWatches – Shows added watches.

ShowStrings – Shows added strings.

ShowSystemInfo (we will cover this later)

ShowObjectiveCamera (we will cover this later)

ShowGroups (we will cover this later)

ShowReactions (we will cover this later)

ShowActionQueues (we will cover this later)

ShowInstances (we will cover this later)

ShowAreas (we will cover this later)

ShowUnits (we will cover this later)

ShowPlatoons (we will cover this later)

ShowAI (we will cover this later)

ShowServerplay (we will cover this later)

ShowClient (we will cover this later)

ShowServer (we will cover this later)

ShowAreaEditor (we will cover this later)

ShowCiviliansEditor - unsupported

ShowHighCivilians - unsupported

ShowRoofCivilians - unsupported

ShowGroundCivilians - unsupported



System Info

Show some basic information about groups and reactions. This is activated from the ShowSystemInfo option in the settings menu.

Image:DebugViewer_002.jpg

CurrentNrOfReactions – This setting shows how many reactions there are at the moment.

CurrentNrOfGroups – This setting is for how many groups there are at the moment.

CurrentNrOfRefillerGroups – This setting shows how many refill groups there are.

CurrentNrOfUnits – This setting shows how many units there are that are in a group.

AverageGroupUpdateDelay – This setting shows how long delay there is between every groups update.

LastGroupUpdateDelay – This setting shows the average update time, in seconds, for the previous group to be updated.

AlternativeMode – If you are in the alternative reaction system.

NrOfBadTimers – How many bad timers there is.

UnitSanityCheck – If all units are ok.

SwitchSystem – Switch between primary and alternative reaction system.


Objective Cameras

We will cover this in detail in the chapter about Objective Cameras. This is activated from the ShowObjectiveCamera option in the settings menu.


Groups

List all groups that are in the group manager. This is activated from the ShowGroups option in the settings menu. If you have a group selected you vill have a list with this information.

Image:DebugViewer_003.jpg

RealSize – Shows info about how many units there are in the group. Units on their way will count.

myUnits – If “Show Units” is activated under settings here will be a list for each unit in the group, their ID, the Squad ID, owner, the team and their type.

myOwner – The group owner.

myTeam – The groups team.

myRefillGroups – List the groups refill groups.

myParentGroup – If you have a refill group selected, this will show to which group it belongs.

myState – Will show information about any state the group have. Else the default value”noState” will show.

BHB – Shows the selected groups Base behavior.

BHA – Shows the selected groups Attack behavior.

Refill – Will show true/false if the group is a group with a refill mode.

Passive – Will show true/false if the group is passive/active.

Platoons – If “show platoons” is activated in settings here will be a list with any possible platoon the group is added to.


AI – Will show if the selected group is controlled by an AI player, true or false.

If you expand the AI option you will see this.
Id – Shows the AIs ID.
IsEnabled – If the selected group have an enabled AI true or false.
CurrentCommand – Will show what current commandos the AI have.
Groups – List the groups which are controlled by the AI.
ToggleDebugOutput – Unsupported at the moment.


Formation – Show which formation the group has or the default line formation.

PrimaryCommands – Show which commands have been posted to the group.

AttackCommands – Show the commands the attack behavior posts.

BaseCommands – Show the commands the base behavior posts.

RefillCommands – List the groups refill commands.


Reactions

List all reactions in the reaction manager. This is activated from the ShowReactions option in the settings menu.


Action Queues

This is activated from the ShowActionQueues option in the settings menu.

This lists all queues both normal and rogue. You can see which queue are currently being executed, the current action and queues that will be executed. It will show detailed information about which part of the queue currently being executed.


Instances

This is activated from the ShowInstances option in the settings menu.

This lists all instances that have been used for example areas and command points.


Areas

This is activated from the ShowAreas option in the settings menu.

List all python areas that have been created.


ShowUnits – Must be activated if you want the information in “myUnits” (Listed under the “Groups” part, previous in this chapter).

ShowPlatoons – Must be activated if you want the information in “myPlatoons” (Listed under the “Groups” part, previous in this chapter).


Serverplay

This is activated from the ShowServerPlay option in the settings menu.

Show functions from the map folders serverplay.py file that contains ”Cine” or ”Start” in their name. Right click or press enter on a cinematic if you want it to be played.


Client

This is activated from the ShowClient option in the settings menu.

Show all objective cameras from the client.py file. Right click or press enter on a camera if you want it to be played.


Server

This is activated from the ShowServer option in the settings menu.

Show all functions with “setup” in their names from the server.py file. Right click or press enter if you want the function to be executed.


AreaEditor

This is activated from the ShowAreaEditor option in the settings menu.


CreateNewArea – Create a new area. The area will be created at your pointers current position
SaveAreas – Saves all areas you have created in wic\maps\mapName_saved_areas.txt
UpdateAreas – Adds the areas from the save file to the “Area__” list below.
Area__Number / Your area name - Selected area to edit.
If you expand the Area__Number option you will see this.
Remove – Remove the selected area.
Update – Move the selected area to the pointers current position.
Pos() – Prints the selected areas position.
Radius – The selected areas radius. Edit the radius with the right and left arrow keys.


CommandPoints – unsupported.

CreateNewCP – unsupported.

SaveCP – unsupported.

Civilians - unsupported


Chapter 13: Tactical Aid < > Chapter 15: Objective Cameras
Personal tools
User Created Content