Difference between revisions of "LOC.DAT"
(As per my recent tests, offset 0 is indeed a landed UFO.) |
(speculation on offset 16, 0 in offset 0 is definately for unused entries) |
||
Line 4: | Line 4: | ||
'''00:''' Object type: | '''00:''' Object type: | ||
− | + | 00 - Unused entry | |
− | 00 - | ||
− | |||
− | |||
01 - Alien Ship | 01 - Alien Ship | ||
02 - X-Com Ship | 02 - X-Com Ship | ||
Line 34: | Line 31: | ||
'''10:''' Something to do with visibility, not really sure however. | '''10:''' Something to do with visibility, not really sure however. | ||
+ | Possible bit field? --[[User:Pi Masta|Pi Masta]] 16:55, 13 March 2007 (PDT) | ||
+ | bit | ||
+ | 2 (value 4) seen this change on alien crafts when I targeted it for the first time | ||
+ | 1 (value 2) Alien craft always have this flagged, for Xcom craft 0 - At base or patrolling, 1 - Moving (moving bit field?) | ||
+ | 0 (value 1) not visible/detected field, 0 - visible, 1 - not visible | ||
'''11-13:''' NEED HELP | '''11-13:''' NEED HELP |
Revision as of 23:55, 13 March 2007
Ripped from Hatfarm / Chris Voss's great pages
LOC.DAT: Each entry is 20 bytes long (most of this info is from NKF, thanks a lot)
00: Object type:
00 - Unused entry 01 - Alien Ship 02 - X-Com Ship 03 - X-Com Base 04 - Alien Base 05 - Crash Site 06 - Landed UFO 07 - Waypoint 08 - Terror Site
01: Object table reference - Possible values - 00 to FF - Just a reference. This just shows how many there are of this type on the geoscape. (UFOs and X-COM craft are both type ship and will both increment this number.) This is used for determining base number, for use in other files.
02-03: Horizontal starting coordinates (low bit then high bit respectively). I'm not sure of possible values, changing them moves it around the map.
04-05: Vertical starting coordinates (low bit then high bit respectively). I'm not sure of possible values, changing them moves it around the map.
NOTE: Ships don't land on the exact place that the alien ship is, that's why there will be discrepancies between the alien and x-com ship destination info.
06-07: Horizontal destination coordinates (low bit then high bit respectively). I'm not sure of possible values, changing them moves it around the map.
08-09: Vertical destination coordinates (low bit then high bit respectively). I'm not sure of possible values, changing them moves it around the map.
0A-0B: Appears to be the 'count suffix' of the item, eg: Skyranger-1 or Crash Site-47. It appears to have no meaning for XCOM Bases, but for other types where it is set, the next byte (0B) always seems to be 0, and is probably the high byte but I've never gotten over 255 UFO's or crafts to test this. --Pi Masta
0C-0F: NEED HELP
10: Something to do with visibility, not really sure however.
Possible bit field? --Pi Masta 16:55, 13 March 2007 (PDT) bit 2 (value 4) seen this change on alien crafts when I targeted it for the first time 1 (value 2) Alien craft always have this flagged, for Xcom craft 0 - At base or patrolling, 1 - Moving (moving bit field?) 0 (value 1) not visible/detected field, 0 - visible, 1 - not visible
11-13: NEED HELP
NOTE: Other files (e.g., CRAFT.DAT) reference the entry number for the base. For example, if the value is 0A then that base is in entry 10 of this file.
See Also
- BASE.DAT - Contains information about Xcom bases
- CRAFT.DAT - Contains information on the crafts
- GEODATA.DAT - Contains information about what crafts and terrain a battle should use
- WORLD.DAT - Defines the zones and terrain on the globe
- Saved Game Files