Krister Posted August 16, 2017 Share Posted August 16, 2017 Hello, I just recently started using this client. I'm experienced programmer and the issue explained in title is most likely not caused by bad code. So basically the script just stops or pauses after about 10-30 minutes. A simple fix is for me to just press pause script and then resume and it starts right where it freeze like nothing has happened. I've been monitoring the bot for some hours, and it's completely random where it freezes so it seems like it could either be my computer or the client that's struggling. Couldn't find anyone else with this issue so I'm trying with a new post. Quote Link to comment Share on other sites More sharing options...
bugsinmycode Posted August 16, 2017 Share Posted August 16, 2017 Does it happen for every script you run, or just a specific one? Quote Link to comment Share on other sites More sharing options...
Solution Posted August 16, 2017 Share Posted August 16, 2017 This does sound like a script issue not a client one, so I would suggest contacting whoever created the script you're running via PM or their thread. Quote Link to comment Share on other sites More sharing options...
Artifex Posted August 16, 2017 Share Posted August 16, 2017 script related! Quote Link to comment Share on other sites More sharing options...
Krister Posted August 16, 2017 Author Share Posted August 16, 2017 I'm the one that made the script. But I don't see how it could be the script tho, because I've monitored and tested the bot, it can run every cycle flawless sometimes up to 50-60 times then it just stops, it says the script is still running but nothing happens. And then if I just manually press pause script and immidietly press run it continues where it stopped and works flawless again. To me it doesn't seem like it's a script thing, using switchcase in main loop and every case is tested and works. Quote Link to comment Share on other sites More sharing options...
Artifex Posted August 16, 2017 Share Posted August 16, 2017 2 minutes ago, Krister said: I'm the one that made the script. But I don't see how it could be the script tho, because I've monitored and tested the bot, it can run every cycle flawless sometimes up to 50-60 times then it just stops, it says the script is still running but nothing happens. And then if I just manually press pause script and immidietly press run it continues where it stopped and works flawless again. To me it doesn't seem like it's a script thing, using switchcase in main loop and every case is tested and works. there is something wrong where the script struggles Quote Link to comment Share on other sites More sharing options...
Fruity Posted August 16, 2017 Share Posted August 16, 2017 (edited) possibly stuck in a loop or something, maybe failed to switch a trigger? idk whatcha doing inside the script but doesnt sound like its a client thing Edited August 16, 2017 by Fruity Quote Link to comment Share on other sites More sharing options...
Rekt Posted August 16, 2017 Share Posted August 16, 2017 i had this same issue on my script but then teamcape made me realize i wasn't null checking properly. Quote Link to comment Share on other sites More sharing options...
Krister Posted August 16, 2017 Author Share Posted August 16, 2017 3 minutes ago, Rekt said: i had this same issue on my script but then teamcape made me realize i wasn't null checking properly. Okey thanks, this is an answer I can make some use of. I will check my code more when I get home from work. Quote Link to comment Share on other sites More sharing options...
d0zza Posted August 16, 2017 Share Posted August 16, 2017 1 hour ago, Krister said: Okey thanks, this is an answer I can make some use of. I will check my code more when I get home from work. Check the logger when your script idles, if there is a null pointer in your code the logger will tell you which line it's at Quote Link to comment Share on other sites More sharing options...
Krister Posted August 17, 2017 Author Share Posted August 17, 2017 It was a null pointer that was the cause, I also learned that there is a log in the client(duh ). Anyway works flawless right now, levels are coming in steady. Problem is solved! Quote Link to comment Share on other sites More sharing options...