ve_necro wrote:OK new issue, I have had this for a while now but it has always been after a long period of crafting so it was no hardship for me to just restart the script but now it seems to be doing it at a random time, sometimes on the first turn in, sometimes after hours of crafting:
Error is on Y:368 X:4 of the main craftingbot. the problem is that it has "no permission" so yes I bet that you already know what Im about to write hehe.
Set objFile = objFSO.OpenTextFile (Logpath, ForWriting)
After doing a search all my files are in the right place and I only have one log which is properly labled. If this were not the case obviously it wouldnt work at all. Any suggestions or do I just dread having to manually get workorders that turn and buy utilities, sometimes its every turn in like I say, othertimes it hours.
Thank you once again my friend
It's difficult for me to figure out why this is happening when it has never happened to me.
Try this: add a sleep before this line, just to make sure it's not trying to open the file too soon after the last request. (e.g.: sleep 100)
If that doesn't work, try surrounding the section that line is in with:
on error resume next
...
on error goto 0
Those statements will cause that section of the script to ignore a runtime error and continue. Not ideal, since it would ignore the code within for that pass, but better than halting execution.