Difference between revisions of "SOLDIER.DAT (TFTD)"
(→Structure: Updated 2 more unknowns, one is still left but it's the same unknown as in EU.) |
(→Structure: Minor changes. Nailed down MC skill fields (initial and improvement) .) |
||
Line 9: | Line 9: | ||
== Structure == | == Structure == | ||
− | <b>0</b> | + | <b>0</b> MC Skill Improvement |
<b>1</b> Time Unit Improvement | <b>1</b> Time Unit Improvement | ||
− | <b>2</b> In | + | <b>2</b> In MC Implantation Flag |
− | <b>3</b> Promotion | + | <b>3</b> Promotion Flag |
<b>4</b> Health Improvement | <b>4</b> Health Improvement | ||
Line 71: | Line 71: | ||
<b>64</b> Initial Bravery | <b>64</b> Initial Bravery | ||
− | <b>65</b> | + | <b>65</b> Initial MC Skill |
<b>66</b> Melee Accuracy Improvement | <b>66</b> Melee Accuracy Improvement | ||
− | <b>67</b> | + | <b>67</b> MC Strength |
<b>68</b> Initial Melee Accuracy | <b>68</b> Initial Melee Accuracy | ||
<b>69</b> Initial Reactions | <b>69</b> Initial Reactions |
Revision as of 03:37, 11 November 2008
General Notes
SOLDIER.DAT has a fixed structure of 250 entries of 70 bytes each. (Only a maximum of 250 soldiers can be had). Thus it is always 17,500 bytes long (250x70).
Values are presented according to byte count (0 to 69) followed by the equivalent hex offset (00 to 43) in bold, followed by the normal (non-hacked) range of values in italics. Most fields can be hacked up to FF, but sometimes it can make for weirdness!
Unfortunately, this file is not conveniently ordered like Enemy Unknown's file so everything is just jumbled together.
Structure
0 MC Skill Improvement
1 Time Unit Improvement
2 In MC Implantation Flag
3 Promotion Flag
4 Health Improvement
5 Strength Improvement
6-7 Base Reference using values from LOC.DAT for where soldier is. First base is always 0 (first entry in LOC.DAT). Value of FF means the soldier is being transferred.
8-9 Craft Reference
10-11 Rank
12-13 Unknown
14-15 Kills
16-17 Wound Recovery
18-19 Missions
20-21 Soldier Value
22 Always 0 except for existing soldiers being transferred, in which case it equals the LOC.DAT value for destination base.
23 Stamina Improvement
24 Reaction Improvement
25 Firing Accuracy Improvement
26 Initial Time Units
27 Initial Health
28 Initial Stamina
29 Initial Throwing Accuracy
30 Armor
31 Gender
32 Race
33 Initial Firing Accuracy
34 Initial Strength
35-61 Name. 21 characters can be entered in-game, 27 via hex editing. Does not need to be null terminated.
62 Bravery Improvement
63 Throwing Accuracy Improvement
64 Initial Bravery
65 Initial MC Skill
66 Melee Accuracy Improvement
67 MC Strength
68 Initial Melee Accuracy
69 Initial Reactions