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) |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.15 18:26:08 -
[301] - Quote
The EveCrest.GetX() functions are leftovers from the initial versions, and uses hardcoded URLs to access the resouces ,which is why they are deprecated. They will be removed for the next major release, since they are breaking changes. Just fixed the missing RegionID, anything else I should get done before I release this version? |

Aio Kaze
Perkone Caldari State
1
|
Posted - 2016.02.15 18:32:38 -
[302] - Quote
I haven't come across any other errors so that should be everything I noticed fixed. :) |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.15 19:15:53 -
[303] - Quote
New version of EveCrest available here: https://www.nuget.org/packages/eZet.EveLib.EveCrest/3.2.1
Release notes: https://github.com/ezet/evelib/releases/tag/EveCrest_v3.2.1 |

Jarno Midumulf
Riders of Sleipnir
11
|
Posted - 2016.02.16 22:31:39 -
[304] - Quote
nice!
how far are you whit contact write ? (not sure how i can add that my self..).
i will keep an eye out on te git repo and add what i can and make bug reports for the things i dont know how |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.17 07:50:15 -
[305] - Quote
Jarno Midumulf wrote:nice! how far are you whit contact write ? (not sure how i can add that my self..). i will keep an eye out on te git repo and add what i can and make bug reports for the things i dont know how Edit: you didn't update "EveAuth" in nuget?
EveAuth will be updated tonight. Is that causing any issues now ?
Crest POST/PUT/DELETE is still a ways off because I still haven't decided how I want the API to look, and as far as I remember I had some issues with POST or PUT last time I tried. |

Jarno Midumulf
Riders of Sleipnir
11
|
Posted - 2016.02.17 08:29:10 -
[306] - Quote
Icahmura Hasaki wrote:Jarno Midumulf wrote:nice! how far are you whit contact write ? (not sure how i can add that my self..). i will keep an eye out on te git repo and add what i can and make bug reports for the things i dont know how Edit: you didn't update "EveAuth" in nuget? EveAuth will be updated tonight. Is that causing any issues now ? Crest POST/PUT/DELETE is still a ways off because I still haven't decided how I want the API to look, and as far as I remember I had some issues with POST or PUT last time I tried. This is what I'll be working on next however, so it might be done in a few days.
if you use it to get the auth url and if you use it to out then yeah.. you added char location but not the scope to it... so you can not get the char location without the correct scope ;)
i did push a fix to git last night, didn't add the other missing scopes yet since those are not int use yet.. but i can add those as well if you want.
it would be nice if you can get the contacts to work (or just the post, put, delete in general), working on a project that needs it ;) do you mind sharing what the problem is? |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.17 18:08:17 -
[307] - Quote
New version of EveAuth: https://www.nuget.org/packages/eZet.EveLib.EveAuth/3.0.1
Release notes: https://github.com/ezet/evelib/releases/tag/EveAuth_v3.0.1 |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.17 20:09:23 -
[308] - Quote
I also forgot to add that EveCrest supports parameters now.
Added support for parameters. Each parameter must consist of a name and value pair. Example: region.Query(r => r.MarketBuyOrders, "type", "https://public-crest.eveonline.com/types/34/");
The old way of appending the query string at the end of the href still works, but the above way is cleaner. Ideally, you should fetch the type first, and then use the type.Url as a parameter instead of a hardcoded string.
Also, is there any way at all to navigate from crest root to market history? If not I will remove the deprecated tag from this and keep it around. |

Aio Kaze
Black Shell Industries
1
|
Posted - 2016.02.17 20:53:16 -
[309] - Quote
https://forums.eveonline.com/default.aspx?g=posts&t=403600
Not yet, but it's on their (very long) list of things to fix. |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.17 22:49:20 -
[310] - Quote
Ah, thanks for that. I'm making good progress on the post/put/delete requests, so I might be able to finish it this weekend. |
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.19 17:36:34 -
[311] - Quote
Still learning how to use the library. I have used the Query MarketTypes to get a list of the market types. Each MarketTypeCollection Item has has two properties MarketGroup and Type.
I would like to get an ItemType object from the Type's Uri and the icon from the Icon's Uri. How do I run a query on these and what type of object do I put it in?
For example Plagioclase (note it won't let me put more explicit text because it says no html even though I see links in previous posts), I would like to get an ItemType object so I can access the properties and attributes of items and an Image object.
Also, the MargetGroup property for Plagioclase has it's Uri set correctly, but it's Name property is null. Is this intentional and I would have to put the correct name string in this object by getting it from either the endpoint itself or my MarketGroup list retrieved from a Query of MarketGroups, or is this a bug and it should be populated. The Type property has it's Name is set to "Plagioclase".
Another question, does your web access abide by the 120 request per second with 400 request per seconds burst and 20 open connections limits specified for Crest?
I have the latest source code from github so if you want you could reference the source code in any explanations.
Thank you in advance. |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.20 10:28:56 -
[312] - Quote
Xiaou Bijoun wrote:Still learning how to use the library. I have used the Query MarketTypes to get a list of the market types. Each MarketTypeCollection Item has has two properties MarketGroup and Type.
I would like to get an ItemType object from the Type's Uri and the icon from the Icon's Uri. How do I run a query on these and what type of object do I put it in?
For example Plagioclase (note it won't let me put more explicit text because it says no html even though I see links in previous posts), I would like to get an ItemType object so I can access the properties and attributes of items and an Image object.
Also, the MargetGroup property for Plagioclase has it's Uri set correctly, but it's Name property is null. Is this intentional and I would have to put the correct name string in this object by getting it from either the endpoint itself or my MarketGroup list retrieved from a Query of MarketGroups, or is this a bug and it should be populated. The Type property has it's Name is set to "Plagioclase".
I'll have a look tonight
Quote:Another question, does your web access abide by the 120 request per second with 400 request per seconds burst and 20 open connections limits specified for Crest?
The RequestHandler has a threadpool of 20 threads for public and 10 for authenticated crest, and that is the only limit the library imposes. From what I can remember that amounts to roughly 50 requests per second. The size is configurable through the RequestHandler object on your EveCrest object. I might implement more sophisticated control some time, eg. bursts, but that's far down the road.
|

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.20 19:34:23 -
[313] - Quote
Here is a short example of achieving what you want, if I understand you correctly:
var marketType = (await crest.GetRoot().QueryAsync(r => r.MarketTypes)).Items.Single(i => i.Type.Name == "Plagioclase"); var itemType = await crest.LoadAsync(marketType.Type); var marketGroup = await crest.LoadAsync(marketType.MarketGroup); var itemIcon = await crest.LoadImageAsync(marketType.Type.Icon);
crest.LoadAsync() is the same as calling someresource.QueryAsync(), I know the naming is unfortunate. Notice how we cannot Query/Load the marketType object directly, because the marketType itself isn't a resource, and does not link anywhere. It does however contain two linked resources, Type and MarketGroup, which can be queried. crest.LoadImage() returns the image as a simple byte array. About the missing name, CREST does unfortunately not provide the MarketGroup name in the collection, so you will have to query the MarketGroup link for that. I have used the same base class as I use for all resource links, and I believe all others has a Name property but this one. I will probably remove the Name property in the next major version.
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.21 17:39:27 -
[314] - Quote
Thank you for that information. I had discovered the Load function but LoadAsync is better. I tried to put the Async functions in but with the await keyword, it wants the calls in a seperate async function, which I have not wrapped my head around yet. I removed the await keywords and it works, but the icon task never completes. I know the href is working, I can copy it from a watch window into a browser and get the image.
Here is my function...
MarketTypeInformation GetMarketTypeInformation(MarketTypeCollection.Item marketType) { MarketTypeInformation info = new MarketTypeInformation();
var itemType = eveCrest.LoadAsync(marketType.Type); var marketGroup = eveCrest.LoadAsync(marketType.MarketGroup); var itemIcon = eveCrest.LoadImageAsync(marketType.Type.Icon);
while (itemType.IsCompleted == false || marketGroup.IsCompleted == false || itemIcon.IsCompleted == false) ;
info.itemType = itemType.Result; info.marketGroup = marketGroup.Result;
using (var ms = new MemoryStream(itemIcon.Result)) { info.icon = Image.FromStream(ms); }
return (info); }
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.21 18:06:21 -
[315] - Quote
When I get the ItemType information of an item that contains DogmaAttribute and DogmaEffects, the Href parameters on those are null. How are you supposed to get the information for those? |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.21 22:46:54 -
[316] - Quote
Xiaou Bijoun wrote:When I get the ItemType information of an item that contains DogmaAttribute and DogmaEffects, the Href parameters on those are null. How are you supposed to get the information for those?
Those are not supposed to be null. I'll have a look tomorrow. I'll look at the icon too. If you want to use async, it should use async/await all the way up to your top level event handler or whatever is the topmost caller of your code. You might want to read up on async/await for that :)
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.22 00:13:11 -
[317] - Quote
Thank you, I will read up more on the await/async. If you do fully use await/async do you need the IsCompleted? |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.22 07:46:15 -
[318] - Quote
Xiaou Bijoun wrote:Thank you, I will read up more on the await/async. If you do fully use await/async do you need the IsCompleted?
No, then you would use the await keyword, or Task.AwaitAll(). |

NullBy7e
Star Nation Elemental Tide
0
|
Posted - 2016.02.22 08:20:35 -
[319] - Quote
Xiaou Bijoun wrote:Thank you, I will read up more on the await/async. If you do fully use await/async do you need the IsCompleted?
http://pastebin.com/U8JRNG7J
public async Task MarketTypeInformation GetMarketTypeInformationAsync(MarketTypeCollection.Item marketType) { var info = new MarketTypeInformation(); var itemType = eveCrest.LoadAsync(marketType.Type); var marketGroup = eveCrest.LoadAsync(marketType.MarketGroup); var itemIcon = eveCrest.LoadImageAsync(marketType.Type.Icon); using (var ms = new MemoryStream(await itemIcon)) { info.icon = Image.FromStream(ms); } info.itemType = await itemType; info.marketGroup = await marketGroup; return info; } public async void DoStuffAsync() { var marketTypeInfo = GetMarketTypeInformationAsync(); // //do stuff here that doesn't require the value/result of marketTypeInfo // // //await for the result // var marketTypeInfoResult = await marketTypeInfo; }
|

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.22 17:37:33 -
[320] - Quote
I've fixed bugs with the DogmaAttribute and DogmaEffect on ItemTypes, and they are now parsed correctly, I'll update EveCrest shortly.
I tested LoadImage and it's working fine, tested using the following code:
public async Task GetIcon() { var item = (await crest.GetRoot().QueryAsync(r => r.MarketTypes)).Items.First(); var icon = await crest.LoadImageAsync(item.Type.Icon); }
And I also did the same using the synchronous methods, both load the image data correctly.
|
|

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.22 19:08:18 -
[321] - Quote
EveCrest 3.2.2 is up: https://www.nuget.org/packages/eZet.EveLib.EveCrest/3.2.2
Release notes: https://github.com/ezet/evelib/releases/tag/EveCrest_v3.2.2 |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 15:24:19 -
[322] - Quote
The latest build of Crest v3.2.2 has caused previously compiling code to error.
I have been trying to post some details, but no matter what I do it thinks I am posting html. |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.23 15:27:32 -
[323] - Quote
Xiaou Bijoun wrote:The latest build of Crest v3.2.2 has caused previously compiling code to error.
I have been trying to post some details, but no matter what I do it thinks I am posting html.
Post it on github or somewhere else, I can't do much without more information. |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 15:27:53 -
[324] - Quote
Basically, I created a list of MarketGroup by Querying the root which returns a MarketGroupCollection and converting to a List with ToList() function, but it now says that it can't convert from MarketGroupCollection.MarketGroupItem to MarketGroup. If I change my list to a MarketGroupCollection.MarketGroupItem I can get that code to compile but later on when I am building the Market Group TreeView (basically a clone of the Eve Market Window) the ParentGroup field is not available in the MarketGroupCollection.MarketGroupItem. I use the ParentGroup field to build the tree from the out of order list of MarketGroup items. This probably a misunderstanding of what classes I should be using to do this, but it did previously work with Crest 3.2.1.
Thank you |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.23 15:32:56 -
[325] - Quote
Xiaou Bijoun wrote:Basically, I created a list of MarketGroup by Querying the root which returns a MarketGroupCollection and converting to a List with ToList() function, but it now says that it can't convert from MarketGroupCollection.MarketGroupItem to MarketGroup. If I change my list to a MarketGroupCollection.MarketGroupItem I can get that code to compile but later on when I am building the Market Group TreeView (basically a clone of the Eve Market Window) the ParentGroup field is not available in the MarketGroupCollection.MarketGroupItem. I use the ParentGroup field to build the tree from the out of order list of MarketGroup items. This probably a misunderstanding of what classes I should be using to do this, but it did previously work with Crest 3.2.1.
Thank you
Got it, and I know why, I'll fix it in a few hours. I should probably spend more time testing before releasing, but I'm trying to push things out as quickly as possible now that I've got some time for it :)
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 15:59:03 -
[326] - Quote
No problem, your code has saved me hours of programming. I have worked on a library for months with barely a fraction of the functionality that you provide in this library. I appreciate your work and your timely addressing of issues. I know of professional companies that take longer to address issues.
I wish my skills were a little better because I might be able to help with the debugging of the library, but alas I am just a hacker and not the type everyone thinks are cool.
Do you have any idea why I have issues posting source code? I can get some stuff to go through and see it in the preview then all of a sudden it says it cannot contain html and erases everything I have tried to enter. I copied the code I posted from the other day and it went in with no problems. It would be so much easier to post source code examples.
By the way, I am also trying to do the same thing with Regions and run into a similar issue, but I will wait until I have the MarketGroups working again and see if I can figure it out on my own before I spring that on you.
I think some of my problem is visualizing the difference between the objects with Crest endpoints and the actual resource objects. |

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.23 18:07:49 -
[327] - Quote
EveCrest 3.2.3, reverting the model changes to MarketGroupCollection and MarketGroupItem in previous release. https://www.nuget.org/packages/eZet.EveLib.EveCrest/3.2.3
https://github.com/ezet/evelib/releases/tag/EveCrest_v3.2.3 |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 18:55:44 -
[328] - Quote
Don't think me a pain, but just tried Crest v3.2.3 and the initial call to create an EveCrest object causes an exception.
eveCrest = new EveCrest();
From my log text...
Creating EveCrest object. Exception: System.MissingMethodException: Method not found: 'System.String eZet.EveLib.Core.Config.get_AppData()'. at eZet.EveLib.EveCrestModule.RequestHandlers.CachedCrestRequestHandler..ctor(ISerializer serializer) at eZet.EveLib.EveCrestModule.EveCrest..ctor() at EveCrestContest.frmMarketItems.frmMarketItems_Shown(Object sender, EventArgs e) in C:\EveCrestContest v1.0.0.4\EveCrestContest\frmMarketItems.cs:line 49
|

Icahmura Hasaki
Perkone Caldari State
22
|
Posted - 2016.02.23 19:33:30 -
[329] - Quote
Xiaou Bijoun wrote:Don't think me a pain, but just tried Crest v3.2.3 and the initial call to create an EveCrest object causes an exception. eveCrest = new EveCrest();
From my log text...
Creating EveCrest object. Exception: System.MissingMethodException: Method not found: 'System.String eZet.EveLib.Core.Config.get_AppData()'. at eZet.EveLib.EveCrestModule.RequestHandlers.CachedCrestRequestHandler..ctor(ISerializer serializer) at eZet.EveLib.EveCrestModule.EveCrest..ctor() at EveCrestContest.frmMarketItems.frmMarketItems_Shown(Object sender, EventArgs e) in C:\EveCrestContest v1.0.0.4\EveCrestContest\frmMarketItems.cs:line 49
Not sure how that has happened, but try updating EveLib.Core in a few minutes, to v3.0.3, and let me know if that works.
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 19:43:04 -
[330] - Quote
Now the exception is
Creating EveCrest object. Exception: System.MissingFieldException: Field not found: 'eZet.EveLib.Core.Config.Separator'. at eZet.EveLib.EveCrestModule.RequestHandlers.CachedCrestRequestHandler..ctor(ISerializer serializer) at eZet.EveLib.EveCrestModule.EveCrest..ctor() at EveCrestContest.frmMarketItems.frmMarketItems_Shown(Object sender, EventArgs e) in D:\EveCrestContest v1.0.0.4\EveCrestContest\frmMarketItems.cs:line 49
|
|
|
|
|
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 |