|
Author |
Thread Statistics | Show CCP posts - 2 post(s) |
Agnemon
|
Posted - 2010.07.10 02:00:00 -
[1]
I have been trawling this thread for several days now for coding snippets to help me learn how to use the API (Great Tool btw) and it seems to me that the Eve-Dev Wiki is grossly underutilised and could save everybody alot of time if it could be updated with samples of code to cover all the questions asked in the thread for both VB and C#. Particularly if it is stickied at the start of the thread.
That way us noobs can get the answers we need when we need them and not have to bug Amida Ta with the same elementary questions again and again................
I would suggest starting at a very basic level (File locations, usings etc. Some of us are a bit challenged in basic knowledge ) and move thru to examples of loading various controls (Gridview and Treeview) in both VB and C#. A side bonus is we noobs get to see what proper coding looks like instead of the mishmash of gibberish that I tend to write
|
Agnemon
|
Posted - 2010.07.15 14:07:00 -
[2]
Are the science implants available thru the API?
The Get.charactersheet call does not appear to return any implant data other than learning implants.
If the data is available is there any possibility of getting the calls added to EveAI?
|
Agnemon
|
Posted - 2010.10.03 03:54:00 -
[3]
Language = C#. Application = Windows Forms. Skill level = "Noob", level 1.
I am trying to load the "learned skills" into a treeview control however the skill sheet does not appear to contain any group name information.
I had thought to load the "Skilltree" into a list and then refer to that for the group name but that is a "Noob lvl 2" skill.
I have modified the VB market example from the Eve - Dev site and have it working under C# for the markets, but can not get it to work with the skills.
A nice code snippet that I can cut and paste ( a Noob lvl 1 skill) would be nice :)
|
Agnemon
|
Posted - 2010.10.15 15:26:00 -
[4]
Does anyone have any suggestions on displaying the icon of an item in a picture box?
I am able to reference productTypes.Graphic.UrlIcon which I assume is the icon ID. but can not get it to load into the picture box and I am too tired to go any further tonight
|
Agnemon
|
Posted - 2010.10.16 15:18:00 -
[5]
Dim product as ProductType Dim icon = product.Icon.IconFile Dim iconPath As String = Environment.CurrentDirectory + "\eve Graphics\icon32\icon" + icon + ".png" If icon IsNot "" And icon IsNot Nothing Then ctrlSchema.picMaterial.Load(iconPath)
Hmmm, I can not access "product.Icon.IconFile" which assembly is it in?
|
Agnemon
|
Posted - 2010.10.17 08:31:00 -
[6]
Eve AI version 1.3.1
Dim product As ProductType Dim icon = product.Icon.IconFile Error message = "Icon is not a member of 'EveAI.Product.ProductType'."
Dim iconPath As String = Environment.CurrentDirectory + "\eve Graphics\icon32\icon" + icon + ".png" If icon IsNot "" And icon IsNot Nothing Then ctrlSchema.picMaterial.Load(iconPath)
Error message = "'ctrlSchema' is not declared. It may be inaccessable due to its protection level."
Pretty sure it's a missing Imports statement
|
Agnemon
|
Posted - 2010.10.17 08:39:00 -
[7]
Oops
The link on the first page still points to EveAI version 1.3.1
needed to use the link on page 20, post 580.
However I still have the "ctrlSchema" error
|
Agnemon
|
Posted - 2010.10.17 13:13:00 -
[8]
Sort of figure that was the case but wasn't sure if it was part of VB.
Anyway, got that part of it working now, thanks for your help
There are a lot of missing icons (latest dump) and while there are blueprint icons included in the dump they use a different naming convention and the productType doesn't seem to have the icon info set for blueprints
|
Agnemon
|
Posted - 2010.10.23 12:17:00 -
[9]
Originally by: Krathos Morpheus Edited by: Krathos Morpheus on 17/10/2010 13:35:11
What icons are you missing? You are probably using the topmost resolutions, but not every icon has an higher resolution version, you should use the 32x32px or the 16x16px for general item icons that are found on "Tyrannis_1.0.4-imgs.7z\icons\32_32\" There were some icons missing from planetary interaction, but I've found no one missing in the last image dump. Some items like ships, drones and deployables are located inside the types folder though.[/justify]
I am cycling thru the resolutions using "File exists" starting at the higest resolution and cycling down, that way I get the best resolution available.
The blueprint icons use a straight number, no "icon" prefix.
hmmm, didn't think to look in the types folder
|
Agnemon
|
Posted - 2010.11.01 12:57:00 -
[10]
Does anyone know how to access all the icons?
I can access the standard item icons "iconXX_XX.png" but the blueprint icons are numbered from 683 to 32445 and I cannot find any reference to them in the productTypes, Icon = Null.
For ships the numbers range from 582 to 32311 but in product Types Icon = Null and the "Graphic" field is set to a file path/name
for the Raven Graphic.FileName = {res:/Model/Ship/Caldari/CB1/cb1.blue} Icon = null
The icons I am trying to access are from the latest image dump
Thanks
|
|
Agnemon
|
Posted - 2011.05.08 08:11:00 -
[11]
EveAI v1.5 Can someone show me an efficient way of extracting a list of all buildable blueprints including sov and POS structures and T3.
if I use product.Group.Category.Name == "Blueprint"
I have to set up if statements to exclude un wanted items (lots)
This is causing me to lose what little hair I have left
Thanks in advance
|
Agnemon
|
Posted - 2011.05.22 02:16:00 -
[12]
Deep clone question.
EveApi eveApi = new EveApi(); EveAI.DataCore dataCore = new EveAI.DataCore(); EveAI.Product.ProductType bp = new EveAI.Product.ProductType();
I want to deep clone bp (which is always going to be a blueprint) to another object that has all the data of bp plus 3 extra fields (ME, PE and Runs. all ints) added for each blueprint in the tree.
example: Buzzard Blueprint
bp.Blueprint.ManufacturingBaseMaterials[7].Type = "Magpulse Thruster"
so I would like to add the 3 extra fields to both the "Buzzard" blueprint and to the "Magpulse Thruster" blueprint.
anyone have any suggestions?
|
|
|
|