Pages: 1 2 3 4 5 6 7 [8] 9 10 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Kaydar ArX
Black Thorne Corporation Black Thorne Alliance
0
|
Posted - 2014.02.13 10:44:00 -
[211] - Quote
Hello guys, and first of all, thanks Jognu for keeping this alive.
Noob questions ahead, but I guess you have to start somewhere.
1- I managed to retrieve and display my character assets, or at least partially, not sure if api.GetCharacterAssets() also returns the content of containers in station. So I get a list of asset, with itemID, ItemType etc, but how do I convert those datas to the ingame items names?
2- I'd like to sort that list of assets per solar system (every assets located in Jita for example) using LocationSolarSystem. It looked easy...But I can't find a way to compare an object of type EveAI.Map.SolarSystem to a String ("Jita").
Thanks in advance! |
Saulvin
Merkabah Industries Invisible Exchequer
3
|
Posted - 2014.02.13 18:05:00 -
[212] - Quote
Kaydar ArX wrote:Hello guys, and first of all, thanks Jognu for keeping this alive.
Noob questions ahead, but I guess you have to start somewhere.
1- I managed to retrieve and display my character assets, or at least partially, not sure if api.GetCharacterAssets() also returns the content of containers in station. So I get a list of asset, with itemID, ItemType etc, but how do I convert those datas to the ingame items names?
2- I'd like to sort that list of assets per solar system (every assets located in Jita for example) using LocationSolarSystem. It looked easy...But I can't find a way to compare an object of type EveAI.Map.SolarSystem to a String ("Jita").
Thanks in advance!
1) yes the call will return contents of containers but not as a flat list. you will have to trace container contents manually. the items name can be fetched using
EveApi.EveApi.Core.FindProductType(asset.TypeID);
here some example code via pastebin as forum refuses it complaining its containing html code.
ProcessContents(..)
2) what you can do is group the asset list by solar system using the name;
var groupedBySolarSystem = contents.GroupBy(p => p.LocationSolarsystem.Name);
then deal with each solar system separately. or have the list sorted by solar system name
var sortedBySolarSystem = contents.OrderBy(p => p.LocationSolarsystem.Name); and go from there.
hope it helps
Saulvin
|
Angolius Hojo
Critical Degree
0
|
Posted - 2014.03.04 00:41:00 -
[213] - Quote
Thanks for the API wrapper, nice and easy to use :)
But I am struggling a bit with one thing, I am trying to implement an "Edit API key" feature, but i'm finding it hard to be able to verify that both the Key ID and the Verification code are working. I can get it to detect when it's not a valid Key ID but having a harder time checking that the verification code is correct.
It could be a good idea to add a method in the EveApi class, that test if the key is valid. And if there already is tell me, but I haven't found one. |
Averius Kusoni
Finicky Financiers
0
|
Posted - 2014.03.07 06:32:00 -
[214] - Quote
Question, is it possible to look-up(and return) an Asset type via a TypeID? I'm interested in using the Eve-Central API against a list of TypeIDsI. Any suggestions? |
Xekirei
Boinas Rojas CO. Gentlemen's Agreement
0
|
Posted - 2014.03.15 10:02:00 -
[215] - Quote
Could anyone write a little example to obtain skills required for a ship from datacore or EveAI lib? thank you. |
Wafflehead
Hurricane Research
77
|
Posted - 2014.03.22 11:47:00 -
[216] - Quote
System.IO.FileLoadException: Could not load file or assembly 'EveAI.Live, Version=2.6.7.0, Culture=neutral, PublicKeyToken=670e812152ebd673' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'EveAI.Live, Version=2.6.7.0, Culture=neutral, PublicKeyToken=670e812152ebd673'
Getting this error when trying to use the latest files? |
Jognu
French Kiss Singularity Astromechanica Federatis
41
|
Posted - 2014.04.21 14:11:00 -
[217] - Quote
New release with source code on a public repository should coming soon ! EveAI developper: https://forums.eveonline.com/default.aspx?g=posts&t=21803 YamlToSQL developper: https://forums.eveonline.com/default.aspx?g=posts&t=178572 |
Marcus Ziz
Limitless Momentum
0
|
Posted - 2014.05.03 00:33:00 -
[218] - Quote
Hi everyone,
Did any of you have any success in running EveAI under Linux using Mono? I can't seem to get it to work...
From what I can tell, it seems that EveAI can't find or create the cache file, and when using the advanced mode API without cache (.UpdateData(EveApiBase.UpdateCharaceristics.OnlineOnly)), it still returns ErrorGeneric with ClientDownloadError in the list of errors. The only hint I could find was that this might be caused by proxy settings, but I don't think I have those on my server -- it is a hosted server though, so I guess it is not impossible. Every other program I've tried seems to run without any special settings, though.
My test application:
Quote:static void Main() { EveApi api = new EveApi(9999, "CodeCodeKeyCodeCode", 9999);
CharacterSheet charSheet = api.GetCharacterSheet();
Console.WriteLine("Result: " + api.LastUpdateResult);
if (api.LastErrors.Count > 0) { foreach (var err in api.LastErrors) Console.WriteLine("\t" + err); } else { Console.WriteLine("Character " + charSheet.Name + " has " + charSheet.SkillpointTotal + " skillpoints"); Console.WriteLine("Skills:"); foreach (CharacterSheet.LearnedSkill skill in charSheet.Skills) Console.WriteLine(skill); }
Console.ReadKey(); } This runs fine under Windows, but returns this under Linux:
Quote:Result: ErrorGeneric ClientMissingCacheFile ClientDownloadError ClientMissingCacheFile
Also, it takes about 2 minutes or so for the output to finally show up, no clue if that is relevant though.
Any ideas?
The server is running Ubuntu 12.04.4 LTS, with an up-to-date Mono (compiled from current git one day ago). I am compiling the source using Visual Studio 2013 Express, and then copy it to my Linux server. |
Marcus Ziz
Limitless Momentum
0
|
Posted - 2014.05.04 11:15:00 -
[219] - Quote
Found it! Well, at least one half of it, the cache problem still eludes me for the moment (although I will continue to hunt for it).
EXPLANATION The "ClientDownloadError" was caused by Mono not having a pre-populated SSL Certfificate Store containing trusted root certificates, like windows does. This caused an SSL verification error in the WebClient class used by EveAI, causing the whole thing to fail. It also happens when running the app with Mono under Windows, although there it always threw the SSL certificate error even when querying HTTP instead of HTTPS, while under Linux it returned with a timeout in the HTTP case (which explained the long wait for any output in my last post).
HOW TO FIX
Hope this helps :) |
Drasil
Blue Horse Exploration LTD
1
|
Posted - 2014.05.23 12:07:00 -
[220] - Quote
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. |
|
Marcus Ziz
Limitless Momentum
0
|
Posted - 2014.05.25 10:45:00 -
[221] - Quote
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 :) |
Marcus Ziz
Limitless Momentum
1
|
Posted - 2014.05.25 10:45:19 -
[222] - Quote
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
New Eden Technology Services
0
|
Posted - 2014.05.25 14:10:00 -
[223] - Quote
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.
|
Scarna Jenari
The Scope Gallente Federation
0
|
Posted - 2014.05.25 14:10:05 -
[224] - Quote
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
A Big Enough Lever
6
|
Posted - 2014.06.05 03:04:00 -
[225] - Quote
I have just scratched the surface of this library and it's already aweseome!
Keep up the awesome work :D |
fisk Alabel
A Big Enough Lever
6
|
Posted - 2014.06.05 03:04:20 -
[226] - Quote
I have just scratched the surface of this library and it's already aweseome!
Keep up the awesome work :D |
Sir Substance
GoonWaffe Goonswarm Federation
653
|
Posted - 2014.06.24 01:37:00 -
[227] - Quote
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
|
Sir Substance
GoonWaffe Goonswarm Federation
656
|
Posted - 2014.06.24 01:37:31 -
[228] - Quote
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
|
Radelix Cisko
The Price Of Freedom Wreckless.
194
|
Posted - 2014.06.30 18:35:00 -
[229] - Quote
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
|
Radelix Cisko
JUMP DRIVE ACTIVE
204
|
Posted - 2014.06.30 18:35:58 -
[230] - Quote
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
0
|
Posted - 2014.06.30 19:30:00 -
[231] - Quote
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. |
Marcus Ziz
Limitless Momentum
1
|
Posted - 2014.06.30 19:30:13 -
[232] - Quote
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
The Price Of Freedom Wreckless.
194
|
Posted - 2014.06.30 22:03:00 -
[233] - Quote
Marcus Ziz wrote: Wrote words here
good call that appeared to work. Despite my posting prowess I really am terrible at this game
|
Radelix Cisko
JUMP DRIVE ACTIVE
204
|
Posted - 2014.06.30 22:03:33 -
[234] - Quote
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 Astromechanica Federatis
45
|
Posted - 2014.07.27 17:30:00 -
[235] - Quote
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 YamlToSQL developper: https://forums.eveonline.com/default.aspx?g=posts&t=178572 |
Jognu
French Kiss Singularity Astromechanica Federatis
45
|
Posted - 2014.07.27 17:30:52 -
[236] - Quote
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
34
|
Posted - 2014.07.31 10:25:00 -
[237] - Quote
Please feel free to contact me, perhaps I can help with some time on project as well. |
Dareth Astrar
Astrar Logistics and Engineering
35
|
Posted - 2014.07.31 10:25:09 -
[238] - Quote
Please feel free to contact me, perhaps I can help with some time on project as well. |
Radelix Cisko
The Price Of Freedom
200
|
Posted - 2014.08.06 16:12:00 -
[239] - Quote
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
|
Radelix Cisko
JUMP DRIVE ACTIVE
204
|
Posted - 2014.08.06 16:12:03 -
[240] - Quote
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
|
|
|
|
|
Pages: 1 2 3 4 5 6 7 [8] 9 10 :: one page |
First page | Previous page | Next page | Last page |