PoE-TradeMacro / POE-TradeMacro

Price checking script for Path of Exile.
https://poe-trademacro.github.io/
GNU General Public License v3.0
936 stars 188 forks source link

Error at line 17313 after first start [Documents folder permission] #626

Closed Loghaire1st closed 6 years ago

Loghaire1st commented 6 years ago

Hello, started yesterday i think, first time after unrar script starts and works fine, after closing and starting again I'm getting _TradeMacroMain.ahk Error at lne 17313 Line text: Globals Error: Duplicate class definition

AHK version: 2.7.2 Windows version: win10 x64

aRTy42 commented 6 years ago

Please post a screenshot of the error message.

Loghaire1st commented 6 years ago

poe_trade_err

aRTy42 commented 6 years ago

My _TradeMacroMain.ahk stops at 17284 lines, so I guess in your case something is included differently. Could you rightclick->edit the "_TradeMacroMain" please and post the code chunk around line 17313, something like 20-30 lines depending on where functions seem to start and end.

Loghaire1st commented 6 years ago

Funny, I've opened main file and it had same as yours ~17280 lines. After trying to start script i get the same error but the file has 2x lines. After 17280 it starts again " ; Path of Exile ItemInfo ; ; Script is currently maintained by various people and kept up to date by aRTy42 / IGN: Erinyen ; Forum thread: https://www.pathofexile.com/forum/view-thread/1678678 ; GitHub: https://github.com/aRTy42/POE-ItemInfo

SingleInstance force

" and it has 33 075 lines. It looks like starting Run_TradeMacro doesn't check for existance of Main.ahk and just appends to the bottom.

aRTy42 commented 6 years ago

That might be a write permission issue with the folder. Could you move the whole script folder to somewhere else (also not on the Desktop). Something like "C:\Program Files..." or wherever you like to install programs.

Loghaire1st commented 6 years ago

Yep, permissions. Other directory works like a charm. Thanks for your work.