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.
 

EveAI Live (EVE-Online API/class library for .Net/ C#/ VB.Net)

Author
Ssieth
Celestial Inc
Dracarys.
#121 - 2012-09-24 13:53:53 UTC
Hi,

I'm having trouble getting the skill name for skills in the queue (or elsewhere for that matter). Everywhere I try to grab a skill it turns out to be nothing.

So - for example - in the following code:

Dim api As New CharacterSkillQueueApi
Dim skQ As List(Of SkillInTraining)
api.Configuration.Proxy = GetProxy()
api.AuthenticationData = auth
api.UpdateData(EveApiBase.UpdateCharaceristics.Default)
skQ = api.Data
For Each sk As SkillInTraining In skQ
MsgBox(sk.skill.name) ' *** Error
Next
Return ""

The code bombs out at the line marked '*** Error as the variable sk is set to nothing at that point. I understand that this might be that the API doesn't pass the skill name at this point but is there any way I can grab it?

W-Spacer.  Bittervet. 75% PvP, 25% assorted other stuff.

Ssieth
Celestial Inc
Dracarys.
#122 - 2012-09-25 11:03:17 UTC
OK - solved it myself (having spent an evening pondering) :)

I just look up the skill using the skill tree api. My complete code is on pastebin now for anyone who's interested (http://pastebin.com/CXpp3tuz). It's a bit of a mess and needs tidying/commenting.

The program? It takes an existing eve wallpaper (jpg) and creates a new file (png) with my character info overlaid on the top. I combine this with a pre-existing wallpaper changer (http://wallpaperchanger.de) so that I have some pretty wallpaper and character info on my desktop :)

W-Spacer.  Bittervet. 75% PvP, 25% assorted other stuff.

Pell Helix
Aether Ventures
#123 - 2012-10-25 18:57:45 UTC  |  Edited by: Pell Helix
A friend of mine created a nuget packet but doesn't have an active account to post to the forums.

https://nuget.org/packages/EVEAI/2.6.0.0

Disclaimer: No ******* clue, just doing a favor for a friend. Direct all complaints to the monsanto corporation.
Jognu
French Kiss Singularity
#124 - 2012-10-26 13:43:52 UTC
Good idea.

I am waiting for the CREST API to make some tests and implement it on EveAI !

EveAI developper: https://forums.eveonline.com/default.aspx?g=posts&t=21803

Fearitude
OrioGen
#125 - 2012-10-27 09:36:49 UTC
Hi,

I found a bug with the static data PI schematics. Both inputs and outputs are listed in the inputs array.

This can be fixed by changing the StaticDataDataReader ReadBool method to compare to "1" instead of "True".

The fix works perfectly for me but my program only uses PI and production related data so it may cause problems elsewhere.

And thanks for keeping EveAI going, it makes life so much easier :)

Fearitude
Alexander Molotov
KMRD Regiment
#126 - 2012-11-16 20:36:18 UTC  |  Edited by: Alexander Molotov
C# newbie trying to get work this example with valid ID and VCode :)

Quote:
using EveAI.Live;
using EveAI.Live.Character;

class Sample
{
static void Main ()
{
EveApi api = new EveApi (99999, "dsfiosdfsd76sd89f68ds", 99999);
CharacterSheet charSheet = api.GetCharacterSheet ();

Console.WriteLine ("Character " + charSheet.Name + " has " + charSheet.SkillpointTotal + " skillpoints");
Console.WriteLine ("Skills:");
foreach (CharacterSheet.LearnedSkill skill in charSheet.Skills)
Console.WriteLine (skill);
}
}



Quote:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at Sample.Main () [0x0001e] in /home/molotov/eve_domain/start.cs:12
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at Sample.Main () [0x0001e] in /home/molotov/eve_domain/start.cs:12
The application was terminated by a signal: SIGHUP


Using MonoDevelop.

I think GetCharacterSheet returns null... dont know why.
Alexander Molotov
KMRD Regiment
#127 - 2012-11-17 11:39:30 UTC
Also GetServerStatus returns "Server offline, players 0".
When compiled on VS its run without problem..
Johnny Galnetty
School of Applied Knowledge
Caldari State
#128 - 2012-11-18 20:06:31 UTC
Am trying to use vb.net to get the corporationsheet (api.getcorporationsheet() )

No matter what I try I cannot get it to pull the xml (nothing in the cache folder) I can pull getcharactersheet easily enough and the shows in the cache.

If I check the api info for the corp I have been actively polling for the xml in a browser directly from CCP it returns the correct information so I know the api key I have works perfectly.

If anyone has a code block I could take looksee that would be spot on.
Jognu
French Kiss Singularity
#129 - 2012-12-04 17:42:43 UTC
New release !

Quote:
Version 2.6.1.0

  • New static data (Retribution_1.0)
  • There is a bug on the CCP export in the invMarketGroups table with the parentGroupID (some items have a parentID that is not in the table). So if you use this to get market tree, you may have some bug.


Fearitude & Alexander Molotov & Johnny Galnetty : I'll see what I can do.

EveAI developper: https://forums.eveonline.com/default.aspx?g=posts&t=21803

Arloeswr
Tech Builds
Pandemic Horde
#130 - 2012-12-30 17:05:12 UTC
What would be the correct method for pulling in a specific character's standings?

I'd like to be able to compare those to corp standings if possible so I'd want to go through each one (name, and standing level) one at a time to compare them.

Been trying to figure this out all morning but nothing I try is working.

Thanks in advance,
Arloeswr
Barbasja
Patina Corporation
#131 - 2013-01-05 15:16:01 UTC
Hi Jognu and all

Fantastic piece of work you and your predecessor have done with this .NET EveApi wrapper.
I was actually implementing my own basing on the direct HTTP API calls when I decided to follow the link to EveAI. Revelation!!!!. Should have done so long ago and saved a bunch of time Lol

I have one question:
- Is this API a CCP project or a private 3rd party project?
I.e. can we trust this to stay stable and keep being compatible with EVE's API as it (probably) evolves further over time?

Actually I have another:
- Is the source code available?

Thanks for the great job!
Cheers
Jognu
French Kiss Singularity
#132 - 2013-01-07 17:03:32 UTC
New release !

Quote:
Version 2.6.2.0


Johnny Galnetty : you should use a corporation API key to use the GetCorporationSheet() function.
If you want to call the API with a character API, you should use the advanced mode with the CorporationSheetApi, like this : http://pastebin.com/A2ns7Eyz

Arloeswr : you should use the GetCharacterContactList (and define the characterID in your AuthenticationData object).
Quote:
With the Tyrannis expansion, the Standings API has been replaced in favor of the Contact List API.

Source : http://wiki.eveonline.com/en/wiki/EVE_API_Character_NPC_Standings

Barbasja : EveAI is a private 3rd party project. The source code is not available, because I am unable to contact Amida Ta to ask him the permission to publish the sources.
And if I make no mistake, I cannot publish the source without the authorization of the creator ?
But I won't let the project die, if I stop Eve I'll find someone to maintain EveAI.

EveAI developper: https://forums.eveonline.com/default.aspx?g=posts&t=21803

Modescond
Twilight Military Industrial Complex
#133 - 2013-01-07 23:52:27 UTC
The Contact API does not provide a way to retrieve the standings agents, corporations and factions have to you.

The Standings API is the only way to retrieve them.
Jognu
French Kiss Singularity
#134 - 2013-01-08 10:04:40 UTC
Indeed, it seems that someone has edited the wiki page that I linked yesterday.

EveAI developper: https://forums.eveonline.com/default.aspx?g=posts&t=21803

Barbasja
Patina Corporation
#135 - 2013-01-10 18:38:17 UTC  |  Edited by: Barbasja
Jognu wrote:
Barbasja : EveAI is a private 3rd party project. The source code is not available, because I am unable to contact Amida Ta to ask him the permission to publish the sources.
And if I make no mistake, I cannot publish the source without the authorization of the creator ?
But I won't let the project die, if I stop Eve I'll find someone to maintain EveAI.


Alright, fair enough. I will simply continue wit my own .NET implementation. Almost done anyway.

What I particularly like about yours is that all the static data is embedded in the assembly. No more ties to a SQL server or endless YAML files. The size of it alone reveals this. I am still going via the old database, and haven't quite dived into the YAML.

Would it be possible for you to reveal at least how you copy the static data into the assembly? I understand embedding files in assemblies, no worries, but I find it hard to come up with a good way of automatically creating and parsing all the static data into some useful format that I can read and parse in C# when my API implementation instantiates first time. Basically I need some inspiration, and that's what I hoped to get from your source. If you want privacy, feel free to use the mail system instead of posting here.

Thanks in advance
CTV99
Drunken Monkeys Research And Development
#136 - 2013-01-24 04:43:28 UTC
can I get a bit of help please?

I need sample code for looking up stations and items.
Kendha
Native Freshfood
Minmatar Republic
#137 - 2013-01-24 09:56:40 UTC
Thanks for the API, it's just what I need :)
Jognu
French Kiss Singularity
#138 - 2013-01-24 10:03:39 UTC
CTV99 wrote:
can I get a bit of help please?

I need sample code for looking up stations and items.

You want to browse your items ?

EveAI developper: https://forums.eveonline.com/default.aspx?g=posts&t=21803

CTV99
Drunken Monkeys Research And Development
#139 - 2013-01-24 13:33:13 UTC  |  Edited by: CTV99
Nevermind Fixed
CTV99
Drunken Monkeys Research And Development
#140 - 2013-01-26 05:21:09 UTC
Also CorperationWalletTransactionApi() is missing 2 fields that i have 2 have to line up transaction data

transactionDateTime,transactionID,quantity,typeName,typeID,price,clientID,clientName,characterID,characterName,stationID,stationName,transactionType,transactionFor


characterID,characterName are both missing