29988122 / Fate-Grand-Order_Lua

Fate Grand Order auto battle script - no root needed, for Android use only
MIT License
289 stars 95 forks source link

(Extra window appearing, script in wrong state issue)Script getting stuck on battle 1 after running for a couple hours #118

Open raspberrytealeaf opened 5 years ago

raspberrytealeaf commented 5 years ago

I've been trying to babysit Nox while trying to see what causes it to get stuck on the drops screen (#115 ). Instead I found some other issue where it gets stuck on the 1st battle after running normally for a couple hours. Here's a gif I made of the issue.

Nox 6.2.6.0 and Ankulua Pro 8.0.5.

potchy commented 5 years ago

Ever since I started using the script, like half a year ago, I find this happening to me every once a in while. It's nice to have a thread for it so other collaborators can see it, because I still haven't found the cause. It can happen in other stages besides 1/3, though.

TryBane commented 5 years ago

I am not sure if it is the cause, or if it is how it causes it, but removing the toasts made it work much longer for me. Also, I sometimes find that the script will not work right on the first iteration of combat, but then work fine for hours afterwards

29988122 commented 5 years ago

It looked like the script's in the routine: cast no skill & np, choose 3 cards only.

In this scenario, I'd personally close the extra window before the next toast "Battle 1/3", therefore the script can proceed normally.

I still suspect it's wait() related issue. Not really sure though.

We could make the script output debug.log but I think that's a little bit ... too much? Overkill? XD

TryBane commented 5 years ago

No such thing as too much debug support XD If we can get a log of what the script is doing during runtime it would help tremendously in solving issues that are happening.

29988122 commented 5 years ago

TryBane

http://neopallium.github.io/lualogging/manual.html

This lib looked promising I guess? Anyway I'll edit, add this into our discussion thread.

29988122 commented 5 years ago

Check this closed PR for related discussion: https://github.com/29988122/Fate-Grand-Order_Lua/pull/147