PROJECT.DAT

From UFOpaedia
Revision as of 20:14, 11 August 2006 by Zaimoni (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

(Zaimoni: This records some working notes. This should be reformatted more conventionally at some point.)

Assuming the usual "brute listing" representation, there is space allocated for 96 research projects at each base. They are listed in the same order here, as in the game.

  • each research project's scientist-days remaining is stored in a little-endian word (low-order byte first). For realistic cases, the difference between signed word and unsigned word is irrelevant. 96 words i.e. 192 bytes.
  • then each research project's scientists allocated is stored as a byte. 96 bytes.
  • each base thus uses 288 bytes to represent the current research project state.

A zero for scientist-days merely means that the project is not actively being researched. It may have not been started, or have been completed.

Project names are elsewhere. Offsets are solely in hexadecimal for this iteration. The first offset is for scientist-days, the second is for number of scientists allocated.

Incomplete listing, in order, for the first base:


00h,C0h: Laser weapons

02h,C1h: Motion Detector

04h,C2h: Medikit

06h,C3h: ....

08h,C4h: Heavy Plasma

0Ah,C5h: Heavy Plasma Clip

0Ch,C6h: Plasma Rifle

0Eh,C7h: Plasma Rifle Clip

10h,C8h: Plasma Pistol

12h,C9h: Plasma Pistol Clip

14h,CAh: ....

16h,CBh: ....

18h,CCh: ....

1Ah,CDh: ....

1Ch,CEh: Alien Grenade

1Eh,CFh: ....

20h,D0h: Mind Probe

22h,D1h: ....

24h,D2h: UFO Navigation

26h,D3h: ....

28h,D4h: ....

2Ah,D5h: ....

2Ch,D6h: ....

2Eh,D7h: ....

30h,D8h: ....

32h,D9h: Alien Alloys

34h,DAh: ....

36h,DBh: ....

38h,DCh: ....

3Ah,DDh: ....

3Ch,DEh: ....

3Eh,DFh: Heavy Laser

40h,E0h: ....

42h,E1h: ....

44h,E2h: ....

46h,E3h: ....

48h,E4h: ....

4Ah,E5h: ....

4Ch,E6h: ....

4Eh,E7h: ....

50h,E8h: ....

52h,E9h: ....

54h,EAh: ....

56h,EBh: ....

58h,ECh: ....

5Ah,EDh: Sectoid Corpse

5Ch,EEh: ....

5Eh,EFh: ....

60h,F0h: ....

62h,F1h: Floater Corpse

64h,F2h: ....

66h,F3h: ....

68h,F4h: ....

6Ah,F5h: ....

6Ch,F6h: ....

6Eh,F7h: ....

70h,F8h: ....

72h,F9h: ....

74h,FAh: ....

76h,FBh: ....

78h,FCh: ....

7Ah,FDh: ....

7Ch,FEh: ....

7Eh,FFh: ....

80h,100h: ....

82h,101h: ....

84h,102h: ....

86h,103h: ....

88h,104h: ....

8Ah,105h: ....

8Ch,106h: ....

8Eh,107h: ....

90h,108h: ....

92h,109h: ....

94h,10Ah: ....

96h,10Bh: ....

98h,10Ch: ....

9Ah,10Dh: ....

9Ch,10Eh: ....

9Eh,10Fh: ....

A0h,110h: ....

A2h,111h: ....

A4h,112h: ....

A6h,113h: ....

A8h,114h: ....

AAh,115h: ....

ACh,116h: ....

AEh,117h: ....

B0h,118h: ....

B2h,119h: ....

B4h,11Ah: Floater Navigator

B6h,11Bh: ....

B8h,11Ch: ....

BAh,11Dh: ....

BCh,11Eh: ....

BEh,11Fh: ....


[Zaimoni: What happens if a Jan 1. 1999 savegame is hacked to have nonzero scientist-days for all projects?]