Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 18 19 20 .. 26 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 2 post(s) |
Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.18 13:56:00 -
[451]
EveApi api = new EveApi(); EveAI.DataCore core = api.EveApiCore;
EveApi api2 = new EveApi(false); api2.EveApiCore = core; |
Tiradem
|
Posted - 2010.03.18 20:41:00 -
[452]
Originally by: Amida Ta EveApi api = new EveApi(); EveAI.DataCore core = api.EveApiCore;
EveApi api2 = new EveApi(false); api2.EveApiCore = core;
Sorry, I dont understand... What does the DataCore do? what is the (false) for? Can someone explain this a little bit? |
Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.18 20:51:00 -
[453]
Edited by: Amida Ta on 18/03/2010 20:52:55 Edited by: Amida Ta on 18/03/2010 20:52:17
Originally by: Tiradem
Originally by: Amida Ta EveApi api = new EveApi(); EveAI.DataCore core = api.EveApiCore;
EveApi api2 = new EveApi(false); api2.EveApiCore = core;
Sorry, I dont understand... What does the DataCore do? what is the (false) for? Can someone explain this a little bit?
The false is for the parameter "autoCreateDataCore" and setting it to false means that the DataCore isn't automatically created (The documentation says: "Controls the creation of default static Eve data."). DataCore itself is an object that holds the important parts of the EVE static data (the data that CCP releases as SQL-Database) and is used to automatically give you rich information for your API calls that contains much more information than the CCP online API does actually deliver. |
Ijam
|
Posted - 2010.03.20 15:17:00 -
[454]
Hi, I seem to be having a problem retrieving market order info when using the GetCharacterMarketOrders method. I always get an empty list return and I know the my toon has outstanding sell orders. I can even see them in EVE HQ...
I am using the full API key, and I can retrvieve basic info like name, gender, mail, and skills. So I know my EVEAI object is valid.
Do I need to do some "special" initialization before this method will work?
Any pointers and/or code snippets appreciated...
|
Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.20 17:25:00 -
[455]
Edited by: Amida Ta on 20/03/2010 17:26:57 I guess your problem is that you aready get the list with EveHQ. ("I can even see them in EVE HQ") You can only retrieve the list once. If you retrieve it with EveHQ you cannot again retrieve it with EveAI until the cache time is over (and vice versa). You would need to use an API proxy (if EveHQ supports that).
To test that you can check the errors (you can use the test application to easily do that). _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |
sunflower Rose
|
Posted - 2010.03.21 07:29:00 -
[456]
HiAmida,
You were right. The orders are coming through now without changing any code. Thanks
|
Nig C
|
Posted - 2010.03.21 10:58:00 -
[457]
Hello Amida Ta,
I am NigC from Project Stealth Squad. I found EveAI_Live via Eve Development Network and I'm very thanksfull for this great Library. To work with is that easy
But I miss the Attributes of a Product (dgmTypeAttribute and dgmAttributeType inside the Datadump)
Will you ever implement them?
regards, NigC
|
Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.21 17:54:00 -
[458]
Hi,
adding that would quite a bit of work and I don't need them myself at all. But for a moderate ISK donation I think I could add them *g*
Greetings _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |
Evo YaMing
|
Posted - 2010.03.26 13:13:00 -
[459]
Hi Amida! I am having trouble to find Productstatistics for a specific region via evecentralmarketapi. I can get the Productstatics for the Universe but has soon as i try to specify a region i am getting a empty list back. There was a Forum post in this section with this problem in the past but noone had a solution so i am asking again.
Code:
EveAI.DataCore dataCore = new EveAI.DataCore(); EveAI.DataReader reader = new EveAI.StaticDataDataReader(dataCore); reader.Read(EveAI.DataTypes.Products); EveCentralMarketApi marketApi = new EveCentralMarketApi(dataCore);
System.Collections.Generic.List<EveAI.Product.ProductType> components = new System.Collections.Generic.List<EveAI.Product.ProductType>(); product = dataCore.ProductTypes.First(p => p.Name == "Nanotransistors"); components.Add(product); product = dataCore.ProductTypes.First(p => p.Name == "Tungsten Carbide"); components.Add(product); int regionID = 10000002; // The Forge region = dataCore.FindRegion(regionID); System.Collections.Generic.List<EveAI.Live.Market.ProductStatistics> eveCentralProductPrices = new System.Collections.Generic.List<EveAI.Live.Market.ProductStatistics>(); eveCentralProductPrices = marketApi.GetProductStatistics(components,region );
Anybody got a solution or has a guess why this is not working.
Thx
|
Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.26 15:15:00 -
[460]
reader.Read(EveAI.DataTypes.Products); Will only read product types. However later you try to get region data with dataCore.FindRegion(regionID); which should then return null. So you likely call eve central with null as region. _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |
|
Evo YaMing
|
Posted - 2010.03.26 21:04:00 -
[461]
Sorry Amida i posted some **** of Code. But i have done my homework now. So here is my Code again //----Components Selection---------------------------------------------------------------------------- EveAI.DataCore dataCore = new EveAI.DataCore(); EveAI.DataReader readerPro = new EveAI.StaticDataDataReader(dataCore); readerPro.Read(EveAI.DataTypes.Products); System.Collections.Generic.List<EveAI.Product.ProductType> components = new System.Collections.Generic.List<EveAI.Product.ProductType>(); EveAI.Product.ProductType product = new EveAI.Product.ProductType(); product = dataCore.ProductTypes.First(p => p.Name == "Nanotransistors"); components.Add(product); product = dataCore.ProductTypes.First(p => p.Name == "Tungsten Carbide"); components.Add(product); // EVE - Regionen Selection--------------------------------------------------------------------------------------------- //Regionenauswahl EveAI.DataCore dataCoreReg = new EveAI.DataCore(); dataCoreReg = new EveAI.DataCore(); EveAI.DataReader reader = new EveAI.StaticDataDataReader(dataCoreReg); reader.Read(EveAI.DataTypes.BasicMapData); System.Collections.Generic.List<EveAI.Map.Region> region = new System.Collections.Generic.List<EveAI.Map.Region>(); EveAI.Map.Region myregion = new EveAI.Map.Region(); myregion = dataCoreReg.Regions.First(p => p.Name == "The Forge"); //myregion = dataCoreReg.FindRegion(regionID); region.Add(myregion); // GEt Stats from EVECentral------------------------------------------------------------------------------------------ EveCentralMarketApi marketApi = new EveCentralMarketApi(dataCore); System.Collections.Generic.List<EveAI.Live.Market.ProductStatistics> eveCentralProductPrices = new System.Collections.Generic.List<EveAI.Live.Market.ProductStatistics>(); long myquant = 20000; TimeSpan mytime = new TimeSpan(2, 12, 0, 0); eveCentralProductPrices = marketApi.GetProductStatistics(components, region, mytime, myquant); //-------------------------------------------------------------------------------------------------------------------- //35910.490688192.168.0.10038.113.114.184HTTPGET /api/marketstat?typeid=16681&typeid=16672®ionlimit=-1&hours=60&minQ=20000 HTTP/1.1 //i captured the HHTP request with Wireshark -------- look at the regionlimit=-1
Looks like i am having trouble with the region. But i dont know where the Problem is because when i am debugging the code step by step i have got the correct region.
|
Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.27 16:54:00 -
[462]
Edited by: Amida Ta on 27/03/2010 16:54:42 Your handling for DataCore is still incorrect. You should only have ONE DataCore and not mulitiples. In your concrete case the problem is that the DataCore you create for the region data is not associated to the MarketAPI.
Solving your problem is simple (this will also make your code faster and save memory): readerPro.Read (EveAI.DataTypes.Products | EveAI.DataTypes.BasicMapData); This reads both into a single DataCore. Then throw out your entire second datacore creation/loading/usage. _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |
skyk
|
Posted - 2010.03.28 14:44:00 -
[463]
Hi Amida, thanks for a great library and I have acouple of questions.
1) How to find the meta-level of an item? doesnt seem to be available in the ProductType.
2) What is the standard way of supporting the Tech 2 mark on graphics/icons, as there are no default T2/T3/faction icons? Is it just to overlay the appopriate tag over the image?
3) Icons: I have downloaded the Domination images cache and and simply loading the required image using the ProductType.Graphic.UrlIcon member. Is this the best way, or am I missing something simple and clever :)
Cheers. :)
EveApi api = new EveApi(false); DataCore dataCore = new DataCore(); DataReader reader = new EveAI.StaticDataDataReader(dataCore); reader.Read(DataTypes.Stations | DataTypes.Graphics | DataTypes.Products | DataTypes.BasicMapData); api.EveApiCore = dataCore;
|
Evo YaMing
|
Posted - 2010.03.29 09:46:00 -
[464]
A now everyything works fine. Big thanks Amida.
|
ipavlu
|
Posted - 2010.03.30 03:32:00 -
[465]
Hi Amida Ta,
first of all, thanks for this library :). Second, I would like ask, if there is posibility to get images of corp members?
Thanks very much for info.
ipavlu
|
Nig C
|
Posted - 2010.03.30 07:25:00 -
[466]
Hello ipavlu!
First of all, use an Objekt-Browser like that one in Visual Studio 2008 and browse the EveAI.Core and EveAI.Live, then you will see how big Amida's Library is and what you can do with
Originally by: ipavlu ...if there is posibility to get images of corp members...
EveAI.Live.CharacterImage.Download(characterID as Long, size as EveAI.Live.CharacterImage.Size) as System.Drawing.Image
Dim charID as Long Dim size as EveAI.Live.CharacterImage.Size Dim image as System.Drawing.Image
charID = xxxxxxxx size = EveAI.Live.CharacterImage.Size.Large
image = EveAI.Live.CharacterImage.DownloadImage(charID, size)
Picturebox1.Image = image
- Nig C
|
Captain Nomad
|
Posted - 2010.03.30 09:40:00 -
[467]
For what is worth it, the function GetProductStatistics() for Eve Central is broken when used with a given ProductType and a single Region, returns all 0. It works without specified Region. Other than that looks like a great library, thanks for posting it.
|
Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.30 14:43:00 -
[468]
Originally by: Captain Nomad For what is worth it, the function GetProductStatistics() for Eve Central is broken when used with a given ProductType and a single Region, returns all 0. It works without specified Region. Other than that looks like a great library, thanks for posting it.
Works for me and others. Maybe you have the same problem as Evo YaMing had some posts above? _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |
Admiraliss
|
Posted - 2010.04.03 15:58:00 -
[469]
hey, is it possible to compile also for the windows mobile 6 compact framework ?
|
Sidrat Flush
Caldari Audit Services Inc
|
Posted - 2010.04.05 14:29:00 -
[470]
Are there tutorials in using the EveAI live libraries.
I guess I'm having a hard time picturing how things fit together in the way of variable declaration and referencing the api imported information in form views etc.
View The Eve Industrial Organiser Site
|
|
Nig C
|
Posted - 2010.04.05 17:40:00 -
[471]
Originally by: Sidrat Flush Are there tutorials in using the EveAI live libraries.
Don't think so, but there is a WIKI @ Eve-Development Network, and if we all work together, may it becomes better than some tuts
-NigC
|
Evo YaMing
|
Posted - 2010.04.07 12:25:00 -
[472]
i recognized something. Somehow LowSec POSes need with this Library Starbase chartes while Highsec and Wormhole Poses dont need those Charters. Anybody can confirm this?
|
Tiradem
|
Posted - 2010.04.07 21:39:00 -
[473]
Any examples of how to load the character skill tree into a tree view in C#? I had the skills loaded in a dataGrid and it worked perfectly for 2 of my characters, but I got an error when I tried it on my third character. However I think a treeview would be a nicer way to orginize the skills.
|
skyk
|
Posted - 2010.04.08 18:29:00 -
[474]
Simple but it works...
public void PopulateControl(EveApi api) { CharacterSheet cs = api.GetCharacterSheet(); treeView1.Nodes.Clear();
foreach (CharacterSheet.LearnedSkill s in cs.Skills) { TreeNode[] groupArray = treeView1.Nodes.Find(s.Skill.GroupName, false); TreeNode skill = new TreeNode(s.Skill.Name + " - Level " + s.Level); skill.Tag = s;
if (groupArray.Length == 0) { TreeNode group = new TreeNode(s.Skill.GroupName); group.Name = s.Skill.GroupName; group.Nodes.Add(skill); treeView1.Nodes.Add(group); } else { groupArray[0].Nodes.Add(skill); } }
treeView1.Sort(); }
|
Sidrat Flush
Caldari Audit Services Inc
|
Posted - 2010.04.09 16:38:00 -
[475]
Edited by: Sidrat Flush on 09/04/2010 16:40:50 skyk
Thanks for the code snippet, my real problem is having no idea where the code goes?
Program.cs, form.cs, or somewhere totally different.
What references are used if any apart from eveai.core.dll and eveai.live.dll
thanks for the answers and any other tips you can give a new Visual C# 2008 Express 'developer'
View The Eve Industrial Organiser Site
|
Burnmate
|
Posted - 2010.04.10 08:57:00 -
[476]
if i try to get the CorporationStarbaseDetail i get this error ErrorFromOnlineUserInputInvalid
is normal?
|
Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.04.10 11:32:00 -
[477]
Edited by: Amida Ta on 10/04/2010 11:33:18
Originally by: Burnmate if i try to get the CorporationStarbaseDetail i get this error ErrorFromOnlineUserInputInvalid
is normal?
This is normal if you didn't supply a correct StarbaseID (if you are using the Test application you can find it under Advanced->Authentication) or you don't have the neccessary rights in your cooperation. If you look at the errors list it will contain the exact reason (like InputInvalidItemID) _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |
Burnmate
|
Posted - 2010.04.10 11:58:00 -
[478]
Edited by: Burnmate on 10/04/2010 12:02:46
Originally by: Amida Ta Edited by: Amida Ta on 10/04/2010 11:33:18
Originally by: Burnmate if i try to get the CorporationStarbaseDetail i get this error ErrorFromOnlineUserInputInvalid
is normal?
This is normal if you didn't supply a correct StarbaseID (if you are using the Test application you can find it under Advanced->Authentication) or you don't have the neccessary rights in your cooperation. If you look at the errors list it will contain the exact reason (like InputInvalidItemID)
i'm using my full api and i can see all others info without problem
emm ok i see what u was saying ^^ i was thinking the option show all the status of all pos :D
|
Suratra
|
Posted - 2010.04.12 10:50:00 -
[479]
Hello,
First of all, great work, but still a few questions:
- where can i get the correct information about Wastage, ME and PE of an invented T2 BPC? I always get the results like a standart ME -4 - is there any way to get a update more often than 24 hours for Corporation Assets? - when i do an "advanced" call, does a changed Updatemechanism also changed for "simple" call? - can i change the location where the cache in saved on Harddisk? - how can i clean the cache from code? Ok, i can unload eveai, delete the files, and reload, but i like to force an online update in simple mode.
Thanks for answering, Suratra
|
Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.04.12 11:29:00 -
[480]
Edited by: Amida Ta on 12/04/2010 11:29:39 Answers inline
Originally by: Suratra
- where can i get the correct information about Wastage, ME and PE of an invented T2 BPC? I always get the results like a standart ME -4
Could you give an example? And what did you expect?
- is there any way to get a update more often than 24 hours for Corporation Assets?
No, thats a limit of the CCP APIs, not of EveAI.Live
- when i do an "advanced" call, does a changed Updatemechanism also changed for "simple" call?
Yes, both will use the same disk cache (unless you would change it). However memory-cache would not work when mixing both variants.
- can i change the location where the cache in saved on Harddisk?
EveApiBase.Configuration.BaseDirectory However I would strongly advice against changing it because it means if you use several applications using EveAI.Live they will get incorrect cache data or will not be able to get data at all.
- how can i clean the cache from code? Ok, i can unload eveai, delete the files, and reload, but i like to force an online update in simple mode.
You cannot force an online update. The update times are enforced by the CCP API. If you delete the cache files you CAN get EveAI to recall the CCP APIs but the CCP APIs will either return OLD data (the same data you already had cached) or they will just return an error. So doing what you are trying to do is utterly useless.
Thanks for answering, Suratra
_________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |
|
|
|
|
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 18 19 20 .. 26 :: one page |
First page | Previous page | Next page | Last page |