Forgee
06-20-2012, 04:10 PM
There seem to be quite a lot of people getting the "No such file or directory"-error lately. Here is my attempt to clear up the most likely reason one might get this error.
There is a command called dofile(...) which will essentially load a file specified within the parenthesis. This is mostly used to include a library file to add new functionality to a script.
To remedy the problem follow these steps:
1. Open the script that is giving you the error in notepad, notepad++ or what have you.
2. Hit ctrl + F, type in dofile and hit enter.
3. If a dofile cammand is found here is most likely your "troublemaker".
4. The dofile will be followed by a parenthesis, so it will look something like this: dofile("Filename.lua").
You will need to have the file, in this case "Filename.lua" in your User\XenoBot\Scripts folder. In most cases it is one of the following files that is missing:
Forgee.lua Download here (http://forums.xenobot.net/showthread.php?2392-Lua-functions-by-Forgee)
sirmate.lua Download here (http://forums.xenobot.net/showthread.php?1928-sirmate-s-Library-v1.2.1)
5. Place the file you downloaded in User\XenoBot\Scripts.
Note: You should not execute the library file. Just run your script as any other.
There may be more than one library used in the same script. If you are still getting the same error, repeat step 2 to see if there is any more dofile commands. If you find a dofile with a different file name, continue with steps 3-5.
I hope this will help some people to solve their issues, and not having to ask all over the forums.
If anyone got suggestions how to improve it, let me know.
I wasn't entirely sure where to put this but the help section seemed appropriate. If the mods feel it belongs in .LUA Scripts or .XBST Files feel free to move it. :)
There is a command called dofile(...) which will essentially load a file specified within the parenthesis. This is mostly used to include a library file to add new functionality to a script.
To remedy the problem follow these steps:
1. Open the script that is giving you the error in notepad, notepad++ or what have you.
2. Hit ctrl + F, type in dofile and hit enter.
3. If a dofile cammand is found here is most likely your "troublemaker".
4. The dofile will be followed by a parenthesis, so it will look something like this: dofile("Filename.lua").
You will need to have the file, in this case "Filename.lua" in your User\XenoBot\Scripts folder. In most cases it is one of the following files that is missing:
Forgee.lua Download here (http://forums.xenobot.net/showthread.php?2392-Lua-functions-by-Forgee)
sirmate.lua Download here (http://forums.xenobot.net/showthread.php?1928-sirmate-s-Library-v1.2.1)
5. Place the file you downloaded in User\XenoBot\Scripts.
Note: You should not execute the library file. Just run your script as any other.
There may be more than one library used in the same script. If you are still getting the same error, repeat step 2 to see if there is any more dofile commands. If you find a dofile with a different file name, continue with steps 3-5.
I hope this will help some people to solve their issues, and not having to ask all over the forums.
If anyone got suggestions how to improve it, let me know.
I wasn't entirely sure where to put this but the help section seemed appropriate. If the mods feel it belongs in .LUA Scripts or .XBST Files feel free to move it. :)