|
Author |
Thread Statistics | Show CCP posts - 2 post(s) |

TradingWithYou
|
Posted - 2010.03.12 18:23:00 -
[1]
Edited by: TradingWithYou on 12/03/2010 18:25:19 Hi,
I'm using EveAI.Live version 1.2.3 and i'm having an error with "TimeRequiredForNextLevel". I think the field in question is not correctly populated but i'm not sure.
+TimeRequiredForNextLevel'(new system.Collections.Generic.Mscorlib_CollectionDebugView<EveAI.Live.Character.CharacterSheet.LearnedSkill>(capsulerSheet.Skills)).Items[0].TimeRequiredForNextLevel' threw an exception of type 'System.OverflowException'System.TimeSpan {System.OverflowException}
|

TradingWithYou
Gallente
|
Posted - 2010.03.13 16:54:00 -
[2]
Edited by: TradingWithYou on 13/03/2010 17:01:54 Edited by: TradingWithYou on 13/03/2010 17:01:13
Originally by: Amida Ta
Originally by: TradingWithYou Edited by: TradingWithYou on 12/03/2010 18:25:19 Hi,
I'm using EveAI.Live version 1.2.3 and i'm having an error with "TimeRequiredForNextLevel". I think the field in question is not correctly populated but i'm not sure.
+TimeRequiredForNextLevel'(new system.Collections.Generic.Mscorlib_CollectionDebugView<EveAI.Live.Character.CharacterSheet.LearnedSkill>(capsulerSheet.Skills)).Items[0].TimeRequiredForNextLevel' threw an exception of type 'System.OverflowException'System.TimeSpan {System.OverflowException}
I've got no clue of what failes here. Might be in conjunction with that Mscorlib_CollectionDebugView you are using?
I just put myself back in programming and I'm a little bit rusty :s not to say, not to familiar with c# yet.
I'm using c# 2008 Express and the target framework is .Net 3.5.
Here is how I populate my datagrid:
capsulerSheet = api.GetCharacterSheet();
if (capsulerSheet != null) dataGridView1.DataSource = capsulerSheet.Skills;
I've tried to compile for .NET 2.0 but i'm having the same error. The error is generated when the column "TimeRequiredForNextLevel" is being displayed by the datagrid. ie: If the datagrid is small enough so you don't see this column (TimeRequiredForNextLevel), you don't get the error until you scroll to see it.
Like I said, maybe I'm doing something wrong. If that is the case, please let me know.
Here's the screenshot of the error I get (sorry for the french text )
|

TradingWithYou
Gallente
|
Posted - 2010.03.13 19:42:00 -
[3]
Edited by: TradingWithYou on 13/03/2010 19:43:28
Originally by: Amida Ta Could you try the new version? I think I might have introduced a small bug that led to this before. Is it possible that you don't have the learning (percentage) skill on the character that you inspected at all?
Yes, you are right, I don't have the Learning skills learned at all. The new release fixed this issue :)
Thanks a lot. Very good support!
|

TradingWithYou
Gallente
|
Posted - 2010.03.15 15:00:00 -
[4]
I think I'm having issues with the cache. FYI, I am using the simple mode api.
I extract the skill in training using .GetCharacterSkillInTraining() but the information I get out of .SkillPointsCurrent and .SkillPointsCurrent.TrainingDuration.Days are dating from a sometime already.
It says I have 6+ days left when I have less than 24 hours.
I have used the following code to check at when it was last updated and it's dating from today, a few minutes ago so I guess that's fine.
MessageBox.Show(api.LastUpdateTime.ToLongDateString() + " / " + api.LastUpdateTime.ToLongTimeString())
I also used this part of code to check if there was any error which could explain why i'm having such a gap in between the cache and reality but the result is no error.
if (api.LastErrors.Count > 0) { StringBuilder resultMsg = new StringBuilder(); foreach (EveApiError error in api.LastErrors) { resultMsg.AppendLine(error.ToString()); } MessageBox.Show(resultMsg.ToString()); }
Do I have to manually ask for a refresh when using the simple mode api?
|

TradingWithYou
Gallente
|
Posted - 2010.03.16 16:14:00 -
[5]
Originally by: Tiradem Hello everyone, I am attempting to use this Api but I'm having trouble locating where to find the character Id. I would like to put in the userID and Api Key and have have the program fill a combo box with the 3 characters Names. Could someone show me a code snippet of how I can achieve this? I been reading this through thread and coming up short. I'm using c# and I'm a bit of a newbie but I can usually get what I need done through trial and error. Thanks for any help in advanced.
This should anwser MearWolf question by the same mean :)
I used this very basic code in c# to retrieve the names attached to an account.
EveApi api = new EveApi(UserID, ApiKey); List<AccountEntry> accountEntries = api.GetAccountEntries();
foreach (AccountEntry ae in accountEntries) { comboBox1.Items.Add(ae.Name); } comboBox1.SelectedIndex = 0; // Make the combo box select the first item in it
Then you can define the CharacterID and set your EveApi to work with it by using the following:
api.Authentication.CharacterID = accountEntries[selectedProfile].CharacterID;
Hope this help you guys get started with this 
|
|
|
|