nibbydev / easybuyout Goto Github PK
View Code? Open in Web Editor NEWSet buyout notes in Path of Exile with one click
License: MIT License
Set buyout notes in Path of Exile with one click
License: MIT License
Hi , how i can use this addon pls
[19:49:50][ERROR] System.Net.WebException: The remote server returned an error: (504) Gateway Timeout.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at System.Net.WebClient.DownloadString(String address)
at Pricer.PriceManager.SearchPoePrices(String rawItemData)
Been running into this today. Similar issues with PoE Trade Macro as well.
Some gem keys (eg "Glacial Cascade|4|10|20|1") are formed incorrectly. This is especially evident in lvl10 variations. Plus poeninja has no support for lvl10 gems and poeovh changed its keys recently.
mainwindow.xaml.cs
Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/MainWindow.xaml.cs#L189
VS 2017 method private void ClipBoard_ItemParseTask(string clipboardString)
switch(entry.value) {
VS 2015 compatible:
int entryValue = (int)entry.value;
switch (entryValue) {
pricemanager.cs
Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L48
VS 2017 method private void DownloadPoeOvhData()
tempDict.TryGetValue(name_category, out Dictionary<string, PoeOvhEntry> category);
VS 2015 compatible:
Dictionary<string, PoeOvhEntry> category;
tempDict.TryGetValue(name_category, out category);
Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L52
VS 2017 method private void DownloadPoeOvhData()
// Get OvhEntry from list
category.TryGetValue(name_item, out PoeOvhEntry ovhEntry);
VS 2015 compatible:
// Get OvhEntry from list
PoeOvhEntry ovhEntry;
category.TryGetValue(name_item, out ovhEntry);
Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L107
VS 2017 method private void DownloadPoeNinjaData()
tempDict.TryGetValue("lines", out List<PoeNinjaEntry> entryList);
VS 2015 compatible:
List<PoeNinjaEntry> entryList;
tempDict.TryGetValue("lines", out entryList);
Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L365
VS 2017 method private void SearchPoePrices()
prices.TryGetValue("Exalted Orb|5", out Entry exaltedEntry);
VS 2015 compatible:
out Entry exaltedEntry;
prices.TryGetValue("Exalted Orb|5", out exaltedEntry);
Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/PriceManager.cs#L387
VS 2017 method private void Search()
// Get the database entry
prices.TryGetValue(key, out Entry tempEntry);
VS 2015 compatible:
// Get the database entry
Entry tempEntry;
prices.TryGetValue(key, out tempEntry);
settingswindow.xaml.cs
Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/SettingsWindow.xaml.cs#L58
VS 2017 method private void Button_Apply_Click(object sender, RoutedEventArgs e)
// Delay box
Int32.TryParse(TextBox_Delay.Text, out int delay);
VS 2015 compatible:
// Delay box
int delay;
Int32.TryParse(TextBox_Delay.Text, out delay);
Changes in https://github.com/siegrest/Pricer/blob/master/Pricer/SettingsWindow.xaml.cs#L70
VS 2017 method private void Button_Apply_Click(object sender, RoutedEventArgs e)
// Lower price % box
Int32.TryParse(TextBox_LowerPrice.Text, out int percentage);
VS 2015 compatible:
// Lower price % box
int percentage;
Int32.TryParse(TextBox_LowerPrice.Text, out percentage);
If you try to use Pricer on divination card tab noting happens.
You need to grab divination card to your inventory and then press right mouse click. And then put again the divination card to divination card tab :(
Run button does not activate when user presses download button and exits settings window before download has finished.
Can you add an option to use this as a source for pricing rares again? Allow us to specify every generic option that's on the site (Machine Learning Price, Recommended Price, etc.)
How to fix it:
UpdateWindow.xaml.cs Run():
public void Run() {
// Can't be null when making calls to github
webClient.Headers.Add("user-agent", "!null");
// Fix for https DonwloadString bug:
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12;
[...]
}
New one can be found under http://api.poe.ovh/get
, documentation http://poe.ovh/api
, Files affected: PriceManager.cs
, Item.cs
.
File: PriceManager.cs
Method: DownloadPoeOvhData()
// Download JSON-encoded string
string jsonString = MainWindow.webClient.DownloadString("http://api.poe.ovh/get?league=" + Settings.league + "&parent=all");
The donwload seems 'ok', but when you try to deseriealize:
// Deserialize
List<PoeOvhEntry> tempDict = new JavaScriptSerializer().Deserialize<List<PoeOvhEntry>>(jsonString);
It's throws this exception:
"Error during serialization or deserialization using JSON JavaScriptSerializer.The length of the string exceeds the value set in the maxJsonLength property. \ R \ nName of the parameter: input"
Useful info about exception: https://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.maxjsonlength(v=vs.110).aspx
Maybe this is the 'problem':
The maximum length of JSON strings. The default is 2097152 characters, which is equivalent to 4 MB of Unicode string data.
How i fixed?
// Deserialize (Fix bug 4 MB data)
List<PoeOvhEntry> tempDict = Newtonsoft.Json.JsonConvert.DeserializeObject<List<PoeOvhEntry>>(jsonString);
I.e Maelström of Chaos
is parsed as Maelström of Chaos
. Due to this items with accents in them can not be priced.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.