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
Marcus Ziz
Limitless Momentum
#221 - 2014-05-25 10:45:19 UTC
I've not tried this myself yet, so just a suggestion:
Are you sure that the API key you are using has both the "MailMessages" and "MailBodies" rights enabled? If it is only the former, it could explain your problems :)
Scarna Jenari
The Scope
Gallente Federation
#222 - 2014-05-25 14:10:05 UTC
Drasil wrote:
I have some problems with getting mailbodies (text from the mails). I can get mailmessages (The subject) just fine, but mailbodies are empty. Any idear what I'm doing wrong here?

Quote:
List mailBody = api.GetCharacterMailBodies();
Console.Write(mailBody.Count); // returns 0
mailBody.ForEach(Console.WriteLine);


I'm trying this on a full api. Can anyone help me how to get mailbodies
The API requires a list of mail message IDs to be passed in order to retrieve the bodies. Try passing a list of IDs in the GetCharacterMailBodies method and see if that sorts your problem.
fisk Alabel
The Scope
Gallente Federation
#223 - 2014-06-05 03:04:20 UTC
I have just scratched the surface of this library and it's already aweseome!

Keep up the awesome work :D
Sir Substance
Sebiestor Tribe
Minmatar Republic
#224 - 2014-06-24 01:37:31 UTC
Obviously I'm ******* something up, but I am attempting a really simple call with this library, and it's not working.

EveApi api = new EveApi (SkillYourself.ProgramData.testKey, SkillYourself.ProgramData.testVCode);
this.fuckingWork.Text = api.getApiKeyInfo().AccessMask.ToString();

Is returning a value of 0. testKey is an int, testVCode is a string, and they are from a valid and known working key.

Am I missing something really important?

The beatings will continue until posting improves. -Magnus Cortex

Official Eve Online changelist: Togglable PvP. - Jordanna Bauer

Radelix Cisko
JUMP DRIVE ACTIVE
#225 - 2014-06-30 18:35:58 UTC
First off excellent Library! I am however having an issue when testing whether a character has a skill in training.

using this code:

"omitted code to process keys and whatnot"

EveApi api = new EveApi(KEY, API, USER);
SkillInTraining skill = api.GetCharacterSkillInTraining();

if (skill.IsCurrentlyTraining == true)
label1.Text = "true";
else
label1.Text = "none";

when a character has a skill in the queue this code works as it should by setting label1 to the value "true"

however when I run this with a character with no skills in the queue i receive a null reference exception.

I know i could use a try/catch block to process the response but I'd rather not do that. Is this a bug or is there something I am missing?

Despite my posting prowess I really am terrible at this game

Marcus Ziz
Limitless Momentum
#226 - 2014-06-30 19:30:13 UTC
Radelix Cisko wrote:
using this code:

"omitted code to process keys and whatnot"

EveApi api = new EveApi(KEY, API, USER);
SkillInTraining skill = api.GetCharacterSkillInTraining();

if (skill.IsCurrentlyTraining == true)
label1.Text = "true";
else
label1.Text = "none";

(...)

however when I run this with a character with no skills in the queue i receive a null reference exception.


In which line do you get the exception? If it happens here:
Quote:
if (skill.IsCurrentlyTraining == true)

then you probably need to rewrite that as
Quote:
if (skill != null && skill.IsCurrentlyTraining == true)

since the return value of api.GetCharacterSkillInTraining() could very well be "null" when there is no skill in training.
Radelix Cisko
JUMP DRIVE ACTIVE
#227 - 2014-06-30 22:03:33 UTC
Marcus Ziz wrote:
Wrote words here



good call that appeared to work.

Despite my posting prowess I really am terrible at this game

Jognu
French Kiss Singularity
#228 - 2014-07-27 17:30:52 UTC
Hello guys,
Sorry for the delay since the last release, not a lot of free time to work on EveAI.

I have two weeks of vacation, my goal is to release the version before the end, with all missing things since the last release.
And the source code repository will be available, so if you want to help, raise your hand !

Things that's need to be improved :

  • For the moment the static files embded in EveAI Core are really boring to include : import yaml and other SDE files to SQL Server, export from SQL Server, transform files...
  • Maybe some old code to remove, things that nobody use (like the "callAPI function")
  • We really need a documentation
  • Maybe a version "without static files" for a smaller dll
  • Windows phone version
  • And of course implementing new CCP or 3dr party API !

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

Dareth Astrar
Astrar Logistics and Engineering
#229 - 2014-07-31 10:25:09 UTC
Please feel free to contact me, perhaps I can help with some time on project as well. Smile
Radelix Cisko
JUMP DRIVE ACTIVE
#230 - 2014-08-06 16:12:03 UTC
Thanks for the update. Please let me know if I can help in any way.

Despite my posting prowess I really am terrible at this game

Cesar Malari
Perkone
Caldari State
#231 - 2014-08-20 21:28:29 UTC
Any update? Do you have this somewhere where you can take contributions from the rest of us (like GitHub)?
Jognu
French Kiss Singularity
#232 - 2014-08-26 18:15:07 UTC
Thanks to people who propose for help !

Yes the source code will be available so anyone can contribute.
I am a bit late, I just finished all my changes on the API.
I just need to update the static data and I publish the new version.

(the static data update is really...painful, if someone don't know what to do when I published the source code, it will be a good thing to enhanced !)

I changed a lot lot lot of things to make a cleaner code, more easy to use and maintain.

I planned to release everything this week-end !
(with...documentation !)

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

Radelix Cisko
JUMP DRIVE ACTIVE
#233 - 2014-08-28 01:41:29 UTC
I am excited in the most nerdy of ways!

Despite my posting prowess I really am terrible at this game

Jognu
French Kiss Singularity
#234 - 2014-08-31 22:52:20 UTC
I just finished the last modifications !

Need some sleep, tomorrow I write the big changelog and I publish !

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

Jognu
French Kiss Singularity
#235 - 2014-09-01 17:01:39 UTC
And here we are. You and me, on the last page.
A new release after....a couple of time (yeah, sorry about that).

What is not on this release :

  • the REST functions. But they will come soon. All the new XML functions (including the Blueprints) are in this release.
  • the source code : I'll published everything later this week (with a public repository), just need a bit more time to add licence, etc. And I didn't want to make you wait more time ! (I count on you to correct my english on README.md as soon as the source code will be available !)


So now what is on the release. Well, everything below. I recommand you to read the changelog, at least the first lines.
I didn't re-tested every functions before publishing, so checked that everything is still good on your application !

Quote:

Version 3.0.0.0
EveAI.Live :
  • An applicationName parameter is now mandatory to create the EveApi object. The applicationName is used in the userAgent
  • You no longer need to use "advanced mode" when you want to call an API function with parameter. Now you can call functions from the EveApi object methods
  • A couple of functions/classes has been renamed. If your code is no longer valide don't worry, you just need to find the new name (sorry the renaming are not in the changelog)
  • A lot, lot, lot of background changes to have a better code
  • New static data (Hyperion_1.0_101505)
  • Complete static data : http://alienswarm.csnu.org/Hyperion/EveAI.Data.zip (temporary link)
  • Implementation of the OwnerID API : GetOwnerInformations
  • Implementation of the CharacterAffiliation API : GetCharacterAffiliation
  • Implementation of the PI API endpoints : GetCharacterPlanetaryColonies, GetCharacterPlanetaryLinks, GetCharacterPlanetaryPins, GetCharacterPlanetaryRoutes
  • Implementation of the Customs Offices API : GetCorporationCustomsOffices
  • Implementation of the Corporation Facilities API : GetCorporationFacilities
  • Implementation of the Character and Corporation IndustryJobsHistoryApi (same as IndustryJobsApi but with historic)
  • Implementation of the Character and Corporation BlueprintsApi
  • Changes on Character and Corporation IndustryJobsApi to match CCP changes
  • New informations for GetAccountCharacters : allianceID, allianceName, factionID, factionName, faction
  • New information for GetCharacterSheet : factionID, faction
  • New information for GetCharacterMailMessagesHeader : senderName
  • New informations for GetCharacterInfo : factionID, factionName, faction and corporationName for employment history
  • New information for GetCorporationSheet : factionName
  • New informations for GetMapFactionalOccupancy : victoryPoints, victoryPointThreshold
  • New documentation files

EveAI.Core :

  • Remove ramAssemblyLines & ramTypeRequirements static data importation.
  • Add BaseCostMultiplier to AssemblyLineType.
  • Add FactionID to ProductType.
  • Add DuplicatingTime, ReverseEngineeringTime and InventionTime to BlueprintType.

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

Numen Anomalie
sonyc live
#236 - 2014-09-01 22:37:59 UTC
As soon as the source code to this hits public release, i bet a lot of us, including me, will jump it like a fat kid jumps a floor dropped cookie and nurture it untill it has the size of a cake!!! Honestly, can`t wait to start building upon it.


__,--* . EveAIGods
Numen Anomalie
sonyc live
#237 - 2014-09-12 13:08:33 UTC
Any update? (waiting in hopes and dreams)
Jognu
French Kiss Singularity
#238 - 2014-09-14 18:41:23 UTC
Yes !

Here is the public repository : https://bitbucket.org/Jognu/eveai

Send me a request and I'll give you access to it !
You can also fork and do pull requests if you prefer to work on your side.

I already created a couple of "issues" to discuss the futurs enhancement !

Try to follow the existing structure when you add things !

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

Numen Anomalie
sonyc live
#239 - 2014-09-16 12:08:20 UTC  |  Edited by: Numen Anomalie
thank u the coolness can commence!

as soon as we have some updates we will post them.!

make sure that others can`t edit and update the document without your agreement. otherwise it will get a mess.
Rigeborod
Seven Crafts
#240 - 2014-11-13 17:59:30 UTC
First of all, thanks for all your efforts.

Also can anybody give a link to EveAI.Data.zip for Phoebe?