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

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.11 21:28:25 -
[1] - 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 |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.12 13:10:29 -
[2] - 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. |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.12 13:25:56 -
[3] - Quote
I thought that in order to use it, you have to register an application with CCP and provide a URL call back address? |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.12 15:09:53 -
[4] - Quote
I may be an idiot, but when I paste in the full url it tells me it is unable to locate the authentication code. Can I paste in the url, or does it need to be entered manually?
Edit: It looks like for some reason the URL in the browser after I login doesn't contain the &state text |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.12 15:22:32 -
[5] - Quote
when calling
EveCrest crest = new EveCrest("I know the refresh token goes here", encodedKey);
What is the encodedKey?
Thanks again for all your help. It is nice to know I can ask the basic questions. |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.12 15:43:16 -
[6] - Quote
Awesome man, that works great. I create a new EveCrest object and pass that in. I am able to get an alliance name back |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.12 16:18:48 -
[7] - Quote
Right now it just sort of hangs. I'll dig and see what I can find. The alliance query you give as an example works. So the crest auth is working.
Thanks for everything |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.22 18:33:02 -
[8] - Quote
I have a new stupid question.
I am trying to get the fitting of the last ship the character was in. This is what I have so far
Character character = ckey.Characters.Single(c => c.CharacterName == "KillaGouge"); var inventory = character.GetAssetList(); var lastShip = character.GetCharacterInfo().Result.ShipTypeId;
I am not sure what I'd need to do to inventory to get all the instances of items with the same TypeId as lastShip
I thought it would be inventory.Result.Items.Where(item => item.ItemId == lastShip);
but that doesn't return an object I can foeach through.
Anybody have an idea on how I can be less wrong? |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.22 19:28:28 -
[9] - Quote
var lastShip = character.GetCharacterInfo().Result.ShipTypeId; var lastShipContainer = inventory.Where(item => item.TypeId == lastShip); foreach (var item in lastShipContainer) { foreach (var subItem in item.Items) { resutlLabel.Text += GetItem(subItem.TypeId).Name; } }
This works. I just need to do some testing for cases where |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.23 14:14:41 -
[10] - Quote
inventory.Where(item => item.TypeId == character.GetCharacterInfo().Result.ShipTypeId).ToList().ForEach(subItem => resutlLabel.Text = string.Concat(resutlLabel.Text, GetItem(subItem.TypeId).Name));
Produces this output
Golem
var lastShip = character.GetCharacterInfo().Result.ShipTypeId; var lastShipContainer = inventory.Where(item => item.TypeId == lastShip); foreach (var item in lastShipContainer) { foreach (var subItem in item.Items) { var itemInfo = GetItem(subItem.TypeId); resutlLabel.Text += itemInfo.Name; } }
Produces this output, which is what I am looking for
Mobile Tractor Unit Cruise Missile Launcher II Bastion Module I Salvager I Caldari Navy Large Shield Booster Pithum C-Type Adaptive Invulnerability Field Adaptive Invulnerability Field II Republic Fleet Target Painter Large Micro Jump Drive Caldari Navy Ballistic Control System Large Warhead Flare Catalyst II Caldari Navy Ballistic Control System Large Warhead Flare Catalyst II Salvager I Republic Fleet Target Painter Republic Fleet Target Painter Caldari Navy Ballistic Control System Caldari Navy Ballistic Control System Salvager I Hornet II Hornet II Hornet II Hornet II Cruise Missile Launcher II Cruise Missile Launcher II Cruise Missile Launcher II
|

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.23 14:50:25 -
[11] - Quote
couldn't you have a method that takes that information as parameters? So it would be GetMarketData(int regionId) and have overloaded constructors to get to the specifics a call would need?
Disclaimer, I am still new to programming |

KillaGouge
DelTacos 212
0
|
Posted - 2015.06.26 01:06:56 -
[12] - Quote
Icahmura, I tried adding the NuGet package to a Universal App project in Visual Studio, but apparently it cannnot because of a .Net version targeting error. Do you know how I would get around this?
Thanks |
|
|