These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Finding low/mid/high slots for T3D's

Author
Darien Stark
League of Gentlemen
The Initiative.
#1 - 2016-01-07 16:54:08 UTC
Working on a fitting tool for my alliance and have managed to get through the static data import and found the query to work out the number of low / mid / high slots for a particular ship...

SELECT
   TRIM(attribtypes.attributename),
   coalesce(attrib.valueFloat, attrib.valueInt) as value
FROM dgmTypeAttributes AS attrib

   INNER JOIN invTypes AS type
     ON attrib.typeID = type.typeID
   INNER JOIN dgmAttributeTypes AS attribtypes
     ON attrib.attributeID = attribtypes.attributeID
WHERE attribtypes.attributename IN ('lowSlots', 'medSlots', 'hiSlots', 'rigSlots', 'maxSubSystems', 'lowSlotModifier','medSlotModifier','hiSlotModifier')

AND type.typeName = 'Stratios';


Which works fine - BUT it doesn't work for T3D's because obviously the subsystems effect the number of slots.
Is there any query that can work that out based on subsystems fitted?

Thanks
Darien Stark
League of Gentlemen
The Initiative.
#2 - 2016-01-07 17:05:55 UTC
Replying to myself - If you do the same query on the subsystem modules themselves you get slot modifiers so you can calculate the number of slots by summing all those results together.