The next issue is starship data. And by that I mean the twelve iconic small starships that players operate.
This means HOW to store the data is not a major concern. Strings and integers do just fine. The program that creates this database is maybe 2k, and the "database" itself is of course a bit smaller than that.
Ship Class Templates
A ship template is what the program bases "actual" ships on. It's the unmodified design with standard equipment.
- Class Name, arbitrary length. Prob. No more than 20 characters.
- QSP, extended. Mission, "-", Hull, Configuration, Maneuver, Jump, Hop, "-", Armor, "-", TL, three fuel system codes, three landing capability codes. 17 chars.
The following are numeric fields, which could variously be stored as INTs, or two bytes.
- MCr
- Fuel
- Cargo
- High passengers
- Middle passengers
- Low passengers
- Steerage
- Demand
- Comfort
Finally, these fields are variable sized arrays.
- Sensors: an array of Range + Mount + Type.
- Weapons: an array of Range + Mount + Type.
- Defenses: an array of Range + Mount + Type.
- Small Craft: an array of Hull Code + Configuration + Maneuver + Weapon Type.
This means HOW to store the data is not a major concern. Strings and integers do just fine. The program that creates this database is maybe 2k, and the "database" itself is of course a bit smaller than that.
Ship Class Templates
A ship template is what the program bases "actual" ships on. It's the unmodified design with standard equipment.
- Class Name, arbitrary length. Prob. No more than 20 characters.
- QSP, extended. Mission, "-", Hull, Configuration, Maneuver, Jump, Hop, "-", Armor, "-", TL, three fuel system codes, three landing capability codes. 17 chars.
The following are numeric fields, which could variously be stored as INTs, or two bytes.
- MCr
- Fuel
- Cargo
- High passengers
- Middle passengers
- Low passengers
- Steerage
- Demand
- Comfort
Finally, these fields are variable sized arrays.
- Sensors: an array of Range + Mount + Type.
- Weapons: an array of Range + Mount + Type.
- Defenses: an array of Range + Mount + Type.
- Small Craft: an array of Hull Code + Configuration + Maneuver + Weapon Type.
Last edited: