Difference between revisions of "OBDATA.DAT"

From UFOpaedia
Jump to navigation Jump to search
m
(→‎Structure: -- Tidy Up --)
Line 12: Line 12:
 
<b>0-19:</b> Name of object. Delimited by a null character. Note: These are internal "working" names. They all make sense, but are not the standardized names displayed in the game.
 
<b>0-19:</b> Name of object. Delimited by a null character. Note: These are internal "working" names. They all make sense, but are not the standardized names displayed in the game.
  
'''20:''' BIGOBS.PCK reference
+
'''20:''' [[BIGOBS.PCK]] reference
  
'''21:''' FLOOROB.PCK reference
+
'''21:''' [[FLOOROB.PCK]] reference
  
'''22:''' Weapon Strength (Same as seen in UFOpaedia)
+
'''22:''' Average Weapon Strength (Same as seen in UFOpaedia)
  
 
'''23:''' Item Weight? See [43] - could one be thrown weight, and the other inventory weight?
 
'''23:''' Item Weight? See [43] - could one be thrown weight, and the other inventory weight?
  
'''24:''' X Size (width)
+
'''24:''' Inventory X Size (width)
  
'''25:''' Y Size (height)
+
'''25:''' Inventory Y Size (height)
  
 
'''26-28:''' Look-up within OBDATA for ammo this weapon uses. Up to three types possible; 255 for no (more) ammo. Note that ammo always directly follows its weapon in this file.
 
'''26-28:''' Look-up within OBDATA for ammo this weapon uses. Up to three types possible; 255 for no (more) ammo. Note that ammo always directly follows its weapon in this file.
  
'''29:''' HANDOB.PCK reference
+
'''29:''' [[HANDOB.PCK]] reference
  
 
'''30:''' Same as 29
 
'''30:''' Same as 29
  
'''31:''' Damage Type
+
'''31:''' Ammo Damage Type
    0 AP
+
  0 AP
    1 IN
+
  1 IN
    2 HE
+
  2 HE
    3 Laser
+
  3 Laser
    4 Plasma
+
  4 Plasma
    5 Stun
+
  5 Stun
  255 Weapon which needs ammo / "Not Applicable"
+
255 ''Not Ammo''
  
 
'''32:''' Accuracy, Auto
 
'''32:''' Accuracy, Auto
Line 51: Line 51:
 
'''37:''' TUs Used, Aimed
 
'''37:''' TUs Used, Aimed
  
'''38:''' Several values seen; possibly only clip size counts:
+
'''38:''' Clip Size. Except in the following:
  
  Rounds  Clip size if is ammo ([49] set)
+
  0 All Corpses/Electroflare/Mind probe
    0     All corpses and the electroflare and mind probe
+
  8 Pistol
    8     Standard pistol (not its clip!)
+
  65 Stun Rod
    65     Stun rod! hmm
+
  10 ''Everything else...''
    10     All other objects/weapons
 
  
'''39:''' All corpses are 0 and everything else is 8 except:
+
'''39:''' Possibly Melee-related Stat??
  0 Plasma pistol clip
+
  0 All Corpses
  5 Stun rod
+
  0 Plasma Pistol Clip
  9 Pistol and its clip
+
  5 Stun Rod
 +
  9 Pistol and Pistol Clip
 +
  8 ''Everything else...''
  
'''40:''' All corpses 0 and everything else 100 except the three plasma clips and electroflare are also 0.
+
'''40:''' Possibly Melee Accuracy??
 +
  0 All Corpses
 +
  0 Electroflare
 +
  0 Plasma Weapon Clips
 +
100 ''Everything else...''
  
'''41:''' All corpses 0 and everything else 50 except the three plasma clips and electroflare are also 0, and the stun rod is 30.
+
'''41:''' Possibly Melee Strength??
 +
  0 All Corpses
 +
  0 Electroflare
 +
  0 Plasma Weapon Clips
 +
  30 Stun Rod
 +
  50 ''Everything else...''
  
 
So a summary of 39 to 41 looks like this:
 
So a summary of 39 to 41 looks like this:
  
 
   <u>39</u>  <u>40</u>  <u>41</u>  <u>Objects</u>
 
   <u>39</u>  <u>40</u>  <u>41</u>  <u>Objects</u>
     0    0    0  All corpses (33 objects) plus the plasma pistol clip(?!)
+
     0    0    0  All Corpses/Plasma Pistol Clip
     5  100  30  Stun rod
+
     5  100  30  Stun Rod
     8    0    0  Two plasma clips (rifle and heavy) and electroflare
+
     8    0    0  Plasma Rifle Clip/Heavy Plasma Clip/Electroflare
     8  100  50  Everything else (34 objects)
+
    9  100  50  Pistol/Pistol Clip
    9  100  50  Pistol and its clip
+
 +
     8  100  50  ''Everything else...'' (34 objects)
  
 
'''42:''' Explosive strength needed to [[Explosions#Equipment_Destruction|destroy object]]
 
'''42:''' Explosive strength needed to [[Explosions#Equipment_Destruction|destroy object]]
Line 82: Line 93:
  
 
'''44:''' Grenade Type
 
'''44:''' Grenade Type
  1  Grenade, Alien Grenade, Hi-Ex
+
  1  Grenade, Alien Grenade, High Explosive
  2  Prox
+
  2  Proximity Grenade
  3  Smoke
+
  3  Smoke Grenade
  
 
'''45:''' Maybe an abandoned bit field, all except the Elerium tick?:
 
'''45:''' Maybe an abandoned bit field, all except the Elerium tick?:
  
  0 All corpses and many human objects, including weapons and ammo
+
0 All corpses and many human objects, including weapons and ammo
  1 All alien weapons and ammo but also several common human ammos and the pistol
+
1 All alien weapons and ammo but also several common human ammos and the pistol
  4 Elerium - wtf?
+
4 Elerium
  
'''46:''' Boolean: Is Weapon That Shoots. 13 total. Still counts if ammo is built-in (i.e., lasers). Is not set for ammo, grenades, stun rod, etc.
+
'''46:''' Boolean: Is Weapon That Shoots?
  
'''47:''' Boolean: Is Weapon. Same as [46] plus Stun rod.
+
'''47:''' Boolean: Is Weapon?
  
'''48:''' Boolean: Is Non-Waypoint Shot Weapon (Boolean). Same as [46] except for Blaster.
+
'''48:''' Boolean: Is Non-Waypoint Weapon?
  
'''49:''' Boolean: Is Ammo. All 16 types. Not set for grenades, lasers, etc.
+
'''49:''' Boolean: Is Ammo?
  
'''50:''' Boolean: Is Two-Handed Weapon. Includes probably garbage such as some (but not all) corpses and the Mind Probe.
+
'''50:''' Boolean: Is Two-Handed Weapon?
  
'''51:''' Boolean: Is Blaster Launcher
+
'''51:''' Boolean: Is Blaster Launcher?
  
'''52:''' Boolean: Is Alien
+
'''52:''' Boolean: Is Alien?
  
'''53:''' [[Scoring (UFO Defense)|Scoring]] points. However, Elerium is zero - is bit from [45] used for its special mission result?
+
'''53:''' [[Scoring (UFO Defense)|Scoring]] points (except for Elerium which works per 50 units)
 
 
Elerium scores 5pts per 50 units, so byte [45] can't be it. --[[User:Danial|Danial]] 06:16, 1 Nov 2005 (PST)
 

Revision as of 05:32, 3 November 2005

General Notes

OBDATA.DAT is found in GEODATA and contains general information on objects found in the game.

There are 80 entries, each of which are 54 bytes long. It is 4,320 bytes long.

33 entries are for corpses, which includes 4 entries (quarters) for large corpses, including tanks. Otherwise there are 41 "object" entries, and 6 obsolete/unused entries.

Values are presented according to offset (0 to 53) in bold.

Structure

0-19: Name of object. Delimited by a null character. Note: These are internal "working" names. They all make sense, but are not the standardized names displayed in the game.

20: BIGOBS.PCK reference

21: FLOOROB.PCK reference

22: Average Weapon Strength (Same as seen in UFOpaedia)

23: Item Weight? See [43] - could one be thrown weight, and the other inventory weight?

24: Inventory X Size (width)

25: Inventory Y Size (height)

26-28: Look-up within OBDATA for ammo this weapon uses. Up to three types possible; 255 for no (more) ammo. Note that ammo always directly follows its weapon in this file.

29: HANDOB.PCK reference

30: Same as 29

31: Ammo Damage Type

  0 AP
  1 IN
  2 HE
  3 Laser
  4 Plasma
  5 Stun
255 Not Ammo

32: Accuracy, Auto

33: Accuracy, Snap

34: Accuracy, Aimed

35: TUs Used, Auto

36: TUs Used, Snap

37: TUs Used, Aimed

38: Clip Size. Except in the following:

  0 All Corpses/Electroflare/Mind probe
  8 Pistol
 65 Stun Rod
 10 Everything else...

39: Possibly Melee-related Stat??

  0 All Corpses
  0 Plasma Pistol Clip
  5 Stun Rod
  9 Pistol and Pistol Clip
  8 Everything else...

40: Possibly Melee Accuracy??

  0 All Corpses
  0 Electroflare
  0 Plasma Weapon Clips
100 Everything else...

41: Possibly Melee Strength??

  0 All Corpses
  0 Electroflare
  0 Plasma Weapon Clips
 30 Stun Rod
 50 Everything else...

So a summary of 39 to 41 looks like this:

  39   40   41   Objects
   0    0    0   All Corpses/Plasma Pistol Clip
   5  100   30   Stun Rod
   8    0    0   Plasma Rifle Clip/Heavy Plasma Clip/Electroflare
   9  100   50   Pistol/Pistol Clip

   8  100   50   Everything else... (34 objects)

42: Explosive strength needed to destroy object

43: Item Weight

44: Grenade Type

1  Grenade, Alien Grenade, High Explosive
2  Proximity Grenade
3  Smoke Grenade

45: Maybe an abandoned bit field, all except the Elerium tick?:

0 All corpses and many human objects, including weapons and ammo
1 All alien weapons and ammo but also several common human ammos and the pistol
4 Elerium

46: Boolean: Is Weapon That Shoots?

47: Boolean: Is Weapon?

48: Boolean: Is Non-Waypoint Weapon?

49: Boolean: Is Ammo?

50: Boolean: Is Two-Handed Weapon?

51: Boolean: Is Blaster Launcher?

52: Boolean: Is Alien?

53: Scoring points (except for Elerium which works per 50 units)