1001z
Junior Member
Posts: 51
|
Post by 1001z on Feb 5, 2020 11:03:47 GMT
After ran like 6 hours, the script stopped it self (many times and without error)
Any know a trick to handle that?
Cache / Memory problems?
If if about memory, how can we re-start if self?
|
|
|
Post by AnkuLua on Feb 6, 2020 3:13:03 GMT
|
|
1001z
Junior Member
Posts: 51
|
Post by 1001z on Feb 16, 2020 3:09:46 GMT
Can Ankulua auto re-start script when low memory or stopped?
|
|
|
Post by AnkuLua on Feb 16, 2020 10:45:04 GMT
Can Ankulua auto re-start script when low memory or stopped? The game is always requesting memory. Hard to detect the low memory situation.
|
|
1001z
Junior Member
Posts: 51
|
Post by 1001z on Feb 16, 2020 19:26:25 GMT
Can Ankulua auto re-start script when low memory or stopped? The game is always requesting memory. Hard to detect the low memory situation.
Just detect if script stopped so re-start by it self?
This is possible sir?
|
|
|
Post by AnkuLua on Feb 16, 2020 22:24:39 GMT
The game is always requesting memory. Hard to detect the low memory situation.
Just detect if script stopped so re-start by it self?
This is possible sir?
Please check your PM.
|
|
1001z
Junior Member
Posts: 51
|
Post by 1001z on Feb 17, 2020 11:53:47 GMT
Just detect if script stopped so re-start by it self?
This is possible sir?
Please check your PM. Thanks so much. I will try when i am at home
|
|
|
Post by gogefo5942 on Apr 1, 2020 3:31:17 GMT
Just detect if script stopped so re-start by it self?
This is possible sir?
Please check your PM. Hello, Im really interested in this solution, could you help me ?
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 26, 2020 5:42:37 GMT
Just detect if script stopped so re-start by it self?
This is possible sir?
Please check your PM. Hi Anukulua,
I am also interested the solution for similar problem that 1001z was facing. I gave my script to my friends to try and they reported the same.
Looking forward your response to help me to resolve this.
Thanks
|
|
|
Post by AnkuLua on Aug 26, 2020 7:57:14 GMT
Hi Anukulua,
I am also interested the solution for similar problem that 1001z was facing. I gave my script to my friends to try and they reported the same.
Looking forward your response to help me to resolve this.
Thanks
The AnkuLua latest version already includes the feature "Rerun script after back from killed by Android". You can also use the method isRecoveredFromKilled() to check the status. ankulua.boards.net/thread/13/advanced-methods#isRecoveredFromKilled
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 26, 2020 8:19:04 GMT
Hi Anukulua,
I am also interested the solution for similar problem that 1001z was facing. I gave my script to my friends to try and they reported the same.
Looking forward your response to help me to resolve this.
Thanks
The AnkuLua latest version already includes the feature "Rerun script after back from killed by Android". You can also use the method isRecoveredFromKilled() to check the status. ankulua.boards.net/thread/13/advanced-methods#isRecoveredFromKilledaccording to my friend, he has ticked on that option "Rerun script after back from killed by Android", but script still stopped and never re-run.
status = isRecoveredFromKilled() print(status) okay, i tried to run it does give me the status. if im right, false means script is stopped and true means is still running?
however, how do I really implement this? I mean if the script got stopped how will it even check status and how will it re-run the script when the "Rerun script after back from killed by Android" also not working.
Can you please elaborate more?
|
|
|
Post by AnkuLua on Aug 26, 2020 8:56:13 GMT
according to my friend, he has ticked on that option "Rerun script after back from killed by Android", but script still stopped and never re-run.
status = isRecoveredFromKilled() print(status) okay, i tried to run it does give me the status. if im right, false means script is stopped and true means is still running?
however, how do I really implement this? I mean if the script got stopped how will it even check status and how will it re-run the script when the "Rerun script after back from killed by Android" also not working.
Can you please elaborate more?
If memory get low, Android will kill background running AnkuLua to free memory for foreground games (apps). If memory get enough, Android MAY start AnkuLua background service. Under that conditions, AnkuLua will run the script when background service started. And isRecoveredFromKilled() will return true until the script stopped normally. Note that Android doesn't always restart AnkuLua background service when memory enough again. Basically, your script don't need any change for this mechanism to work.
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 26, 2020 9:43:47 GMT
If memory get low, Android will kill background running AnkuLua to free memory for foreground games (apps). If memory get enough, Android MAY start AnkuLua background service. Under that conditions, AnkuLua will run the script when background service started. And isRecoveredFromKilled() will return true until the script stopped normally. Note that Android doesn't always restart AnkuLua background service when memory enough again. Basically, your script don't need any change for this mechanism to work. thanks, ankulua.
the game running only take the maximum of 1GB memory, and since the emulator has 4GB memory allocated to it. in theory it should work fine.
ok. I understand. we may not know what android is doing sometimes.
|
|