EntityDefault Spec Robots - OpenPerpetuum/OPDB GitHub Wiki
How Bots are defined:
dbo.EntityDefaults
Bots are comprised of 4 ID pointers in the options
genxy field to map to head, chassis, leg, and inventory.
The options keys on some bots have legacy values the only option keys that matter are shown in the Legatus below.
Older bots will have more attributes shown that are not actively being referenced (Confirmed by test).
Other than Slots, mass and volume, the component stats are defined by the Chassis, Head, Leg and Inventory EntityDefaults.
Extracted fields to map to bot properties
Bot:
options:
#head=n5525
#chassis=n5526
#leg=n5527
#inventory=n332
volume:22.5
mass:0
Head:
options:
#slotFlags=48,8,8,8
#height=f0.20
volume: 3
mass: 2000
Chassis:
options:
#slotFlags=46d1,d1,4d1,6d1,d1,4d1,4d0
#height=f1.10
volume: 13
mass: 24500
Legs:
options:
#slotFlags=48,8,8,
#height=f0.20
volume:7
mass: 3150
##Example Artemis w/ fields [def_artemis_bot]
definition : 206
definitionname : def_artemis_bot
quantity : 1
attributeflags : 0
categoryflags : 199681
options: #head=n109#chassis=n110#leg=n111#inventory=n330
note:
enabled: 1
volume: 19
mass: 0
hidden: 0
health: 100
descriptiontoken: def_artemis_bot_desc
purchasable: 1
tiertype: NULL
tierlevel: NULL
The options field contains a dictionary (GenXYstring) that defines the parts of the bot as pointers to other EntityDefault Definitions.
For simplification, lets remove the fields that don't matter to us for balancing.
They are listed below:
definition : 109
definitionname : def_artemis_head
attributeflags : 1024
categoryflags : 196944
options: #slotFlags=48,8,8,8#height=f0.15#max_locked_targets=f3#max_targeting_range=f35.0#sensor_strength=f100#cpu=f250
volume: 2
mass: 1100
definition : 110
definitionname : def_artemis_chassis
attributeflags : 1024
categoryflags : 197200
options: #slotFlags=46d1,4d1,6d1,4d3,d2#slotFlags=46d1,4d1,6d1,4d3,d2#height=f0.5#armor_hp=f2550.00#core_recharge_time=f481.00#powergrid=f1450.00#signature_radius=f8.00#tracking=f30.00#core=f3000.00#decay=n300
volume: 11
mass: 19500
definition: 111
definitionname : def_artemis_leg
attributeflags :1024
categoryflags : 197456
options:#slotFlags=420,20,20,20#height=f1.00#powerdown_time=f5.00#powerup_delay=f1.50#speed=f1.30#default_mass=f24000.00#slope=f6.00
volume:6
mass:3200