Difference between revisions of "WGLOB.DAT"

From UFOpaedia
Jump to navigation Jump to search
m (Just formatting.)
Line 1: Line 1:
This file is only used by tactical saves.<br>
+
This file is only used by tactical saves. It stores the turn count, map dimensions, possibly the lighting, and information concerning kills and score.
<br>
+
 
Here is stored the turn count, map dimensions, possibly <br>
+
There are 22 values made of 2 bytes each. 44 bytes in total.
the lighting, and information concerning kills and score.<br>
+
 
<br>
+
== Structure ==
There are 22 values made of 2 bytes each. 44 bytes in total.<br>
+
 
<br>
+
<b>0/00</b> - Current turn * 2. First value of play is 2.
wglob[00] - Current turn * 2. First value of play is 2.<br>
+
 
wglob[01] - Current turn. First value of play is 1.<br>
+
<b>1/01</b> - Current turn. First value of play is 1.
wglob[02] - X dimension of map.<br>
+
 
wglob[03] - Y dimension of map.<br>
+
<b>2/02</b> - X dimension of map.
wglob[04] - Z dimension of map.<br>
+
 
wglob[05] - Values [2] and [3] multiplied together.<br>
+
<b>3/03</b> - Y dimension of map.
wglob[06] - Seems to be equal to wglob[4] - 1.<br>
+
 
wglob[07] - ?Unknown? Probably something to do with lighting.<br>
+
<b>4/04</b> - Z dimension of map.
wglob[08] - ?Unknown? Can change during play of the map.<br>
+
 
wglob[09] - Alien units killed.<br>
+
<b>5/05</b> - Values [2] and [3] multiplied together.
wglob[10] - X-Com soldiers lost.<br>
+
 
wglob[11] - X-Com tanks lost.<br>
+
<b>6/06</b> - Seems to be equal to wglob[4] - 1.
wglob[12] - Score for killing Aliens.<br>
+
 
wglob[13] - Score for losing X-Com units. A negative value.<br>
+
<b>7/07</b> - ?Unknown? Maybe something to do with lighting.
wglob[14] - Civilians killed by Aliens.<br>
+
 
wglob[15] - Civilians killed by X-Com.<br>
+
<b>8/08</b> - ?Unknown? Can change during play of the map.
 +
 
 +
<b>9/09</b> - Alien units killed.
 +
 
 +
<b>10/0A</b> - X-Com soldiers lost.
 +
 
 +
<b>11/0B</b> - X-Com tanks lost.
 +
 
 +
<b>12/0C</b> - Score for killing Aliens.
 +
 
 +
<b>13/0D</b> - Score for losing X-Com units. A negative value.
 +
 
 +
<b>14/0E</b> - Civilians killed by Aliens.
 +
 
 +
<b>15/0F</b> - 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|option.dat]] is used if a new tactical combat is initiated.
 
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|option.dat]] is used if a new tactical combat is initiated.

Revision as of 03:16, 17 June 2006

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