steve1316 / granblue-automation-pyautogui

Educational application aimed at automating user-defined workflows for the mobile game, "Granblue Fantasy", using a variety of CV technologies in the backend such as OpenCV, PyAutoGUI and EasyOCR and a frontend coded in Typescript.
https://github.com/steve1316/granblue-automation-pyautogui/wiki
120 stars 36 forks source link

Scripts not being followed #93

Closed Chu2P closed 2 years ago

Chu2P commented 2 years ago

Scripts are't being followed correctly, I try and load the attached script file, but the bot defaults to full auto behaviour as in the logs

guild_wars.txt log 2021-11-24 14-36-54.txt

Chu2P commented 2 years ago

I did some digging, found the issue. My script file Line ends were all set to Unix format (LF only), wheras in src/pages/settings/index.tsx where the file is read, the line split is explicitly on CRLF, the obvious local fix was to fix my script files, but still might be worth updating

steve1316 commented 2 years ago

Thanks for letting me know. Let me see if I can fix that.

steve1316 commented 2 years ago

Fixed it so now LF is converted to CRLF before saving the script to settings.json. Let me know how it goes!