Jump to content

WGLOB.DAT: Difference between revisions

From UFOpaedia
m See Also: Category
No edit summary
Line 13: Line 13:
wglob[05] - Values [2] and [3] multiplied together.<br>
wglob[05] - Values [2] and [3] multiplied together.<br>
wglob[06] - Seems to be equal to wglob[4] - 1.<br>
wglob[06] - Seems to be equal to wglob[4] - 1.<br>
wglob[07] - Unknown. Probably something to do with lighting.<br>
wglob[07] - ?Unknown? Probably something to do with lighting.<br>
wglob[08] - Unknown. Can change during play of the map.<br>
wglob[08] - ?Unknown? Can change during play of the map.<br>
wglob[09] - Alien units killed.<br>
wglob[09] - Alien units killed.<br>
wglob[10] - X-Com soldiers lost.<br>
wglob[10] - X-Com soldiers lost.<br>
Line 22: Line 22:
wglob[14] - Civilians killed by Aliens.<br>
wglob[14] - Civilians killed by Aliens.<br>
wglob[15] - Civilians killed by X-Com.<br>
wglob[15] - Civilians killed by X-Com.<br>
wglob[16] - Unknown. Always seems to be 4.<br>
 
wglob[17] - Unknown. Always seems to be 3.<br>
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.
wglob[18] - Unknown. Always seems to be 3.<br>
wglob[19] - Unknown. Always seems to be 3.<br>
wglob[20] - Unknown. Always seems to be 3.<br>
wglob[21] - Unknown. Always seems to be 1.<br>


==See Also==
==See Also==
* [[Saved Game Files]]
* [[Saved Game Files]]
* [[Saved_Game_Files#Battlescape_Files|Battlescape Files]]
* [[Saved_Game_Files#Battlescape_Files|Battlescape Files]]
* [[Saved_Game_Files#Missdat_Files|Missdat Files]]

Revision as of 01:04, 14 June 2006

This file is only used by tactical saves.

Here is stored 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.

wglob[00] - Current turn * 2. First value of play is 2.
wglob[01] - Current turn. First value of play is 1.
wglob[02] - X dimension of map.
wglob[03] - Y dimension of map.
wglob[04] - Z dimension of map.
wglob[05] - Values [2] and [3] multiplied together.
wglob[06] - Seems to be equal to wglob[4] - 1.
wglob[07] - ?Unknown? Probably something to do with lighting.
wglob[08] - ?Unknown? Can change during play of the map.
wglob[09] - Alien units killed.
wglob[10] - X-Com soldiers lost.
wglob[11] - X-Com tanks lost.
wglob[12] - Score for killing Aliens.
wglob[13] - Score for losing X-Com units. A negative value.
wglob[14] - Civilians killed by Aliens.
wglob[15] - 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