Pages: 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 .. 15 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 2 post(s) |
Tango Papa
The Scope Gallente Federation
0
|
Posted - 2015.01.22 17:06:34 -
[151] - Quote
I sent a pull request on Github for the change. |
Syrsyrian
Hounds of War. Hashashin Cartel
2
|
Posted - 2015.02.19 16:04:15 -
[152] - Quote
Firstly, thank you so much for this. Made working with the API much less of a pain. Secondly I am trying to search through alliances by name rather than id but the names are null using the following code block;
EveCrest crest = new EveCrest();
var alliance = crest.GetRoot().Query(r => r.Alliances).Query(r => r.Where(a => a.Name == allianceName)).FirstOrDefault();
any ideas? |
Warren DeMartini
United Earth Space Council
1
|
Posted - 2015.03.07 00:31:24 -
[153] - Quote
Sorry for the noob question, but I can't seem to get a market return for a specific system. Using eve-central library, do you have to provide both the region and the system?
I've tried this (VB.NET):
options.Regions.Add(10000002) options.System = ItemID' itemID is the id for the specific system Dim response As EveCentralModule.Models.MarketStatResponse = EveCentral.GetMarketStat(options)
...which does return data for the region, but I can't figure out how to get info on the system. If I provide only the system, I get all 0's on the returns. Am I going about it the wrong way?
What I'm looking for is a code example for getting information for a specific system. I appreciate any help!
If anyone has some code that shows best practices on how to use the market objects in general, that would also be greatly appreciated!
If there's already documentation that's easy to follow, I apologize - all I could find were the sparse examples on Git.
-Warren |
Icahmura Hasaki
Bearded BattleBears Brave Collective
15
|
Posted - 2015.03.08 04:07:51 -
[154] - Quote
https://eve-central.com/home/develop.html
There is an example there using system without a region, which I assume is the correct way. If this returns 0 or errors as you say it's a bug. I'll have a look tomorrow. |
Icahmura Hasaki
Bearded BattleBears Brave Collective
15
|
Posted - 2015.03.10 12:52:49 -
[155] - Quote
I just tested using a system and it seems to be working fine, are you still having issues? |
Dor Cadmon
New Artisian and Mercenary Association
0
|
Posted - 2015.03.15 11:33:29 -
[156] - Quote
I would like to thank you for creating this package.
i'm looking to integrate with the corp api stuff available. I have specific questions regarding starbases.
I have created a corp api object and returned the get star base list and then started iterating through each. I have two problems because i'm a newb.
1. I don't know how to find out the pos name! very frustrating 1b. I can't do lookups using starbase ids of type long because the lookup functions I found require int types.
Dim api As New EveApi api.Authentication = auth
Dim info() As PropertyInfo = api.GetType().GetProperties() Dim charsInfo = api.GetAccountEntries() Dim corpApi = api.GetCorporationStarbaseList Dim StarBaseList = api.GetCorporationStarbaseList
For Each mm As StarbaseListEntry In StarBaseList
Dim stbDetails = api.GetCorporationStarbaseDetail(mm.ItemID)
>>>>>>>>>>> Dim ControlToweName As String = ""
Dim ControlTowerLocation = stbDetails.AdditionalData.Location.Name
Next |
Icahmura Hasaki
Bearded BattleBears Brave Collective
15
|
Posted - 2015.03.16 14:27:41 -
[157] - Quote
I'm not sure how this relates to EveLib. The code you have does not use EveLib, maybe you have it confused with another library ? |
Icahmura Hasaki
Bearded BattleBears Brave Collective
15
|
Posted - 2015.03.16 14:42:48 -
[158] - Quote
Try using the location API to get the name. |
Dor Cadmon
New Artisian and Mercenary Association
0
|
Posted - 2015.03.16 14:46:31 -
[159] - Quote
so sorry for referencing wrong code (I did try a couple diff libs to see if they would teach me.
Dim corp As New Corporation(corKey, corpId)
Dim sbL = corp.GetStarbaseList.Result.Starbases For Each sb As Starbase In sbL Dim sbState As Integer = 0
sbState = sb.State
Next
I know I can get the location for this object but would you please show me how I'd use the ID coming from the starbase asset (or any corp asset for that matter) to retrieve the name? I believe that pos' and jb's are considered containers in this context?
again thanks for taking the time to educate me and great api. |
Icahmura Hasaki
Bearded BattleBears Brave Collective
15
|
Posted - 2015.03.16 15:04:26 -
[160] - Quote
Use the Locations API, it returns the name.
Dim location = corp.GetLocations(itemID) // you can do multiple IDs at a time Dim itemName = location.itemName |
|
Dor Cadmon
New Artisian and Mercenary Association
0
|
Posted - 2015.03.16 15:11:45 -
[161] - Quote
thank you so much for helping me with my basic questions. Its easy but not necessarily straight forward the first time. Your contributions are greatly appreciated. I hope I may ask other questions after I've tried to find the answer myself.
ty m8. |
Warren DeMartini
United Earth Space Council
1
|
Posted - 2015.03.17 21:48:26 -
[162] - Quote
Not sure what the problem is. I set either the region or the system (but not both) in the first Select Case, and all the BuyOrders and SellOrders values in response.Result.Item(0) are zero. Here's the code if that will help:
Public Function GetPrice(mat As cMaterial) As Double
Dim options As New EveCentralOptions() With {.HourLimit = HourLimit, .MinQuantity = MinQuantity} options.Items.Add(mat.TypeID) 'add the material's type id Dim EveCentral = New EveCentral()
Select Case ItemType 'this is an enum value; value is property of this class
Case eSystemType.REGION options.Regions.Add(ItemID) Case eSystemType.SOLARSYSTEM options.System = ItemID
End Select
Dim response As EveCentralModule.Models.MarketStatResponse = EveCentral.GetMarketStat(options)
Select Case TypeTransaction ' this is an enum value; value is property of this class
Case eTransaction.BUY
Select Case TypePrice ' this is an enum value; value is property of this class
Case ePrice.AVG Return response.Result.Item(0).BuyOrders.Average Case ePrice.MAX Return response.Result.Item(0).BuyOrders.Max Case ePrice.MIN Return response.Result.Item(0).BuyOrders.Min
End Select
Case eTransaction.SELL
Select Case TypePrice
Case ePrice.AVG Return response.Result.Item(0).SellOrders.Average Case ePrice.MAX Return response.Result.Item(0).SellOrders.Max Case ePrice.MIN Return response.Result.Item(0).SellOrders.Min
End Select
End Select End Function
Thanks,
--Warren |
Icahmura Hasaki
Bearded BattleBears Brave Collective
15
|
Posted - 2015.03.18 00:42:51 -
[163] - Quote
Try it without the HourLimit and MinQuantity. I am pretty sure the marketstat call should be working, unless something has changed recently or there is an issue specific to VB. |
Warren DeMartini
United Earth Space Council
1
|
Posted - 2015.03.23 01:34:58 -
[164] - Quote
Icahmura Hasaki wrote:Try it without the HourLimit and MinQuantity. I am pretty sure the marketstat call should be working, unless something has changed recently or there is an issue specific to VB.
Yep - that did it. I was passing in 1 hour, 1 Quant. Limit by default. Thanks man!
|
Chizeru Nakamoto
Science and Trade Institute Caldari State
0
|
Posted - 2015.03.25 22:55:46 -
[165] - Quote
Hi, I had a couple of questions if you have the time. Never worked in C# before, so some of the questions might be, uh...stupid.
1) I'm getting exceptions when trying to retrieve market orders for a region. It seems to be related to how the MarketOrder class extends LinkedEntity{NotImplemented}. Is current market order support not yet implemented or am I just missing something?
2) Nevermind, figured it out. |
Space Frenemy
State War Academy Caldari State
1
|
Posted - 2015.04.02 02:18:37 -
[166] - Quote
Chizeru Nakamoto wrote:Hi, I had a couple of questions if you have the time. Never worked in C# before, so some of the questions might be, uh...stupid.
1) I'm getting exceptions when trying to retrieve market orders for a region. It seems to be related to how the MarketOrder class extends LinkedEntity{NotImplemented}. Is current market order support not yet implemented or am I just missing something?
2) Nevermind, figured it out. I had the same problem, couldn't figure out what was up. I'm not even sure due to lack of documentation on the CREST side of things whether the market orders are even active on crest-tq? Anyway, I tried repackaging the code myself and applying the appropriate MarketOrderCollection to the output (where it is currently LinkedEntity{NotImplemented}), but that didn't really help me either.
Any ideas, Icahmura? |
Icahmura Hasaki
Bearded BattleBears Brave Collective
15
|
Posted - 2015.04.02 13:29:56 -
[167] - Quote
Getting market orders for a region isn't working right now, as I haven't implemented a way to pass the required itemID href as a parameter. I've discussed some possible solutions with some others, and we're working on it. I haven't been spending much time on this lately, but I'll see if I can push some updates during eastern. Anyone is welcome to make improvements and request a pull :) |
Rankenn Estemaire
The Scope Gallente Federation
0
|
Posted - 2015.04.04 16:20:01 -
[168] - Quote
Icahmura Hasaki wrote:Getting market orders for a region isn't working right now, as I haven't implemented a way to pass the required itemID href as a parameter. I've discussed some possible solutions with some others, and we're working on it. I haven't been spending much time on this lately, but I'll see if I can push some updates during eastern. Anyone is welcome to make improvements and request a pull :)
Could that explain why I'm getting weird Station IDs that are way to high? The highest available station id is 60015151 but I'm getting id back that are in the 61000000 range
|
Clyde en Marland
Raised By Wolves Inc
4
|
Posted - 2015.04.10 13:36:35 -
[169] - Quote
var api = new ZKillboard(); var options = new ZKillboardOptions(); options.Limit = 1; options.WSpace = true; try { ZkbResponse response = api.GetKills(options); } catch (Exception ex) { }
This always throws a Newtonsoft.Json.JsonSerializationException "Error converting value \"1\" to type 'System.Boolean'. Path '[0].attackers[0].finalBlow', line 1, position 642." I've dug into it, & it seems that the deserializer should be setting the property "FinalBlowString" of the "ZkbAttacker" object (which then sets the bool "FinalBlow", but something isn't mapping "finalBlow" in the Json to the DataMember "finalBlow" (which is attached to the property "FinalBlowString"). Does anyone else see this, or have any pointers? |
Icahmura Hasaki
Bearded BattleBears Brave Collective
15
|
Posted - 2015.04.12 15:34:14 -
[170] - Quote
Renkenn Estemaire: I have no idea whats causing invalid Station IDs.
Clyde en Marland: Should be an easy fix, I'll look at it tomorrow. |
|
Kainar Detremov
Best Kept Frozen. Meet The Bandits.
0
|
Posted - 2015.06.04 03:42:44 -
[171] - Quote
I'm having a similar issue to Clyde en Marland,
It occurs when calling api.GetKills - this is the stack trace. |
Icahmura Hasaki
Bearded BattleBears Brave Collective
16
|
Posted - 2015.06.04 15:47:33 -
[172] - Quote
I pushed a fix to github that hopefully resolves any issues with ZKillboard.
Does any of you have the possibility to test the changes before I push it to Nuget ? |
Kainar Detremov
Best Kept Frozen. Meet The Bandits.
0
|
Posted - 2015.06.05 07:48:16 -
[173] - Quote
Everything appears to be working wonderfully now. Thanks for your time and ongoing support and work on this library - it's fantastic! |
Icahmura Hasaki
Bearded BattleBears Brave Collective
16
|
Posted - 2015.06.06 14:42:53 -
[174] - Quote
Thanks for the appreciation! I've pushed this fix to nuget now, along with a fix for the AccountStatus/MultiCharacterTraining issue with EveXML. |
Clyde en Marland
Raised By Wolves Inc Nerfed Alliance Go Away
5
|
Posted - 2015.06.09 07:34:45 -
[175] - Quote
I'm not sure whether you caught this one in your fix, so I'll note it anyway. zKillboard seem to have removed the "X-Bin-Request-Count" & "X-Bin-Max-Requests" headers which results in a problem in ZkbRequestHandler.RequestAsync (lines 76 & 77 by my IDE).
This is awesome work though |
Icahmura Hasaki
Bearded BattleBears Brave Collective
16
|
Posted - 2015.06.09 09:14:34 -
[176] - Quote
I noticed it seemed to be missing in some tests, and thought I fixed that in the latest version. If it's really gone I'll just remove the parts relating to it all together, but it should still be working in the newest version. Thanks for the heads up though :) |
KillaGouge
DelTacos 212
0
|
Posted - 2015.06.11 21:28:25 -
[177] - Quote
I have been learning C# and this is really fun to use. I am curious if there is a way to take the ItemId that is returned from the GetAssetList method and map that to an actual item name. Would I need a database internal to the project?
Thanks for the great library |
Clyde en Marland
Raised By Wolves Inc Nerfed Alliance Go Away
5
|
Posted - 2015.06.12 10:50:52 -
[178] - Quote
Add a function like this to query the item:
private eZet.EveLib.StaticDataModule.Models.InvType GetItem(int id) { var asstObjAccess = new eZet.EveLib.StaticDataModule.EveStaticData(); var assetObj = asstObjAccess.GetInvType(id);
return assetObj; }
Then do this to call it & have access to the info:
var assList = char1.GetAssetList().Result.Items; var assetInfo = GetItem(assList.TypeId); var assetName = assetInfo.Name; |
Icahmura Hasaki
Bearded BattleBears Brave Collective
16
|
Posted - 2015.06.12 12:34:13 -
[179] - Quote
Excellent answer Clyde :)
KillaGouge: The StaticDataModule uses element-43.com to retrieve data, each call to var assetObj = asstObjAccess.GetInvType(id); will do a http request, so it might not be suitable for a very large number of items.
I stopped development of that module some time ago in anticipation of CREST, but CREST and the way its been designed/implemented has really put me off, so maybe I'll finish this, or at least a few more endpoints.
|
KillaGouge
DelTacos 212
0
|
Posted - 2015.06.12 13:10:29 -
[180] - Quote
Thank you both Clyde and Icahmura. I will look into the StaticDataModule. Last night while trying to brute force a solution I grabbed the invTypes.xls from fuzzwork and created a stupidly long dictionary and just passed the type ID into a TryGetValue. The performance wasn't nearly as bad as I thought it would be, but going forward I know that is a horrible way of doing things.
Icahmura, if you don't mind me asking what about CREST has put you off? For me, the way that auth CREST works, makes it very hard to develop using it, as I don't yet have a URL to redirect back to as I am just running the project in visual studio on my machine. I don't want to pay for Azure time while I am still learning and developing.
Thanks for all the help. |
|
|
|
|
Pages: 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 .. 15 :: one page |
First page | Previous page | Next page | Last page |