Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [15] 16 17 18 19 20 .. 26 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 2 post(s) |

MearWolf
|
Posted - 2010.03.08 14:55:00 -
[421]
Originally by: Amida Ta You are not calling the api at all here. Just replace
Originally by: MearWolf
Dim servstat As New ServerStatus()
with Dim servstat As ServerStatus = api.GetServerStatus and it should work. (of course you need the api object again, but you have used that in the other code samples, too).
sorry silly mistake, thanks
|

Truelle
|
Posted - 2010.03.10 22:47:00 -
[422]
Is it possible to retrieve the mail message body and not only the title ?
|

Krathos Morpheus
Legion Infernal
|
Posted - 2010.03.11 01:22:00 -
[423]
Originally by: Truelle Is it possible to retrieve the mail message body and not only the title ?
Not possible, the api doesn't retrieves it. If we have luck it will be implemented in the future, for now ccp doesn't allow it.
EVEwatch Sidebar soon "It is the unofficial force ù the Jita irregulars. " |

Dwayne Pipe
|
Posted - 2010.03.11 15:48:00 -
[424]
Maybe a silly question, but given a pair of solar system IDs, is there anyway to work out the number of jumps between them? Preferably two routes, one through high-sec and one allowing transition through low-sec or is this beyond the scope of the library?
FWIW I have the following in C#...
EveAI.Live.EveApi api = new EveAI.Live.EveApi(Int32.Parse(textUserID.Text), textApiKey.Text); ... EveAI.Map.SolarSystem solarSystem1 = api.EveApiCore.FindSolarSystem(ID1); EveAI.Map.SolarSystem solarSystem2 = api.EveApiCore.FindSolarSystem(ID2); ...
Thanks!
|

Krathos Morpheus
Legion Infernal
|
Posted - 2010.03.11 17:18:00 -
[425]
Originally by: Dwayne Pipe Maybe a silly question, but given a pair of solar system IDs, is there anyway to work out the number of jumps between them? Preferably two routes, one through high-sec and one allowing transition through low-sec or is this beyond the scope of the library?
FWIW I have the following in C#...
EveAI.Live.EveApi api = new EveAI.Live.EveApi(Int32.Parse(textUserID.Text), textApiKey.Text); ... EveAI.Map.SolarSystem solarSystem1 = api.EveApiCore.FindSolarSystem(ID1); EveAI.Map.SolarSystem solarSystem2 = api.EveApiCore.FindSolarSystem(ID2); ...
Thanks!
I'm interested in knowing that as well, to determine if a system is within certain distance of another, but I've not gone through that yet.
EVEwatch Sidebar soon "It is the unofficial force ù the Jita irregulars. " |

TradingWithYou
|
Posted - 2010.03.12 18:23:00 -
[426]
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}
|

Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.13 15:15:00 -
[427]
Originally by: Dwayne Pipe
EveAI.Map.SolarSystem solarSystem1 = api.EveApiCore.FindSolarSystem(ID1); EveAI.Map.SolarSystem solarSystem2 = api.EveApiCore.FindSolarSystem(ID2); ...
Thanks!
There is no built-in functionallity for that. But a SolarSystem has a Jumps property that lists all jumps to other systems. Based on that you can use a simple search algorithm (e.g. A*) to find a way to another system. I've done something like that before, but it's not part of the library (I't old, please don't ask questions on that one ;): public List<SolarSystem> FindRoute (SolarSystem start, SolarSystem end) { Dictionary<SolarSystem, SolarSystem> wayData = new Dictionary<SolarSystem, SolarSystem> (); Queue<SolarSystem> openRoute = new Queue<SolarSystem> ();
wayData[start] = start; openRoute.Enqueue (start);
while (openRoute.Count > 0) { SolarSystem current = openRoute.Dequeue (); if (current == end) { List<SolarSystem> way = new List<SolarSystem> (); while (current != start) { way.Add (current); current = wayData[current]; } way.Add (start); way.Reverse (); return way; }
foreach (SolarSystem system in current.Jumps) { if (wayData[system] != null) continue; wayData[system] = current; openRoute.Enqueue (system); } } return null; } _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |

Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.13 15:35:00 -
[428]
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? _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |

Jognu
|
Posted - 2010.03.13 16:11:00 -
[429]
I don't know if someone already ask this, but is there a way to force the cache to be updated ? Because when I use the GetCorporationAssets, the XML file of the cache (in AppData) is not updated. Thanks
|

Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.13 16:34:00 -
[430]
Originally by: Jognu I don't know if someone already ask this, but is there a way to force the cache to be updated ? Because when I use the GetCorporationAssets, the XML file of the cache (in AppData) is not updated. Thanks
The CCP servers only allow you to get the data once in a while. It is not possible to circumvent that (or force it). Neither with EveAI.Live nor with any other means.
In complex mode you can use UpdateCharacteristics.OnlineOnly to force calling the CCP apis. But that will only result in either errors or old data from the server. _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |
|

TradingWithYou
Gallente
|
Posted - 2010.03.13 16:54:00 -
[431]
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 )
|

Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.13 19:19:00 -
[432]
EveAI Live Version 1.2.4b has been released!
- Some small enhancements and fixes.
- EveAI.ComponentModel.dll has been renamed to EveAI.Design to make the intended (design time) use more clear.
Here is the new version: http://dl.eve-files.com/media/corp/Foxfire/EveAI_Live_1.2.4b.zip _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |

Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.13 19:24:00 -
[433]
Originally by: TradingWithYou
Here's the screenshot of the error I get (sorry for the french text )
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? _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |

TradingWithYou
Gallente
|
Posted - 2010.03.13 19:42:00 -
[434]
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!
|

Jognu
|
Posted - 2010.03.13 19:46:00 -
[435]
Originally by: Amida Ta
Originally by: Jognu I don't know if someone already ask this, but is there a way to force the cache to be updated ? Because when I use the GetCorporationAssets, the XML file of the cache (in AppData) is not updated. Thanks
The CCP servers only allow you to get the data once in a while. It is not possible to circumvent that (or force it). Neither with EveAI.Live nor with any other means.
In complex mode you can use UpdateCharacteristics.OnlineOnly to force calling the CCP apis. But that will only result in either errors or old data from the server.
Ok. Is there a way to know when is this moment ? Because I have a list of assets in a database, and I store the "last update time". Now I use the api.LastUpdateTime, but it's not correct (because it doesn't indicate the last corporation assets update).
(sorry for my english languge, I'm french )
|

Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.13 20:28:00 -
[436]
LastUpdateTime if called directly after the api call will (or should ;) give you the last time the update happened (in local system time). _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |

Jognu
|
Posted - 2010.03.13 22:16:00 -
[437]
Originally by: Amida Ta LastUpdateTime if called directly after the api call will (or should ;) give you the last time the update happened (in local system time).
Ok. But is it normal that when I call the api it does not update the corporation assets list ? Only Industry Job etc ?
|

Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.13 23:00:00 -
[438]
Originally by: Jognu
Originally by: Amida Ta LastUpdateTime if called directly after the api call will (or should ;) give you the last time the update happened (in local system time).
Ok. But is it normal that when I call the api it does not update the corporation assets list ? Only Industry Job etc ?
You can look at LastQueryCachedUntil to find out till when the cache will be active. Only after the cache period is over you will get new data. The cache period depends a) on when you made the last successful! call and b) on which api you call (different apis have different cache times). Assets list and industry job apis have different cache durations. _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |

Jognu
|
Posted - 2010.03.13 23:19:00 -
[439]
Originally by: Amida Ta Edited by: Amida Ta on 13/03/2010 23:06:45
Originally by: Jognu
Originally by: Amida Ta LastUpdateTime if called directly after the api call will (or should ;) give you the last time the update happened (in local system time).
Ok. But is it normal that when I call the api it does not update the corporation assets list ? Only Industry Job etc ?
You can look at LastQueryCachedUntil to find out till when the cache will be active. Only after the cache period is over you will get new data. The cache period depends a) on when you made the last successful! call and b) on which api you call (different apis have different cache times). Assets list and industry job apis have largely different cache durations (15 min and 23 hours).
23 hours for the assets lists cache ?
|

Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.13 23:33:00 -
[440]
Yes 23 hours for assets -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|

MearWolf
|
Posted - 2010.03.15 10:24:00 -
[441]
Originally by: Amida Ta Edited by: Amida Ta on 03/03/2010 09:48:35 For Each entry In api.GetAccountEntries MsgBox(entry.Name + ": " + entry.CharacterID) Next
using this how could I assign each entry to an instance of an array e.g.
Dim i As Integer = 1 For Each entry In api.GetAccountEntries characterid(i) = entry.CharacterID i = i + 1 Next
but this doesn't work
|

Krathos Morpheus
Legion Infernal
|
Posted - 2010.03.15 14:27:00 -
[442]
Originally by: MearWolf
Originally by: Amida Ta Edited by: Amida Ta on 03/03/2010 09:48:35 For Each entry In api.GetAccountEntries MsgBox(entry.Name + ": " + entry.CharacterID) Next
using this how could I assign each entry to an instance of an array e.g.
Dim i As Integer = 1 For Each entry In api.GetAccountEntries characterid(i) = entry.CharacterID i = i + 1 Next
but this doesn't work
Try this: Dim chars = api.GetAccountEntries
Dim maxcount = chars.count For count = 0 to maxcount - 1 characterid(count) = chars(count).CharacterID Next count
EVEwatch Sidebar soon "It is the unofficial force ù the Jita irregulars. " |

TradingWithYou
Gallente
|
Posted - 2010.03.15 15:00:00 -
[443]
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?
|

Tiradem
|
Posted - 2010.03.16 13:32:00 -
[444]
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.
|

MearWolf
|
Posted - 2010.03.16 14:27:00 -
[445]
is there any way to pull the account name down using the limited api?
|

TradingWithYou
Gallente
|
Posted - 2010.03.16 16:14:00 -
[446]
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 
|

Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.17 22:35:00 -
[447]
Originally by: TradingWithYou 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.
I've done some testing and also found some strange cases (worked most of the time but sometimes I got strange results). After more testing it seems that in that case the server actually delivers wrong or dubious values. I might be able to work around some, but I don't think it will work for all the small issues I've seen.
P.S. TrainingDuration is the total training time, not the remaining time. _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |

Tiradem
|
Posted - 2010.03.18 01:17:00 -
[448]
I m having trouble understanding EveAI.Live.Corporation, Any data I pull from it will not update when I switch character profiles.
|

Amida Ta
German Mining and Manufacture Corp.
|
Posted - 2010.03.18 11:05:00 -
[449]
Originally by: Tiradem I m having trouble understanding EveAI.Live.Corporation, Any data I pull from it will not update when I switch character profiles.
If you are using the simple mode I strongly recommend to use a new EveApi object for each new character profile (make sure to only create the static data once or this will be slow).
If you want to check for hundereds or thousands of profiles I suggest looking into the advanced mode. _________________________ EveAI.Live - The EVE-Online API/class library for .Net, C# and VB.Net |

Tiradem
|
Posted - 2010.03.18 12:13:00 -
[450]
Originally by: Amida Ta
Originally by: Tiradem I m having trouble understanding EveAI.Live.Corporation, Any data I pull from it will not update when I switch character profiles.
If you are using the simple mode I strongly recommend to use a new EveApi object for each new character profile (make sure to only create the static data once or this will be slow).
If you want to check for hundereds or thousands of profiles I suggest looking into the advanced mode.
Thanks for the help. How do I make an EveApi object for each character and only create the static data once?
|
|
|
|
|
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [15] 16 17 18 19 20 .. 26 :: one page |
First page | Previous page | Next page | Last page |