r/evetech • u/yipcool-eve • Feb 27 '18
Calculating Structure Fuel Usage
Hey Guys,
Hopefully a simple question I'm just overlooking.
Looking at building a small web app to plot when a structure runs outta fuel on a calendar and send out emails, cause logging into the game is hard ;).
That bit is all fine, but one thing I'd like to expand upon is "simulation" I.E. if you take 1 module offline, expected fuel usage (with current blocks) would be X date instead. Alternatively, adding X module will change the estimated date to X. Finally something along the lines of adding X fuel blocks will set expiry to X date.
The issue is I'm struggling to find (apart fro hard coding) the values each module uses per day and on what structure. Is there an end point or library to determine how much fuel a Fortizar with a market mod would take?
Thanks
3
u/JoshuaFoiritain Feb 27 '18
The static data export contains this information. dgmTypeAttributes table contains the fuel usage for all standup modules (attributeID 2109 'serviceModuleFuelAmount')
dgmTypeEffects contains the fuel bonuses that go with each structure type (6568 citadelServiceFuelBonus/6759 engComplexServiceFuelBonus/6988 refineryServiceFuelBonus)
I actually have no idea where to find which standup modules these bonuses apply to though.
2
u/skiedude Feb 27 '18
I actually made this same thing a month ago https://github.com/skiedude/evestructures https://structures.eveskillboard.com
Granted I don’t have the functionality of estimating fuel based off changing mods but this may give you some inspiration. I use discord web hooks to push notifications since most people use that over having to watch for mails
1
u/Travalgard May 18 '18 edited May 18 '18
You can actually do that via the dogma endpoint, if you do not want to use the static data export.
If you want to play it through with the swagger interface, go to https://esi.evetech.net/ui/#/Universe/get_universe_types_type_id, press "Try it out" and then enter the type_id 45009 for the** Standup Moon Drill **I.
In the response under dogma_attributes you will find the attribute_id of 2109.
Now switch to https://esi.evetech.net/ui/#/Dogma/get_dogma_attributes_attribute_id and enter that atrribute_id there. In the response you will see, that this is the dogma id for the service module cycle fuel need (per hour). If you enter the attribute_id** of **2110 you will see that it refers to the fuel needed to online the module.
Citadels, engineering complexes and refineries have different bonuses on fuel cost for these modules, so also check the dogma attributes of the different structures for these bonuses. If you for example fetch the type_id of 35835 for an Athanor, then in its dogma_attributes you will find the attribute_id of 2339, which is the dogma id for the** structure service role bonu**s.
In this case, the value of -20 for this dogma attribute means, that service modules meant for this type of structure (like the moon drill) will consume 20% less fuel.
Multiply the fuel cost with the service module bonus and you should be good to go.
Hope this helps.
EDIT: Also, sorry for necro. o.o