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.
 

Tech 2 BoM

Author
Althalus Stenory
Flying Blacksmiths
#1 - 2011-10-29 15:17:09 UTC
Hello,

can somebody tell me if I am doing the right thing to get a tech 2 item Bill of Material ?

(I'm trying to get it with a php script, using mysql btw)

What I am doing is :
- Getting base materials from an item (using http://wiki.eve-id.net/Bill_of_Materials query)
- Getting extra materials from the item (same source)

This is fine, and seems to work (not that hard yeah)

Now the "complicated" part for me is to substract "base t1 materials" from base t2 materials (example with Improved Cloaking Device II from the above link).

But i'm still having an issue : I believe i only need to substract the "base item" (the tech 1 version) from the base materials of the tech 2 version, so is there a way to "see" if an item (in the extra materials) is the tech 1 version ?

In that case my script will be able to avoid "R.A.M." etc, because at the moment, my script is looking for all extra materials, and each time it finds an item with a BoM, it removes the quantity from the tech 2...

Hope i'm clear enough and I hope someone can help me ^^'

Thanks !

(FYI : i'm not looking for an "everything-done" script, because i want to understand how to do it... i'm just a little be curious :P)
(I can't give an example of my script since I deleted it a few weeks ago, when I gave it up the first time..)

EsiPy - Python 2.7 / 3.3+ Swagger Client based on pyswagger for ESI

Lutz Major
Austriae Est Imperare Orbi Universo
#2 - 2011-10-29 19:13:00 UTC
Althalus Stenory wrote:
Hello,

can somebody tell me if I am doing the right thing to get a tech 2 item Bill of Material ?

(I'm trying to get it with a php script, using mysql btw)

What I am doing is :
- Getting base materials from an item (using http://wiki.eve-id.net/Bill_of_Materials query)
- Getting extra materials from the item (same source)

This is fine, and seems to work (not that hard yeah)

Now the "complicated" part for me is to substract "base t1 materials" from base t2 materials (example with Improved Cloaking Device II from the above link).

But i'm still having an issue : I believe i only need to substract the "base item" (the tech 1 version) from the base materials of the tech 2 version, so is there a way to "see" if an item (in the extra materials) is the tech 1 version ?

In that case my script will be able to avoid "R.A.M." etc, because at the moment, my script is looking for all extra materials, and each time it finds an item with a BoM, it removes the quantity from the tech 2...

Hope i'm clear enough and I hope someone can help me ^^'

Thanks !

(FYI : i'm not looking for an "everything-done" script, because i want to understand how to do it... i'm just a little be curious :P)
(I can't give an example of my script since I deleted it a few weeks ago, when I gave it up the first time..)

The ramTypeRequirements table has an recycle flag. If that is true, you must subtract the raw materials from the T2 from the T1 raw materials.

So if T2 has 10 Morphites as raw material and an item in the ram table is marked as recylce, you have to subtract the item's Morphite quantity from the T2 item.

See also: http://www.eveonline.com/ingameboard.asp?a=topic&threadID=1220024&page=1#30

(I hope I make myself clear .. i would supply an example but I'm not at my computer right now)
Althalus Stenory
Flying Blacksmiths
#3 - 2011-10-30 09:00:29 UTC
Ahhh, this is what the "recycle" property mean !

So if i understood well, if the item have a recycle flag (in ramTypeRequirements) i need to substract all his raw materials from the tech 2 version. If i get a negative quantity, I just set it to 0.

Thanks Lutz ! :)

EsiPy - Python 2.7 / 3.3+ Swagger Client based on pyswagger for ESI