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.
 

EVE API and Public CREST discussion

First post First post First post
Author
Makoto Priano
Kirkinen-Arataka Transhuman Zenith Consulting Ltd.
#341 - 2014-05-15 21:15:38 UTC
Below-maximum head counts indicate room for gains in productivity. ;)

Itsukame-Zainou Hyperspatial Inquiries: exploring the edge of the known, advancing the state of the art. Would you like to know more?

Ideki
E.A.D Alliance
#342 - 2014-05-15 23:25:32 UTC
CCP FoxFour wrote:
Ideki wrote:
I do not see the head count in the /char/PlanetaryPins

This is a really useful data that is missing.


In what way is it useful?



Computation of CPU/powergrid for the planet.
Makari Aeron
Imperial Shipment
Amarr Empire
#343 - 2014-05-15 23:33:48 UTC
CCP FoxFour wrote:
Ideki wrote:
I do not see the head count in the /char/PlanetaryPins

This is a really useful data that is missing.


In what way is it useful?


I'm guessing he can calculate the CPU and PWG per extractor head to tell you how to optimize your current set up.

CCP RedDawn: Ugly people are just playing life on HARD mode. Personally, I'm playing on an INFERNO difficulty.

CCP Goliath: I often believe that the best way to get something done is to shout at the person trying to help you. http://goo.gl/PKGDP

CCP FoxFour
C C P
C C P Alliance
#344 - 2014-05-16 00:10:17 UTC
Ideki wrote:
CCP FoxFour wrote:
Ideki wrote:
I do not see the head count in the /char/PlanetaryPins

This is a really useful data that is missing.


In what way is it useful?



Computation of CPU/powergrid for the planet.


Ah, didn't realize they play a part in that. OK, I will add it to the list of things to do.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Ideki
E.A.D Alliance
#345 - 2014-05-16 01:12:04 UTC
CCP FoxFour wrote:
Ideki wrote:
CCP FoxFour wrote:
Ideki wrote:
I do not see the head count in the /char/PlanetaryPins

This is a really useful data that is missing.


In what way is it useful?



Computation of CPU/powergrid for the planet.


Ah, didn't realize they play a part in that. OK, I will add it to the list of things to do.


Thank you Big smile
Ideki
E.A.D Alliance
#346 - 2014-05-16 01:24:23 UTC  |  Edited by: Ideki
edited further down the post
Ideki
E.A.D Alliance
#347 - 2014-05-16 03:36:12 UTC
found more issues:

* extractors do not list their product
This is from the API for one of my extractors
Quote:
row latitude="-0.0452920337238" longitude="-0.0452920337238" contentQuantity="0" contentTypeName="" contentTypeID="0" expiryTime="2012-06-09 11:29:37" installTime="2012-06-06 01:29:37" quantityPerCycle="4214" cycleTime="60" lastLaunchTime="2012-06-06 01:29:37" schematicID="0" typeName="Lava Extractor Control Unit" typeID="3062" pinID="1006690492578"

On that planet I have 2 types of extractors: Base Metal and Heavy Metal.
The API does not show what this extractor is doing.

* Storage structures (Command center, launchpad, storage) do not show their content
this is from the API for one of my launchpad
Quote:
row latitude="-6.26493794253" longitude="-6.26493794253" contentQuantity="0" contentTypeName="" contentTypeID="0" expiryTime="0001-01-01 00:00:00" installTime="0001-01-01 00:00:00" quantityPerCycle="0" cycleTime="0" lastLaunchTime="0001-01-01 00:00:00" schematicID="0" typeName="Lava Launchpad" typeID="2555" pinID="1006690492579"

That Launchpad currently store 535 Construction Blocks.

* Factories content listing does not match what is shown ingame
This is from the API for one of my factories
Quote:
row pinID="1006690551722" typeID="2469" typeName="Lava Basic Industry Facility" schematicID="126" lastLaunchTime="2012-06-06 00:58:12" cycleTime="0" quantityPerCycle="0" installTime="0001-01-01 00:00:00" expiryTime="0001-01-01 00:00:00" contentTypeID="2267" contentTypeName="Base Metals" contentQuantity="183" longitude="-6.27486605901" latitude="-6.27486605901"

For this facility, it list 183 units of Base Metal.
I have 6 factories on that planet: only 2 process Base Metal, and none of them have that quantity in stock. 1 of them as 0 in stock, the other one 2799 units.

* Advanced factories have more than 1 input, and the current API structure does not seem to support that.

This is useful to be able to track the current state of production.
Notably when the planet is setup to feed from the Launchpad instead of extractors for example.

IDs and quantity should be enough.
Anyone can use the DB Dump to extract the name of the product associated to the ID, so things like name and volume do not need to be included.

Sorry to be picky and asking a lot.
But I have been waiting for this API for a long long time.
I had plenty of time to think about what I would need from it.
And my tool would really use that API to it full potential.
Max Kolonko
Caldari Provisions
Caldari State
#348 - 2014-05-16 08:48:43 UTC
Ideki wrote:
stuff about quanities missmatch


Are you taking api results than look at the planet and compare? If so you will not get right results, as this api have information on what happened on planets and corect quantities untill you open planet view in game (game computes it then, so that information is not available anywhere until you open planet and trigger the recalculation in game)
Ideki
E.A.D Alliance
#349 - 2014-05-16 12:26:18 UTC
Max Kolonko wrote:
Ideki wrote:
stuff about quanities missmatch


Are you taking api results than look at the planet and compare? If so you will not get right results, as this api have information on what happened on planets and corect quantities untill you open planet view in game (game computes it then, so that information is not available anywhere until you open planet and trigger the recalculation in game)


I understand that.
Expect that I am looking at a planet that is 'sleeping'.
No extractor or factories are doing any work.

So even if there is computation when opening the planet view, I think that what is stored in the database should reflect the current state until we open it.

Everything else I can compute on my own (my tool does it actually).
I just need current stock for each facility/storage.

Anyway, in the worst case I can do without.
Having the planet setup is already more than I could hope for.
Ideki
E.A.D Alliance
#350 - 2014-05-16 12:30:57 UTC
Also, I believe that the command center data does not show the level of the command center.
I will have to check next time I am ingame to make sure.
Ideki
E.A.D Alliance
#351 - 2014-05-16 12:56:04 UTC
Another problem.

On one of my gas planets, it looks like I have 2 facilities with the same pinID.
I thought that the pinID was a unique identifier for each structure.
Am I wrong ?

This is the data:

Quote:
row latitude="-3.72316839216" longitude="-3.72316839216" contentQuantity="40" contentTypeName="Electrolytes" contentTypeID="2390" expiryTime="0001-01-01 00:00:00" installTime="0001-01-01 00:00:00" quantityPerCycle="0" cycleTime="0" lastLaunchTime="2012-06-06 00:45:53" schematicID="68" typeName="Gas Advanced Industry Facility" typeID="2494" pinID="1006678347864"

row latitude="-3.72316839216" longitude="-3.72316839216" contentQuantity="20" contentTypeName="Oxygen" contentTypeID="3683" expiryTime="0001-01-01 00:00:00" installTime="0001-01-01 00:00:00" quantityPerCycle="0" cycleTime="0" lastLaunchTime="2012-06-06 00:45:53" schematicID="68" typeName="Gas Advanced Industry Facility" typeID="2494" pinID="1006678347864"


What is interesting here is that they have the same latitude and longitude (but you cannot do that ingame), but different contentTypeName.

Unless that is the way you use to specify different input components for the same facility?
Could it be that this is how you show the content of the storage ?
CCP FoxFour
C C P
C C P Alliance
#352 - 2014-05-16 12:59:02 UTC
Ideki wrote:
Another problem.

On one of my gas planets, it looks like I have 2 facilities with the same pinID.
I thought that the pinID was a unique identifier for each structure.
Am I wrong ?

This is the data:

Quote:
row latitude="-3.72316839216" longitude="-3.72316839216" contentQuantity="40" contentTypeName="Electrolytes" contentTypeID="2390" expiryTime="0001-01-01 00:00:00" installTime="0001-01-01 00:00:00" quantityPerCycle="0" cycleTime="0" lastLaunchTime="2012-06-06 00:45:53" schematicID="68" typeName="Gas Advanced Industry Facility" typeID="2494" pinID="1006678347864"

row latitude="-3.72316839216" longitude="-3.72316839216" contentQuantity="20" contentTypeName="Oxygen" contentTypeID="3683" expiryTime="0001-01-01 00:00:00" installTime="0001-01-01 00:00:00" quantityPerCycle="0" cycleTime="0" lastLaunchTime="2012-06-06 00:45:53" schematicID="68" typeName="Gas Advanced Industry Facility" typeID="2494" pinID="1006678347864"


What is interesting here is that they have the same latitude and longitude (but you cannot do that ingame), but different contentTypeName.

Unless that is the way you use to specify different input components for the same facility?
Could it be that this is how you show the content of the storage ?


You got it. It's terrible but it's kind of the best I could do without another endpoint for content...

Could have also been another rowset in the page now that I think about it... crap... I will have to review it. Stupid API and not supporting versioning. :/

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Ideki
E.A.D Alliance
#353 - 2014-05-16 13:27:16 UTC
Ok.
But in that case it is not consistent.
Because I have more than 1 facility with stored products waiting for more before starting their work.
Yet I found a case of duplicated id only once across all my planets.

It's like it does it once, and then forget to check about the rest of the facility for their stores.

I see that the API itself as a version
Quote:
eveapi version="2"

Why don't you introduce a versioning at the result level?
Each result could have its own version, then you would save yourself some troubles.
Ideki
E.A.D Alliance
#354 - 2014-05-16 14:20:25 UTC
Or why not creating a new API just to query the status of a structure?

It would take the planet and structure ID as parameters.

Then it would return what the structure as in store (ID + quantity)
and what the structure is producing (ID + quantity) (if possible because the Launchpad does not produce anything for example)

That way you skip the whole version issue.

No ?

Also, it could potentially reduce the amount of data transiting from the API.
Because once you have the setup of the planet, you can just query for the structures you need/want an update from (ex: extractors and factory).
Instead of having to request the whole planet data each time.
Suki Kyoshi
School of Applied Knowledge
Caldari State
#355 - 2014-05-16 14:57:33 UTC
Ideki wrote:
Also, I believe that the command center data does not show the level of the command center.
I will have to check next time I am ingame to make sure.

This information is in the PlanetaryColonies endpoint (upgradeLevel) where
Level 0 means basic, after setting up the commandcenter
and Level 5 with a full upgrade (skill level 5).

Ideki wrote:
What is interesting here is that they have the same latitude and longitude (but you cannot do that ingame), but different contentTypeName.

@CCP FoxFour could you please revisit that values.

Idea: add the length of a link in the PlanetaryLinks endpoint
Description: It would be the easiest way to calculate the cpu/PG need of a link, so you don't need to calculate it from the longitute/latitute values.
Ideki
E.A.D Alliance
#356 - 2014-05-16 15:06:08 UTC
Suki Kyoshi wrote:
Ideki wrote:
Also, I believe that the command center data does not show the level of the command center.
I will have to check next time I am ingame to make sure.

This information is in the PlanetaryColonies endpoint (upgradeLevel) where
Level 0 means basic, after setting up the commandcenter
and Level 5 with a full upgrade (skill level 5).

Ideki wrote:
What is interesting here is that they have the same latitude and longitude (but you cannot do that ingame), but different contentTypeName.

@CCP FoxFour could you please revisit that values.

Idea: add the length of a link in the PlanetaryLinks endpoint
Description: It would be the easiest way to calculate the cpu/PG need of a link, so you don't need to calculate it from the longitute/latitute values.


Hum, I will have to check with my command centers, because I did not see a correlation there.

Also, what is the CPU/Powergrid cost per unit of length of the link ?
My tool could use that info too, because at the moment I have to let the user put a percentage of the planet CPU/Grid.
Suki Kyoshi
School of Applied Knowledge
Caldari State
#357 - 2014-05-16 15:18:29 UTC
Ideki wrote:
...

Also, what is the CPU/Powergrid cost per unit of length of the link ?
My tool could use that info too, because at the moment I have to let the user put a percentage of the planet CPU/Grid.


Base per link: CPU=15tf and PG=10MW
CPU: 1tf per 5km
PG: 1MW per 7km

all values on linkLevel 0 means no upgrade on link
Ideki
E.A.D Alliance
#358 - 2014-05-16 15:34:58 UTC
Suki Kyoshi wrote:
Ideki wrote:
...

Also, what is the CPU/Powergrid cost per unit of length of the link ?
My tool could use that info too, because at the moment I have to let the user put a percentage of the planet CPU/Grid.


Base per link: CPU=15tf and PG=10MW
CPU: 1tf per 5km
PG: 1MW per 7km

all values on linkLevel 0 means no upgrade on link


Oh nice.
Very usefull info.
Thanks a lot Big smile
Ideki
E.A.D Alliance
#359 - 2014-05-16 20:45:56 UTC
Suki Kyoshi wrote:
Ideki wrote:
Also, I believe that the command center data does not show the level of the command center.
I will have to check next time I am ingame to make sure.

This information is in the PlanetaryColonies endpoint (upgradeLevel) where
Level 0 means basic, after setting up the commandcenter
and Level 5 with a full upgrade (skill level 5).


I confirm this.
But I would have expected it at the command center level instead of the planet level.
Does not change much, just not too logic in my opinion.
CCP FoxFour
C C P
C C P Alliance
#360 - 2014-05-16 21:08:04 UTC
Ideki wrote:
Suki Kyoshi wrote:
Ideki wrote:
Also, I believe that the command center data does not show the level of the command center.
I will have to check next time I am ingame to make sure.

This information is in the PlanetaryColonies endpoint (upgradeLevel) where
Level 0 means basic, after setting up the commandcenter
and Level 5 with a full upgrade (skill level 5).


I confirm this.
But I would have expected it at the command center level instead of the planet level.
Does not change much, just not too logic in my opinion.


Yea, doesn't make much sense but it's how the data is stored in the DB. /me shrugs

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.