open All Channels
seplocked EVE Technology Lab
blankseplocked EveAI Live (EVE-Online API/class library for .Net/ C#/ VB.Net)
 
This thread is older than 90 days and has been locked due to inactivity.


 
Pages: first : previous : 1 2 3 4 [5] 6 7 8 9 ... : last (26)

Author Topic

JimBob666
Minmatar
Solstice Systems Development Concourse
Aggression.
Posted - 2008.07.19 15:43:00 - [121]
 

Ahh thank you very much!!!

I understand now. I was thinking that you would need to pass in a starbase id when calling the get method or something like that. Didnt realise it had to be set through the Authentication part.

Will have a play around and see, seems simple enough now tho :)

Thanx again!

JIM

Anne Sapyx
Gallente
Insurgent New Eden Tribe
RAZOR Alliance
Posted - 2008.09.25 14:50:00 - [122]
 


How can I use the EveAI.Live.Generic.CharacterNameLookupApi? and EveAI.Live.Generic.CharacterIDLookupApi?

Ty.

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.09.29 21:32:00 - [123]
 

Edited by: Amida Ta on 29/09/2008 21:32:51
Originally by: Anne Sapyx

How can I use the EveAI.Live.Generic.CharacterNameLookupApi? and EveAI.Live.Generic.CharacterIDLookupApi?

Ty.

Haven't tested this, but it should work:

CharacterNameLookupApi namelookup = new CharacterNameLookupApi ();
namelookup.CharacterIDsToLookup.Add (1234567);
namelookup.CharacterIDsToLookup.Add (2345678);
namelookup.UpdateData ();
String charName1 = namelookup.FindEntry (1234567);
String charName2 = namelookup.FindEntry (2345678);

Anne Sapyx
Gallente
Insurgent New Eden Tribe
RAZOR Alliance
Posted - 2008.09.30 10:38:00 - [124]
 

Edited by: Anne Sapyx on 30/09/2008 10:39:37
Private Sub BtnLookUp1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnLookUp1.Click
If TxtCharID.TextLength <> 0 Then
Dim namelookup As CharacterNameLookupApi = New CharacterNameLookupApi()

namelookup.CharacterIDsToLookup.Add(CInt(TxtCharID.Text))
namelookup.UpdateData()

LabCharName.Text = namelookup.FindEntry(TxtCharID.Text)
End If


it is Ok for CharacterNameLookupApi
--------------------------------

but

Private Sub BtnLookUp2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnLookUp2.Click
If TxtCharName.TextLength <> 0 Then
Dim idlookup As CharacterIDLookupApi = New CharacterIDLookupApi()

idlookup.CharacterNamesToLookup.Add(TxtCharName.Text)
idlookup.UpdateData()

LabCharID.Text = idlookup.FindEntry(TxtCharName.Text)
End If
End Sub

for CharacterIDLookupApi , returns -1.

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.09.30 16:22:00 - [125]
 

Edited by: Amida Ta on 30/09/2008 16:21:52
This is a problem with EveAI. Will fix it for the next version.

Dangrou
Caldari
The Einherji
Posted - 2008.10.06 15:51:00 - [126]
 

Hi

first off thanks for this - its fantastic (even if i am struggling)

second i have some VERY basic .net skills so i dont know if my lack of knowledfe of .net or EveAI is the problem here

I CAN do this:
Dim api3 As New EveApi
Dim myskilllist As New List(Of Skill)

myskilllist = api3.GetSkillTree
Me.GridView1.DataSource = myskilllist
Me.GridView1.DataBind()

This returns a full list of all skills BUT please can somebody explain how i get back a list of a characters learned skills

Thanks

Malrock
Caldari
Mea Culpa Enigma
Posted - 2008.10.12 08:51:00 - [127]
 

Hello.

There is a bug in .GetCharacterAccountBalance(0).Balance, it returns 4 292 529.2969 while the amount is much more higher, the xml from api is;

<?xml version="1.0" encoding="UTF-8"?><eveapi version="2"><currentTime>10/11/2008 10:05:15 PM</currentTime><result><rowset name="accounts" key="accountID" columns="accountID,accountKey,balance"><row accountID="xxx" accountKey="1000" balance="429252929.69" /></rowset></result><cachedUntil>10/11/2008 10:20:15 PM</cachedUntil><utcTimeDifference>00:00:00</utcTimeDifference><cacheVersion>0.9.10.0</cacheVersion></eveapi>

Alfred Spangler
NoD Imperium
Posted - 2008.10.19 22:20:00 - [128]
 

Hi Amida Ta!
I finally got time to play with your great API lib again Very Happy

To the point: On rare occasions I get a null reference on the Type from the GetCharacterAssets(), I havent nailed it down to a specific asset yet.
[Fake Edit:] I have nailed it down now:
It's a freakin' Apotheosis, TypeID 29266.
I guess its time we get a new data dump Evil or Very Mad. I don't know if you can work around that. Sad

And just to be sure: Do you cache queries to Eve Central via the EveCentralMarketApi? Or am I hammering them to death right now?

Regards, A.S.


Dangrou
Caldari
The Einherji
Posted - 2008.10.20 10:22:00 - [129]
 

Hi - you obviously know how to use the api and given lack of posts was hoping that you might be able to give me a quick pointer to my question post earlier (3 posts up?)

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.10.21 12:13:00 - [130]
 

Originally by: Malrock
Hello.

There is a bug in .GetCharacterAccountBalance(0).Balance, it returns 4 292 529.2969 while the amount is much more higher, the xml from api is;

<?xml version="1.0" encoding="UTF-8"?><eveapi version="2"><currentTime>10/11/2008 10:05:15 PM</currentTime><result><rowset name="accounts" key="accountID" columns="accountID,accountKey,balance"><row accountID="xxx" accountKey="1000" balance="429252929.69" /></rowset></result><cachedUntil>10/11/2008 10:20:15 PM</cachedUntil><utcTimeDifference>00:00:00</utcTimeDifference><cacheVersion>0.9.10.0</cacheVersion></eveapi>

Seems like CCP changed this. I will update the API accordingly. Already fixed an will be included in the next version.

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.10.21 12:21:00 - [131]
 

Originally by: Alfred Spangler
Hi Amida Ta!
I finally got time to play with your great API lib again Very Happy

To the point: On rare occasions I get a null reference on the Type from the GetCharacterAssets(), I havent nailed it down to a specific asset yet.
[Fake Edit:] I have nailed it down now:
It's a freakin' Apotheosis, TypeID 29266.
I guess its time we get a new data dump Evil or Very Mad. I don't know if you can work around that. Sad


The problem currently is that the static data in EveAI is very old (Pre-Empyrean Age). And I don't have the time currently to convert the new format into something that I can easily use for EveAI.
In fact I have been working on a scheme to read the static data directly from the game which means always up-to-date data. However it's not finished yet.
If anybody wants to help I would need the static data dump converted to the sql create format it had before. There it is important that the format has ONE create table and then n inserts, otherwise my import app will not read it correctly.

As an alternative I could also use the old CSV format.

So if anybody wants to help I would be very happy ;)

Originally by: Alfred Spangler

And just to be sure: Do you cache queries to Eve Central via the EveCentralMarketApi? Or am I hammering them to death right now?

Regards, A.S.


As soon as you call GetProductStatistics no more caching occurs. Whenever you call that function a query is made on Eve Central. You can read the result as often as you like, but on the next call of GetProductStatistics a new Call to Eve Central will be made.

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.10.21 12:27:00 - [132]
 

Originally by: Dangrou
Hi

first off thanks for this - its fantastic (even if i am struggling)

second i have some VERY basic .net skills so i dont know if my lack of knowledfe of .net or EveAI is the problem here

I CAN do this:
Dim api3 As New EveApi
Dim myskilllist As New List(Of Skill)

myskilllist = api3.GetSkillTree
Me.GridView1.DataSource = myskilllist
Me.GridView1.DataBind()

This returns a full list of all skills BUT please can somebody explain how i get back a list of a characters learned skills

Thanks

The SkillTree is the Entire Skilltree in Eve and has nothing to do with your character.

To get the skills of your character you have to use (have not used VB in some time ;)

Dim api3 As New EveApi(_userid_, _apiKey_, _characterID_)
Dim character As CharacterSheet

character = api3.GetCharacterSheet
Me.GridView1.DataSource = character.Skills
Me.GridView1.DataBind()

Dangrou
Caldari
The Einherji
Posted - 2008.10.22 12:52:00 - [133]
 

Originally by: Amida Ta

The SkillTree is the Entire Skilltree in Eve and has nothing to do with your character.

To get the skills of your character you have to use (have not used VB in some time ;)

Dim api3 As New EveApi(_userid_, _apiKey_, _characterID_)
Dim character As CharacterSheet

character = api3.GetCharacterSheet
Me.GridView1.DataSource = character.Skills
Me.GridView1.DataBind()


Thank you
I realised after using your code that i wasnt laying out my code correctly - was actually getting instance not set to object error and couldnt see where it was going wrong - but given your code i worked back and found my error

thanks again

Alfred Spangler
NoD Imperium
Posted - 2008.11.02 02:24:00 - [134]
 

Edited by: Alfred Spangler on 02/11/2008 11:28:30
I get some strange behaviour with the EveCentralMarketApi.
When I do something like this

EveCentralMarketApi mApi = new EveCentralMarketApi();
mApi.EveApiCore = new EveAI.DataCore();
ProductStatistics productStatistics = mApi.GetProductStatistics(someProductType);

I get a null reference on productStatistics.Product and 0.0 values for all the TradeQuotes.
Its the same if I use the DataCore from a new EveApi(), but not when I use the DataCore of a new EveApi(*Api Credentials here*).

Can you enlighten me on that? I need to use the EveCentralMarketApi without an "initialized" EveApi.

[Edit] The problem seems to be related to the EveApiCore.GetIdForObject() function... its doesnt return proper values on a new EveAI.DataCore(), plus it doesnt return proper values when I do something like

ProductType type = someAssetOrOrderFromTheApi.Type;
dataCore.GetIdForObject(type);

but it returns proper values if I use someAssetOrOrderFromTheApi.Type as a parameter, which is, as you might have guessed, some asset or market order retrieved by a GetCharacterAssets() or GetCharacterMarketOrders() call.


At least I found a workaround for the second problem while digging around with reflector Smile

And on a laste note: What exactly do you need from the new data dumps for your import functions? One create table plus inserts per file, one file per table?

Regards, A.S.

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.11.03 23:07:00 - [135]
 

Originally by: Alfred Spangler
Edited by: Alfred Spangler on 02/11/2008 11:28:30
I get some strange behaviour with the EveCentralMarketApi.
When I do something like this

EveCentralMarketApi mApi = new EveCentralMarketApi();
mApi.EveApiCore = new EveAI.DataCore();
ProductStatistics productStatistics = mApi.GetProductStatistics(someProductType);

I get a null reference on productStatistics.Product and 0.0 values for all the TradeQuotes.
Its the same if I use the DataCore from a new EveApi(), but not when I use the DataCore of a new EveApi(*Api Credentials here*).

Can you enlighten me on that? I need to use the EveCentralMarketApi without an "initialized" EveApi.

[Edit] The problem seems to be related to the EveApiCore.GetIdForObject() function... its doesnt return proper values on a new EveAI.DataCore(), plus it doesnt return proper values when I do something like

ProductType type = someAssetOrOrderFromTheApi.Type;
dataCore.GetIdForObject(type);

but it returns proper values if I use someAssetOrOrderFromTheApi.Type as a parameter, which is, as you might have guessed, some asset or market order retrieved by a GetCharacterAssets() or GetCharacterMarketOrders() call.


By default it creates an empty core dataset which is why you get null-ref exceptions. If you like you can initialize it manually from the data that is embedded in the core by calling something like:
DataCore core = new DataCore ();
DataReader reader = new DataReader (core);
reader.Read (DataTypes.BasicMapData | DataTypes.Products);

reader.Read will read the static data from internal datafiles. In that case it will read everything relating to Map and Products.

Originally by: Alfred Spangler

And on a laste note: What exactly do you need from the new data dumps for your import functions? One create table plus inserts per file, one file per table?

Regards, A.S.

I would need exactly that: One file per table containing one create table followed by one insert per data item.

Evelyne Drumm
Posted - 2008.11.05 18:13:00 - [136]
 

Hi can someone give me a quick bit of help with vb 2008. How do i pass the auth data to the dll? and to then send some data to a text box would i text1.text = api.getxxx.

TIA

Alfred Spangler
NoD Imperium
Posted - 2008.11.05 21:32:00 - [137]
 

Thanks for that your answers Amida, now I get it.

Originally by: Amida Ta

I would need exactly that: One file per table containing one create table followed by one insert per data item.

I will definitly get onto that on the weekend. I desperately want some fresh data Very Happy

Originally by: Evelyne Drumm
Hi can someone give me a quick bit of help with vb 2008. How do i pass the auth data to the dll? and to then send some data to a text box would i text1.text = api.getxxx.

TIA

First, add the Api .dlls to your project as a reference.
You can pass the api credentials to the api on instantiation of the EveApi class, although I'm sure you could even do that later on.
My VB is a bit rusty, but it should work like that:
Quote:
using EveAi.Live
Dim eveApi As EveApi = New EveApi(userID, apiKey, characterID)

Most (all?) Get-methods of the Api give you a reference to some EveAi-specific object, like a character sheet, list of assets, etc.
So, to show your corpname in a textbox you can do:
Quote:
using EveAi.Live
using EveAI.Live.Character
Dim eveApi As EveApi = New EveApi(userID, apiKey, characterID)
Dim characterSheet = eveApi.GetCharacterSheet()
text1.Text = characterSheet.CorporationName

Voilá, your corpname in your textbox. Magic! Shocked

Regards, A.S.


P.S.: Amida, what about a XML comment file? Would make some things make more sense... like... more intellisense Wink
I could do with a german one, I might even do some translation on it... ok I'm probably lying about the translation part Embarassed

Evelyne Drumm
Posted - 2008.11.05 22:59:00 - [138]
 

Edited by: Evelyne Drumm on 05/11/2008 23:01:04
Quote:
using EveAi.Live
Dim eveApi As EveApi = New EveApi(userID, apiKey, characterID)


im getting "Error 'EveAI.Live' is a namespace and cannot be used as an expression" for the first line when i put the code in a button_click sub

Xaroth Brook
Minmatar
BIG
Gentlemen's Agreement
Posted - 2008.11.06 08:41:00 - [139]
 

Originally by: Amida Ta

The problem currently is that the static data in EveAI is very old (Pre-Empyrean Age). And I don't have the time currently to convert the new format into something that I can easily use for EveAI.
In fact I have been working on a scheme to read the static data directly from the game which means always up-to-date data. However it's not finished yet.


why not use db4o for storing your data, it might not be a 100% performance thing but it has some really nice features (like client/server built in, for auto-update support), plus you don't have to do any mapping between database/objects since db4o does this all for you.

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.11.06 22:32:00 - [140]
 

Originally by: Xaroth Brook
Originally by: Amida Ta

The problem currently is that the static data in EveAI is very old (Pre-Empyrean Age). And I don't have the time currently to convert the new format into something that I can easily use for EveAI.
In fact I have been working on a scheme to read the static data directly from the game which means always up-to-date data. However it's not finished yet.


why not use db4o for storing your data, it might not be a 100% performance thing but it has some really nice features (like client/server built in, for auto-update support), plus you don't have to do any mapping between database/objects since db4o does this all for you.

I already thought about that. But plain db4o itself is already as big as the entire EveAI.Live CONTAINING most of the Eve static data.
If you then add the database for db4o it becomes bigger than anybody would like a library or even an entire application to be.

Evelyne Drumm
Posted - 2008.11.07 00:06:00 - [141]
 

Edited by: Evelyne Drumm on 07/11/2008 00:18:51
Quote:
using EveAi.Live
using EveAI.Live.Character
Dim eveApi As EveApi = New EveApi(userID, apiKey, characterID)
Dim characterSheet = eveApi.GetCharacterSheet()
text1.Text = characterSheet.CorporationName

Voilá, your corpname in your textbox. Magic! Shocked

Regards, A.S.



I am now getting an error: Nullrefrenceexception was unhandled, Object reference not set to an instance of an object.

Error occuring on line 4 "dim char......"


Imports EveAI.Live
Imports EveAI.Live.Character
Dim eveApi As EveApi = New EveApi("myuserid", "myapikey")
Dim characterSheet = eveApi.GetCharacterSheet()
TextBox1.Text = characterSheet.Name


Any ideas? Sorry to be a pain.
Tia

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.11.07 09:58:00 - [142]
 

Originally by: Evelyne Drumm
Edited by: Evelyne Drumm on 07/11/2008 00:18:51
Quote:
using EveAi.Live
using EveAI.Live.Character
Dim eveApi As EveApi = New EveApi(userID, apiKey, characterID)
Dim characterSheet = eveApi.GetCharacterSheet()
text1.Text = characterSheet.CorporationName

Voilá, your corpname in your textbox. Magic! Shocked

Regards, A.S.



I am now getting an error: Nullrefrenceexception was unhandled, Object reference not set to an instance of an object.

Error occuring on line 4 "dim char......"


Imports EveAI.Live
Imports EveAI.Live.Character
Dim eveApi As EveApi = New EveApi("myuserid", "myapikey")
Dim characterSheet = eveApi.GetCharacterSheet()
TextBox1.Text = characterSheet.Name


Any ideas? Sorry to be a pain.
Tia

Afaik it should be
Dim characterSheet as CharacterSheet = eveApi.GetCharacterSheet()
Also you forgot your characterID in the line above. And I hope you replaced those "myapikey" with your real key ;)

Evelyne Drumm
Posted - 2008.11.07 13:08:00 - [143]
 

Edited by: Evelyne Drumm on 07/11/2008 13:24:35
Many thanks for the help. Im now stuck on getting the wallet transactions :S

i want to import it to a text box for the min, so i wrote:

Dim eveApi As EveApi = New EveApi("userid", "apikey", "charid")
text1.text = eveApi.GetCharacterWalletTransactions.Item(1)


But i get cannot convert eveApi.GetCharacterWalletTransactions.Item to string.
Any ideas?

TIA

Alfred Spangler
NoD Imperium
Posted - 2008.11.09 16:38:00 - [144]
 

After reading the patchnote, I gather there will be new data dumps with the QR expansion. So I'll wait until these are released, before converting them to the format Amida Ta needs.

Regards,A.S.

Evelyne Drumm
Posted - 2008.11.10 00:03:00 - [145]
 

When i try eveApi.LastUpdateResult.ToString its always giving me unkown. Any ideas why that is? I can see its accessing the api from the online api log, so why would it always return unkown

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.11.20 00:40:00 - [146]
 

Version 0.9.16 has been released. It adds support for most of the new APIs (basically everything except the medals stuff). It should also fix all errors that appeared because CCP "fixed" their previous errors in the APIs like multiplying stuff and things like that.
Unfortunatelly the static data is still very ancient and I haven't got any new data.
I'm mostly able to read cachefiles, but
a) they do not contain all the data that is part of the static data dumps and
b) I still haven't got any clear answer from CCP if it would be ok to use/embed them in the API library.

Here is the new version:
http://dl.eve-files.com/media/corp/Foxfire/EveAI_Live_0.9.16.zip

As always it comes with the testapp to see the new APIs in action.

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.11.21 09:24:00 - [147]
 

Originally by: Alfred Spangler
After reading the patchnote, I gather there will be new data dumps with the QR expansion. So I'll wait until these are released, before converting them to the format Amida Ta needs.


The format that I use is CSV. One file per table.
First line is omitted (ideally a description)
Then one line per dataset. (Separated by $ and Strings surrounded with "", but I could change this easily)

I have a converter from the old SQL-format into the CSV, so I could also use that.

Evelyne Drumm
Posted - 2008.11.21 16:25:00 - [148]
 

Is it possible to change the amount of transactions eveApi.GetCharacterWalletTransactions retreives? Its only going back 1 month.

Tia

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.11.22 01:14:00 - [149]
 

Originally by: Evelyne Drumm
Is it possible to change the amount of transactions eveApi.GetCharacterWalletTransactions retreives? Its only going back 1 month.

Tia

That is likely restricted by the CCPs API.

Amida Ta
German Mining and Manufacture Corp.
Posted - 2008.11.22 01:18:00 - [150]
 

Version 0.9.17 has been released.
It adds everything that has been missing from the previous version. Now all API calls are supported again (added the three Medal-based ones)
Also TADAAA: ALL static data has been updated and is now on line with the current Eve static data export.

Here is the new version:
http://dl.eve-files.com/media/corp/Foxfire/EveAI_Live_0.9.17.zip


Pages: first : previous : 1 2 3 4 [5] 6 7 8 9 ... : last (26)

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only