|
Post by AutoBOT on Jun 12, 2017 11:59:13 GMT
so sometimes I always had this timeout.socket error thing. admin said it's a daemon communication error, since I can't do nothing because it's the only emulator that I can use (can't root either).
is there a way to disable the error, and let it always running. so it won't force stop the script.
or maybe it can't? because it's an important error?
|
|
|
Post by AnkuLua on Jun 12, 2017 12:02:48 GMT
Try "(BETA) Fast click" in settings. Please report the result.
|
|
|
Post by AutoBOT on Jun 12, 2017 12:53:11 GMT
Try "(BETA) Fast click" in settings. Please report the result. my game won't allow it, it always detected if i use fast click
|
|
|
Post by Mercobots on Jun 12, 2017 16:00:00 GMT
|
|
|
Post by AutoBOT on Jun 12, 2017 16:20:29 GMT
|
|
|
Post by Mercobots on Jun 12, 2017 22:22:43 GMT
hello
depends how your script is made
if you use a function to execute all your script
Example
function myScript() print("1 - inside myScript") print("\n------------------------------\n") fdsbfdsfds() -- error end
local status, result = pcall(myScript)
print(" 2 - script still running") print("\n------------------------------\n") print(" 3 - myScript status = " .. tostring(status)) print("\n------------------------------\n") print(" 4 - myScript error = " .. tostring(result)) print("\n------------------------------\n") print(" 5 - END")
using dofile
local status, result = pcall(dofile,"path_to_your_script.lua")
print(" 2 - script still running") print("\n------------------------------\n") print(" 3 - myScript status = " .. tostring(status)) print("\n------------------------------\n") print(" 4 - myScript error = " .. tostring(result)) print("\n------------------------------\n") print(" 5 - END")
|
|
|
Post by AutoBOT on Jun 13, 2017 5:08:26 GMT
hello depends how your script is made if you use a function to execute all your script just got the error again, i screenshot it this time. pretty sure i can't catch this error its so random, it can happen anywhere. not just in 1 place. this time i got the error when its in the main script, sometimes when its on findingMap function, sometimes when searching victory or lose (using the commonLib regionWaitMulti)
|
|
|
Post by Mercobots on Jun 13, 2017 9:39:17 GMT
hi Just trying to help i really don't know if this works but try this , create a test.lua and run your script from there using the pcall
test.lua
local status, result = pcall(dofile,"path_to_your_FULL_script.lua") print("script still running") print("myScript status = " .. tostring(status) .. " \n\n myScript error = " .. tostring(result))
tell me if this works for you
|
|
|
Post by AutoBOT on Jun 13, 2017 9:49:32 GMT
hi Just trying to help i really don't know if this works but try this , create a test.lua and run your script from there using the pcall test.lua local status, result = pcall(dofile,"path_to_your_FULL_script.lua") print("script still running") print("myScript status = " .. tostring(status) .. " \n\n myScript error = " .. tostring(result)) tell me if this works for you yup it works. and actually im not sure myself even if we ignore that error, will it still running or not.
|
|
|
Post by Mercobots on Jun 13, 2017 9:51:12 GMT
just check if "script still running" appears when ankulua stops
|
|
|
Post by AutoBOT on Jun 13, 2017 10:10:28 GMT
just check if "script still running" appears when ankulua stops you mean manual stop or when that error appear again? if its the later since its so random, it might not happen very soon. but if i manual stop. the "script still running" popup with status = false and result = java.io.IOException
|
|
|
Post by Mercobots on Jun 13, 2017 10:17:44 GMT
when the error appears of course this is not a permanent solution and not the best way to do but you can create a loop to restart the bot himself last_config = "something" while true do local status, result = pcall(dofile, "path_to_your_FULL_script.lua")
-- create some conditions if restart if not status then -- catch the last config and restart -- just an idea :) last_config = "something2" end end
|
|
|
Post by AutoBOT on Jun 13, 2017 10:21:48 GMT
okay thanks. i just hope it just ignore the error and still continue.
its hard to restart the script if its error in some place that in the middle of function.
edit: ah crap, i forgot dofile wont run .luae extension -_-
|
|