Skip to content

Commit

Permalink
Fixes and Metamorph league prep (#1052)
Browse files Browse the repository at this point in the history
* data file updates

* Added update version check exception GUI instead of msgbox

* fixed a typo and the exact currency search fallback not working

* workaround for poe.trade not knowing about warstaves

* fixed abyssal sockets issues when including max sockets

* updated curl.exe

* changed affixlookup to use poedb

* improved warstaff/runde dagger item type workaround

* updated gemlist

* ItemInfo new influence parsing

* initial support for multiple incluences on items ("special base")

* always add map tier to support new atlas

* ring/amulet (catalyst) quality parsing

* basic search implementation for jewelry quality

* updated version and notes

* improved implicit parsing

* more data file updates
  • Loading branch information
Eruyome authored Dec 13, 2019
1 parent a2f6e73 commit 5ea4431
Show file tree
Hide file tree
Showing 14 changed files with 610 additions and 388 deletions.
142 changes: 80 additions & 62 deletions data/DivinationCardList.txt

Large diffs are not rendered by default.

110 changes: 63 additions & 47 deletions data/GemQualityList.txt

Large diffs are not rendered by default.

317 changes: 143 additions & 174 deletions data/MapList.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data_trade/helmet_enchantment_mods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ Lightning Golems deal #% increased Damage
Summoned Raging Spirits deal #% increased Damage
Skeletons deal #% increased Damage
#% chance to Summon an additional Skeleton Warrior with Summon Skeleton
#% chance to Summon an additional Skeleton Warrior with Summon Skeletons
Summoned Skitterbots have #% increased Area of Effect
Summon Skitterbots has #% reduced Mana Reservation
Stone Golems deal #% increased Damage
Expand Down
2 changes: 1 addition & 1 deletion data_trade/item_bases_armour.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data_trade/mods.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data_trade/prophecy_details.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data_trade/uniques.json

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions lib/PoEScripts_Update.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ GetLatestRelease(user, repo, ReleaseVersion, ShowUpdateNotification, userDirecto
description := LatestRelease.body

RegExReplace(releaseTag, "^v", releaseTag)
versions := ParseVersionStringsToObject(releaseTag, ReleaseVersion)
versions := ParseVersionStringsToObject(releaseTag, ReleaseVersion, repo)

newRelease := CompareVersions(versions.latest, versions.current)
If (newRelease and repo = "PoE-TradeMacro") {
Expand Down Expand Up @@ -251,7 +251,7 @@ RemoveLeadingZeros(in) {
Return LTrim(in, "0")
}

ParseVersionStringsToObject(latest, current) {
ParseVersionStringsToObject(latest, current, repo) {
; requires valid semantic versioning
; x.x.x
; vx.x.x
Expand All @@ -262,7 +262,13 @@ ParseVersionStringsToObject(latest, current) {
RegExMatch(current, "(\d+).(\d+).(\d+)(.*)", currentVersion)

If (StrLen(latest) < 1) {
MsgBox, 16,, % "Exception thrown! Parsing release information from Github failed."
Gui, UpdateVersionException:New
Gui, UpdateVersionException:Font, Verdana
Gui, UpdateVersionException:Add, Text, , % "Exception thrown while checking for updates!`n`nParsing release information from Github failed."
Gui, UpdateVersionException:Show, NA w300, %repo% - Error

;TrayTip, %repo%, % "Update check failed while parsing`nrelease information from Github."
;MsgBox, 16,, % "Exception thrown! Parsing release information from Github failed."
}

versions := {}
Expand Down
Binary file modified lib/curl.exe
Binary file not shown.
14 changes: 14 additions & 0 deletions resources/Updates_Trade.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
The following is a list of what has been updated, starting with 1.1.0

2.15.4
================================================================================================
* Added parsing and search options for the new influence types (Hunter, Redeemer, Warlord, Crusader).
* Added support for multiple influences on items.
* Added basic search options for quality (catalysed) on rings and amulets.
* Maps now have always their map tier included in searches.
* Searches using the item type now use "Staff"/"Dagger" instead of "Warstaff"/"Rune Dagger" as a bad workaround for poe.trade not knowing these types exist.
* Changed the item affix lookup macro to now use poedb.tw instead of poeaffix.net.
* Updated cURL.
* Fixed rare items with abyssal sockets not being parsed correctly for the advanced search.
* Fixed wrong number of normal sockets being included in the advanced search when an item has an abyssal socket.
* Fixed macro update version check exception/error message activate focused, which could unfocus the game. Which is bad.
* Updated data files (uniques etc.).

2.15.3
================================================================================================
* Changed the default (main) hotkeys from using "ctrl" to using "alt" to prevent conflicts with PoEs new second skillbar hotkeys. This will not change any settings of existing TradeMacro installations.
Expand Down
2 changes: 1 addition & 1 deletion resources/VersionTrade.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TradeReleaseVersion := "v2.15.3"
TradeReleaseVersion := "v2.15.4"
TradeAHKVersionRequired := "1.1.26.00"
Loading

0 comments on commit 5ea4431

Please sign in to comment.