JusKillmeQik / PoE-Leveling-Guide

Autohotkey overlay macro for leveling in Path of Exile
MIT License
372 stars 56 forks source link

Replace usage of Tail function with ReadLine, also add setting for auto toggling zone images depending on zone #91

Closed felixWedlich closed 3 years ago

felixWedlich commented 3 years ago

Recently the tool didnt correctly update zone changes, which is caused by the used Tail function only reading the last line every 200 ms, if any additional line after "entered The coast" is written like "DEBUG: Shaders OFF" the zone change is not processed.

For this the usage of Tail is replaced by using ReadLines on the client.txt file object. This file object is initialised when determining the PoE process, and updated if someone restarts PoE and selects a different client with perhaps a different client.txt location. Using ReadLines is a straight forward replacement as IfInString can be reused, even though ReadLines may produce multiple lines read since the last update/check.

Also added a setting to automatically enable and disable the zone images: Reason being that the zone images often overlap with the text from the gem-selection from quest rewards. This made it annoying to have to manually toggle the zone images in towns.

JusKillmeQik commented 3 years ago

This is very well done! I'm almost done making changes for this league and then I will merge your changes in.