WGLOB.DAT

From UFOpaedia
Revision as of 23:46, 7 February 2007 by Pi Masta (talk | contribs) (→‎See Also: added category)
Jump to navigation Jump to search

This file is only used by tactical saves. It stores the turn count, map dimensions, possibly the lighting, and information concerning kills and score.

There are 22 values made of 2 bytes each. 44 bytes in total.

Structure

0/00 - Current turn * 2. First value of play is 2.

1/01 - Current turn. First value of play is 1.

2/02 - X dimension of map.

3/03 - Y dimension of map.

4/04 - Z dimension of map.

5/05 - Values [2] and [3] multiplied together.

6/06 - Seems to be equal to wglob[4] - 1.

7/07 - ?Unknown? Maybe something to do with lighting.

8/08 - ?Unknown? Can change during play of the map.

9/09 - Alien units killed.

10/0A - X-Com soldiers lost.

11/0B - X-Com tanks lost.

12/0C - Score for killing Aliens.

13/0D - Score for losing X-Com units. A negative value.

14/0E - Civilians killed by Aliens.

15/0F - Civilians killed by X-Com.

The remaining 6 values are of the same use as those in the mission data option file. They are loaded with the save game, whereas option.dat is used if a new tactical combat is initiated.

See Also