-
Notifications
You must be signed in to change notification settings - Fork 301
Trader tool PoB1 improvement ports and PoE2 specific fixes #1801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
vaisest
wants to merge
30
commits into
PathOfBuildingCommunity:dev
Choose a base branch
from
vaisest:trader-tool-port
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
7ee6401
Add functionality to copy augments to compared items, like anointment…
vaisest 51df964
Port jewel comparison tooltip socket sorting from pob1
vaisest 17cec65
Fix item comparison augment copy not treating spell weapons as weapon…
vaisest c1ec658
port compatible trader tool changes from pob1
vaisest fa9bd6b
Fix corrupted mods being fractured mods in trade mod generation
vaisest b2f9ff4
Fix radius jewel weight generation
vaisest 52fc62d
Regenerate QueryMods.lua
vaisest 0d2a6a9
convert trade tool mod weight generation to use tradeHash
vaisest 072aa2b
wip: change poesessid to bearer token
vaisest 083f4fe
Cleanup: remove extra logout button and fix poeapi comments
vaisest d3f24c9
Fix trader crash when rate limited on startup
vaisest 58ba609
Use https://poe.ninja/poe2/api/economy/exchange/current/overview for …
vaisest 4b685b5
Fix poe.ninja tests
vaisest 9f48446
Fix trader section anchor
vaisest 68bc973
Adjust price scaling factor due to things being in divs (still an abi…
vaisest 6bd15dd
Clarify price options and rate limit waits, and use Retry-After for r…
vaisest 45ee686
rate limiting pls work
vaisest b2f9b4f
Fix perfect essences not appearing in generated weights, and regenera…
vaisest 339488c
Fix tradehashes for radius jewels
vaisest 49fba18
Improve rate limit countdown to prevent simplegraphic suspension prob…
vaisest 7f3c57d
Fix debug print causing crash, and remove extra debug print
vaisest 86669c9
disable wiping trader controls to fix crash when it is closed and a s…
vaisest f5f7b48
Add note about doing weird filter requirements (e.g. adorned)
vaisest 223fd6d
remove whisper for instant buyout items
vaisest e122020
make cspell happy
vaisest 674c6b6
Fix database radius jewels being nonfunctional
vaisest 64c38e6
Fix currency conversion button not being updated after reopening trad…
vaisest b89b567
Avoid useless search in "search for" button
vaisest ddb73c8
fix api error on invalid token
vaisest 628ab84
disable reuseaddr
vaisest File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seemed to make PoB think it's listening on the first port when another program was already listening, which meant the key goes to the wrong program
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I thought I tested this specifically since it's a security issue, but I can check again. Regardless, the right fix for this would likely be to use the option in LaunchServer.lua instead:
server:setoption(option [, value])from https://lunarmodules.github.io/luasocket/tcp.htmlThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested again, you can see PoB change port to an unused one if a server is running elsewhere:

Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've figured out the root issues here:
http://localhostfrom GGG's server due to their implementation restrictions*) with LuaSocket will still connect because that address is not conflicting with 127.0.0.1 (apparently)So in this case:
python3 -m http.server -b 127.0.0.1 49082::as IPv6http://localhostreaches the python server instead because localhost resolves to the IPv4 address and serverForcing IPv4 revealed the other issue, where

0.0.0.0doesn't conflict with127.0.0.1when binding to the port (at least on Windows). This picture reveals some of the results. Port 49083 was the only one that works properly.Here's the fix to go into LaunchServer.lua: