Recursion levels

Posts 111 of 11 · Page 1 of 1
Recursion levels
After rewriting my bot script from the ground up to work around the damned "GameUI_LaunchShipFail_BindTarget_Unknown" errors, I'm now getting an error message after 7-8 hours that goes:
"Auto IT recursion level has been exceeded"
And it closes down.

I know that this means I have it in a logical loop, and I do. I'm wondering if anyone knows how to trace exactly where the issue comes into play, and how to fix it.

The code is quite long, and WAY too big to post in a topic here (891 lines, and well over 25,000 characters)

I've put about 4 weeks into making it and tweaking it, and trying to get it ready for public release. It's finally getting close, but I'd like to get this error straightened out first.

Anyone?
Quote Originally Posted by Zaiakunokami View Post
After rewriting my bot script from the ground up to work around the damned "GameUI_LaunchShipFail_BindTarget_Unknown" errors, I'm now getting an error message after 7-8 hours that goes:
"Auto IT recursion level has been exceeded"
And it closes down.

I know that this means I have it in a logical loop, and I do. I'm wondering if anyone knows how to trace exactly where the issue comes into play, and how to fix it.

The code is quite long, and WAY too big to post in a topic here (891 lines, and well over 25,000 characters)

I've put about 4 weeks into making it and tweaking it, and trying to get it ready for public release. It's finally getting close, but I'd like to get this error straightened out first.

Anyone?
Recursion - AutoIt Wiki

All you need to know about recursion is there.
Thanks for the DanK. Was actually quite informative. However, I'm not sure how to implement an iterative function status into the bot.

I do want it to loop permanently, at least if certain conditions are met. I have that already with a few If/ElseIf commands, a couple of which exit the bot.

Do you think that adding in a number of times to loop the bot would have any effect to removing the recursion error? I'm no good at making a GUI so you could visually select a number, but I could easily add another variable to the .ini file I already have bound to the .exe.

And is there someone that I can send the code to who can look it over?
It seems you already posted on the autoit forums (TheRauchster?) which was my suggestion, anyway if you want to put your code up use something like pastebin.com or pastie.org
Quote Originally Posted by japmsn View Post
It seems you already posted on the autoit forums (TheRauchster?) which was my suggestion, anyway if you want to put your code up use something like pastebin.com or pastie.org
I'll upload it to pastebin later. I'm hoping that it doesn't get stolen and reproduced under someone else's name though (Had this happen in the past), which is why I've been hesitant to just upload to a public forum.
Quote Originally Posted by Zaiakunokami View Post
I'll upload it to pastebin later. I'm hoping that it doesn't get stolen and reproduced under someone else's name though (Had this happen in the past), which is why I've been hesitant to just upload to a public forum.
If you want it can send it to me and I can help you fix it.
Quote Originally Posted by DanK View Post
If you want it can send it to me and I can help you fix it.
Sent to you via PM. Thanks!
just a quick question, im also making some bots to get around the GameUi error but im wondering, Does your bot remake the boat after each run or something else?
Quote Originally Posted by xX054Xx View Post
just a quick question, im also making some bots to get around the GameUi error but im wondering, Does your bot remake the boat after each run or something else?
Not each run, but only when it detects the game errors through a system of Pixel color checks.
Try placing certain functions into different files.
Remove the amount of single processes inside each function by using counts, and things like that, just generally optimizing your code.
If your code is 891 lines then I'm almost certain your code is done in "beginner" format, as my first ones were too :P
Use includes for things like functions so that you run more threads.
Well, if I had any idea how to place certain functions into a separate file I would, as about 750 lines are all the exact same things across all 21 bots.
If you could provide some sample code on how to do as much, that'd be great.

And yes, I'm sure it's "beginner code". I can send you the code so you can look at it, if you'd like.
Posts 111 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?