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.
 

[EveLib] A .NET library for EveXML, CREST, EveCentral, and more

First post
Author
Icahmura Hasaki
Perkone
Caldari State
#81 - 2014-07-26 19:14:15 UTC
Hey there, I'll have a look and have it fixed by tomorrow. Did you pull it from git, or are you using nuget ? I would prefer not having to push a nuget release for this bugfix alone, but if you're unfamiliar with github I could help you out.

Developer of EveLib and EveAuthUtility

Squornshellous Zeta
BioDyne
#82 - 2014-07-26 19:25:01 UTC
I got the files from nuget, because I just wanted the DLLs. If there's a way to get the DLLs directly from github, then I'd be happy to get them from there...

But I can get the latest from github & recompile myself if that's easier.

Thanks for the quick response!

- SZ
Icahmura Hasaki
Perkone
Caldari State
#83 - 2014-07-27 12:02:49 UTC
So, I've tested this and it seems to be working, both the regular call and the async version. Have you tried any other endpoints? It would help if you could find out if it's only this one that doesn't work for you. I'm not familiar with VB, but I would assume it should work just fine.

Developer of EveLib and EveAuthUtility

Squornshellous Zeta
BioDyne
#84 - 2014-07-27 18:12:50 UTC
Very confusing.

I tried these CREST endpoints, with the following results:

  • /incursions/
  • Worked fine, all data returned
  • /alliances/
  • Worked fine, all data returned. Was a little confusing on the returned values, but I figured it out.
  • /market/prices/
  • Sort of worked; got the correct number of items, but each item's name was blank, and the id was 0. The prices were correct though (based on a manual browser request).
  • /industry/systems/
  • Still gets the correct number of systems, but the SolarSystems object is nothing.

Do you have a short C# example I can try here? Maybe I'm doing something wrong, or VB.NET handles things differently.

Feel free to PM or EVEMail me if you want to take this offline.

Thanks for your help!

- SZ
Icahmura Hasaki
Perkone
Caldari State
#85 - 2014-07-27 20:33:05 UTC
Ok, so I fixed a bug with market/prices, which will be pushed tomorrow, that should fix the missing id and name. And if you wouldn't mind telling how the alliances/ endpoint was confusing, I could maybe fix that as well. As for the industry systems, I still can't figure out why it doesn't work, especially as all the others seem to work. What's strange is also that the list should never be null, if there are no entries it should be an empty list.

You can try this

class Test
{
static void Main(string[] args)
{
var crest = new EveCrest();
var response = crest.GetIndustrySystems();
Assert.IsNotNull(response.SolarSystems);
}

}

Developer of EveLib and EveAuthUtility

Squornshellous Zeta
BioDyne
#86 - 2014-07-27 22:27:27 UTC
Thanks for the updates.

Interestingly, your sample C# code worked fine! There must be something the VB.NET does differently, or expects some sort of different response. Or I still have it set up incorrectly (though I tried to match the C# example).

When I look at the response in C# there are 2 objects, "base" and "SolarSystems". The "base" object is of type CrestIndustrySystems and contains the two scalars "PageCount" and "TotalCount". The "SolarSystems" object is a list of SolarSystemEntry objects.

When I look at the repsonse in VB.NET, there are 3 objects, "PageCount", "TotalCount", and "SolarSystems", where the scalars are correct and the SolarSystems is Nothing.

So I guess that means for now, if I want to get the System Cost Index, I'll need to use C#! P

As for the Alliances, I was expecting to get back just a list of Alliance objects, but instead you return a CrestHref(Of CrestIconEntity). Then for each CrestIconEntity, I needed to call GetAlliance() passing the ID, which then returns the Alliance object. It works, I just wasn't expecting an intermediate layer.

Let me know if you happen to find anything regarding VB.NET, but for now I'll continue with C# and see if I can get further!

Thanks,

- SZ
Icahmura Hasaki
Perkone
Caldari State
#87 - 2014-07-30 10:45:41 UTC
A new version is up.

Release notes:
EveLib v2.0.2

    Added support for Industry/Facilities/
    Added support for new version of Industry/Teams/
    Fixed a bug in Industry/Systems/

Developer of EveLib and EveAuthUtility

Lucas Kell
Solitude Trading
S.N.O.T.
#88 - 2014-08-07 07:12:25 UTC  |  Edited by: Lucas Kell
Your GetWars method doesn't pass the page though to the GetWarsAsync method, so always return page 1.

Handy library though. Thanks.

The Indecisive Noob - EVE fan blog.

Wholesale Trading - The new bulk trading mailing list.

Icahmura Hasaki
Perkone
Caldari State
#89 - 2014-08-08 19:01:23 UTC
Thanks, I've pushed a fix for this as well as some other fixes to github. I'll be adding a nuget release in a week or so.

Developer of EveLib and EveAuthUtility

Squornshellous Zeta
BioDyne
#90 - 2014-08-17 04:30:41 UTC
I'm trying to get the attribute values from a character, and it seems the charactersheet Attributes structure returns nothing.

Looking at the code, it appears that the attributes are just not being parsed from the XML when calling the API. All the other parts of the Character Sheet seem to be there (through I haven't done an exhaustive check).

Thanks,

- SZ
Icahmura Hasaki
Perkone
Caldari State
#91 - 2014-08-17 22:43:09 UTC
Thanks for the feedback. I'll be travelling for the next few days, but I'll have a fix for this as well as some other bugs ready by the end of the week. As usual I'll post it here, and I'll update Nuget as well. :)

Developer of EveLib and EveAuthUtility

Squornshellous Zeta
BioDyne
#92 - 2014-08-22 05:20:14 UTC
Would it be possible to give an example of how to access some of the asset information? I can get the asset list of a character through the "character.GetAssetList()", and all the assets I expect are there. But I'm trying to get additional information such as name, group, location, etc.

For example, if I have an asset, one of it's properties is "typeID". Now we should be able to use that to get the item's name. Is there already a lookup I can do to get the name from the typeID?

Same question for "locationID". I can't seem to find the lookup for a locationID to a name.

Thanks!

- SZ

Icahmura Hasaki
Perkone
Caldari State
#93 - 2014-08-22 11:01:05 UTC  |  Edited by: Icahmura Hasaki
For types you can use https://neweden-dev.com/EVE/TypeName

Or you can use the SDE if you need better response times than the API gives you.

For locations you probably have you use the SDE.

Developer of EveLib and EveAuthUtility

Icahmura Hasaki
Perkone
Caldari State
#94 - 2014-08-23 09:19:37 UTC
I've pushed a new version with the latest bug fixes to nuget. Please keep providing feedback and bug reports :)

Developer of EveLib and EveAuthUtility

Dareth Astrar
Astrar Logistics and Engineering
#95 - 2014-09-12 09:49:41 UTC  |  Edited by: Dareth Astrar
Using the last build in NuGet, 2.0.3 I have noticed issues getting Blueprints back for a Corporation.

Examination of the Cache folder shows the blueprints XML content appears to have been returned correctly, but it seems to fail to be De-serialized correctly.
Icahmura Hasaki
Perkone
Caldari State
#96 - 2014-09-12 11:19:18 UTC
Noted, I'll have a look.

Developer of EveLib and EveAuthUtility

Dareth Astrar
Astrar Logistics and Engineering
#97 - 2014-09-12 11:22:33 UTC
Thank you sir :)
Icahmura Hasaki
Perkone
Caldari State
#98 - 2014-09-12 11:43:22 UTC
I must have been drunk when implementing that endpoint. I've pushed a fix to github, I'll update nuget when I've accumulated a few more fixes. Will you be able to compile it yourself?

And, did you also send me an email on the same issue? So I know if I have to reply to the email or not.

Developer of EveLib and EveAuthUtility

Icahmura Hasaki
Perkone
Caldari State
#99 - 2014-09-12 14:05:10 UTC
I've pushed a fix for a bug with the caching. This affected the Blueprint endpoint, and possibly others. After updating, you should delete/clear the cache directory. I've also fixed a bug with parsing TimeEfficiency.

Cache folder is most likely in: C:\Users\'user'\AppData\(roaming or local)\EveLib for windows users, others should know where to find it. Big smile

Developer of EveLib and EveAuthUtility

Elojs
White Cottage Holdings
#100 - 2014-09-14 16:35:46 UTC
Are there any plans to create .DLL's with static endpoints so I can write PHP wrappers to use the library?

Thanks for the work.

Paul