Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 3 post(s) |

Jelazni
|
Posted - 2008.09.06 09:02:00 -
[1]
Hi.
Can anyone tell me please if the data dump includes Blueprints materials information (which materials are required for construction blueprint's item), and also which materials do items reprocess into, including quantities. In case this information is in the dump, maybe someone can suggest how to look it up.
thank you
|

Susan Morals
|
Posted - 2008.09.07 09:47:00 -
[2]
See Eve-Dev in general, and their Bill of materials page in particular.
|
|

CCP Explorer

|
Posted - 2008.09.07 12:08:00 -
[3]
Edited by: CCP Explorer on 07/09/2008 12:11:12
This information is the Static Data Export Database but it is perhaps not trivial to find it. In this and the next posts I'll give two examples.
First a simple Tech 1 item, a Raven battleship. This query will give you the manufacturing requirements by first looking for the type ID by name, then the blueprint ID by type ID and finally the materials using the blueprint ID:
Quote: DECLARE @typeName nvarchar(25) DECLARE @typeID int DECLARE @blueprintID int
SET @typeName = 'Raven'
SELECT @typeID = typeID FROM invTypes WHERE typeName = @typeName
SELECT @blueprintID = blueprintTypeID FROM invBlueprintTypes WHERE productTypeID = @typeID
SELECT A.activityName, T1.typeName, requiredType = T2.typeName, AMV.quantity FROM typeActivityMaterials AMV INNER JOIN invTypes T1 on T1.typeID = AMV.typeID INNER JOIN invTypes T2 on T2.typeID = AMV.requiredTypeID INNER JOIN ramActivities A on A.activityID = AMV.activityID WHERE AMV.typeID = @blueprintID AND AMV.activityID = 1
The result will be this table:
Quote: activityNametypeNamerequiredTypequantity ManufacturingRaven BlueprintTritanium7577632 ManufacturingRaven BlueprintPyerite1894802 ManufacturingRaven BlueprintMexallon474675 ManufacturingRaven BlueprintIsogen118519 ManufacturingRaven BlueprintNocxium29595 ManufacturingRaven BlueprintZydrine7060 ManufacturingRaven BlueprintMegacyte2254
Since no materials are being recycled then this will also be the repossessing values. All values are optimal, based on perfect skills, no taxes, etc.
Erlendur S. Thorsteinsson Software Director EVE Online, CCP Games |
|
|

CCP Explorer

|
Posted - 2008.09.07 12:33:00 -
[4]
Edited by: CCP Explorer on 07/09/2008 12:33:09
A more complicated example would be a Tech 2 ship, Guardian, made from raw materials, components and a Tech 1 ship (Augoror, which is recycled in the process). We use the same queries as before, except in the third SELECT statement we add a column so it becomes:
Quote: SELECT A.activityName, T1.typeName, requiredType = T2.typeName, AMV.quantity, recycle = ISNULL(recycle, 0)
The result is this table:
Quote: activityNametypeNamerequiredTypequantityrecycle
(1. Materials consumed/wasted in the process) ManufacturingGuardian BlueprintTritanium-1874430 ManufacturingGuardian BlueprintPyerite-328220 ManufacturingGuardian BlueprintIsogen-18830 ManufacturingGuardian BlueprintZydrine-1910 ManufacturingGuardian BlueprintMegacyte-100
(2. Materials player has to provide) ManufacturingGuardian BlueprintMexallon42190 ManufacturingGuardian BlueprintNocxium1670 ManufacturingGuardian BlueprintMorphite600
(3. Tech 1 ship that will be recycled into materials) ManufacturingGuardian BlueprintAugoror11
(4. Skills at levels required) ManufacturingGuardian BlueprintIndustry50 ManufacturingGuardian BlueprintCruiser Construction10 ManufacturingGuardian BlueprintAmarrian Starship Engineering10 ManufacturingGuardian BlueprintMechanical Engineering10
(5. Components required) ManufacturingGuardian BlueprintR.A.M.- Starship Tech80 ManufacturingGuardian BlueprintConstruction Blocks500 ManufacturingGuardian BlueprintFusion Thruster1000 ManufacturingGuardian BlueprintRadar Sensor Cluster1500 ManufacturingGuardian BlueprintNanoelectrical Microprocessor2000 ManufacturingGuardian BlueprintTungsten Carbide Armor Plate1000 ManufacturingGuardian BlueprintAntimatter Reactor Unit1000 ManufacturingGuardian BlueprintTesseract Capacitor Unit2500 ManufacturingGuardian BlueprintLinear Shield Emitter1000
The player has to provide the items in no. 2, 3 and 5 and have the skills per no. 4 to manufacture this ship.
The reprocessing is more complicated. The player gets the components in no. 5 back. They will not get ship in no. 3 back. For the materials in no. 1 and 2, then they will lose all the materials in the Augoror that were consumed by the manufacturing process, but will receive any surplus back.
Quote: (6. Materials provided by Tech 1 ship) ManufacturingAugoror BlueprintTritanium204846 ManufacturingAugoror BlueprintPyerite51606 ManufacturingAugoror BlueprintMexallon14903 ManufacturingAugoror BlueprintIsogen3371 ManufacturingAugoror BlueprintNocxium846 ManufacturingAugoror BlueprintZydrine191 ManufacturingAugoror BlueprintMegacyte43
So if we add up no. 1, 2 and 6 then we get
Quote: Tritanium-187443+ 0+ 204846= 17403 Pyerite-32822+ 0+ 51606= 18784 Mexallon-0+ 4219+ 14903= 19122 Isogen-1883+ 0+ 3371= 1488 Nocxium-0+ 167+ 846= 1013 Zydrine-191+ 0+ 191= 0 Megacyte-10+ 0+ 43= 33 Morphite0+ 60+ 0= 60
which are the reprocessing values for the Guardian (last column above).
Erlendur S. Thorsteinsson Software Director EVE Online, CCP Games |
|
|

CCP Explorer

|
Posted - 2008.09.07 12:35:00 -
[5]
Short summary:
For manufacturing, look at the blueprint and publish the positive quantities for each type (ignore negative numbers and 0).
For reprocessing, look for recycled items, find their blueprints, then add all quantities from all the blueprints (normally just 2, the new ship and ship it was based on) for each type and publish all the positive values (ignore negative numbers and 0, and ignore recycled items).
Erlendur S. Thorsteinsson Software Director EVE Online, CCP Games |
|

Hatticus
|
Posted - 2008.10.30 22:34:00 -
[6]
Great.. thanks a lot for the info .. taken on board and understood.
Could you point me in the right direction on how to build a sql listing all the reprocessable items?
Originally by: CCP Explorer Edited by: CCP Explorer on 07/09/2008 12:46:29
.... For reprocessing, look for recycled items ...
(All queries courtesy of CCP Prism X.)
|

Ambo
State Protectorate
|
Posted - 2008.10.31 07:14:00 -
[7]
Edited by: Ambo on 31/10/2008 07:13:50 I came up with this:
Quote: CREATE PROCEDURE dbo.getReprocesResults @itemIDint AS DECLARE @blueprintIDint DECLARE @baseItemIDint DECLARE @techLevelint
SET @baseItemID = 0 SELECT @baseItemID = parentTypeID FROM invMetaTypes WHERE typeID = @itemID AND metaGroupID != 2
IF(@baseItemID = 0) BEGIN SET @baseItemID = @itemID END
SELECT @blueprintID = blueprintTypeID, @techLevel = techLevel FROM invBlueprintTypes WHERE productTypeID = @baseItemID
IF(@techLevel = 1) BEGIN SELECT typeActivityMaterials.requiredTypeID, typeActivityMaterials.quantity FROM typeActivityMaterials WHERE typeActivityMaterials.typeID = @blueprintID AND typeActivityMaterials.activityID = 1 END ELSE BEGIN SELECT typeActivityMaterials.requiredTypeID, SUM(typeActivityMaterials.quantity) AS quantity FROM typeActivityMaterials JOIN ( SELECT invBlueprintTypes.blueprintTypeID FROM invBlueprintTypes JOIN ( SELECT typeActivityMaterials.requiredTypeID FROM typeActivityMaterials INNER JOIN invTypes AS typeReq ON typeActivityMaterials.requiredTypeID = typeReq.typeID INNER JOIN invGroups AS typeGroup ON typeReq.groupID = typeGroup.groupID WHERE typeActivityMaterials.typeID = @blueprintID AND typeActivityMaterials.activityID = 1 AND typeActivityMaterials.recycle = 1 ) AS tam ON invBlueprintTypes.productTypeID = tam.requiredTypeID ) AS bp ON typeActivityMaterials.typeID = bp.blueprintTypeID OR typeActivityMaterials.typeID = @blueprintID INNER JOIN invTypes AS typeReq ON typeActivityMaterials.requiredTypeID = typeReq.typeID INNER JOIN invGroups AS typeGroup ON typeReq.groupID = typeGroup.groupID WHERE typeActivityMaterials.activityID = 1 AND typeActivityMaterials.recycle = 0 AND typeGroup.categoryID != 16 GROUP BY requiredTypeID END
RETURN
It seems to be a little off for some ammo but is mostly good. --------------------------------------
Trader? Investor? Just want to track your finances? Check out EMMA |

Hatticus
|
Posted - 2008.10.31 07:29:00 -
[8]
Edited by: Hatticus on 31/10/2008 07:32:49 Edited by: Hatticus on 31/10/2008 07:29:55 Great.. Will have a look through properly later today. Looking at base items etc seems to be a great concept.
I came up with this ( MySQL as it happens, but the principle is the same ) to give a list of reprocessable items.
Quote:
SELECT t2.typeID, t2.typeName FROM typeActivityMaterials t INNER JOIN invTypes t2 ON t.typeID = t2.typeID INNER JOIN invTypes t3 ON t.requiredTypeID = t3.typeID WHERE t.activityID = 6 AND t2.published = 1 GROUP BY t2.typeID ORDER BY t2.typeName ASC
Haven't checked its effectiveness properly yet though, so comments appreciated
|

Ambo
State Protectorate
|
Posted - 2008.10.31 08:26:00 -
[9]
Ah sorry, you said reprocessable items. 
Afraid my query might not be much use to you then as it gets the results of reprocessing an item...
The problem I had was that some items (425mm prototype railguns for example) don't have any materials listed for activityID 6 (i.e. reprocessing). In this case, you have to look at the base item.
Given that was the case, I decided to work back from the production requirements for T2 items rather than relying on the activityID = 6 data. My query may seem overly complex byut really it's just to cope with all possible cases. It would probably be much more sensible to run another query to genereate the activityID 6 data correctly for all items and then use your queries instead. --------------------------------------
Trader? Investor? Just want to track your finances? Check out EMMA |

Hatticus
|
Posted - 2008.10.31 08:45:00 -
[10]
Edited by: Hatticus on 31/10/2008 08:54:31 Edited by: Hatticus on 31/10/2008 08:45:53 Actually, it maybe a combination of both ad your query is definitely of use! Mine seems a bit buggy here and there. It falls on some T2 items (e.g. Energ Adapt Nano II ) where it lists skill books as a reprocess result ...
^^ Guessing that's something to do with the "typeGroup.categoryID != 16" part
.. and it doesn't quite do what I want yet ( which is to break everything down to its root components .. e.g. trit / pye / armor plates / burned logic etc ) for reprocessing an Obelisk ( for example )
will have another look at things some time over weekend.
|
|

Alara Universe
|
Posted - 2008.11.03 17:24:00 -
[11]
Hi,
i'm quite new to the data dump, but this thread has helped me extremly.
One question: How to calculate the refining values of items, which has no blueprints? Like Ice, Ore and so on? I tried it with Dark Glitter (16267) but i don't find any entries for that in invBlueprintTypes.
Thanks for your help!
|

BPO Topoisomerase
Caldari Superheroes Adventure Club
|
Posted - 2009.01.04 08:27:00 -
[12]
Quote:
DECLARE @typeName nvarchar(25) DECLARE @typeID int DECLARE @blueprintID int
SET @typeName = 'Raven'
SELECT @typeID = typeID FROM invTypes WHERE typeName = @typeName
SELECT @blueprintID = blueprintTypeID FROM invBlueprintTypes WHERE productTypeID = @typeID
SELECT A.activityName, T1.typeName, requiredType = T2.typeName, AMV.quantity FROM typeActivityMaterials AMV INNER JOIN invTypes T1 on T1.typeID = AMV.typeID INNER JOIN invTypes T2 on T2.typeID = AMV.requiredTypeID INNER JOIN ramActivities A on A.activityID = AMV.activityID WHERE AMV.typeID = @blueprintID AND AMV.activityID = 1
please pardon my noob question. I have mysql installed, and have imported the eve data dump. where exactly do i type the script/query from above in order to get results ?
thank you
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |