View Full Version : "[XenoScript] X.lua: No such file or directory"
fweewea
06-01-2012, 06:40 PM
Hello guys!
I've been trying to set up a downloaded script on Frost Giants at Tyrsung. I've downloaded both Frost Giants.XBTS and Frost Giant.LUA. I've put the both files in all kind of directorys that the file could need to be in (both C:/programs/xenobot/data/ and C:/my documents/xenobot/scripts/) and it does not work out for me. I've put the XenoLuaLib.LUA in all of those directories as well.
So, whats the problem really? I've been testing some other .LUA-scripts that aint working for me. As the topic says, the message I got when I try to open the script in Xenobot is;
"20:35 [XenoScript] frosts.lua: No such file or directory"
Anyone got the same? What's the solution for the problem?
/ Fweewea
jikoe
06-01-2012, 06:43 PM
C:\Users\User\Documents\XenoBot\Scripts -> Frost Giant.Lua here
C:\Users\User\Documents\XenoBot\Settings ->Frost Giants.XBTS here
then in scripter execute frost giant.Lua
and at settings load frost giants.xbst
fweewea
06-01-2012, 06:48 PM
That doesn't solve the problem. I still got the same message.
I've been trying to first execute giant.LUA and then giant.XBST, and vice verse, and it doesnt work either way.
DarkstaR
06-01-2012, 07:04 PM
Is XenoLuaLib.lua in the original location as well?
Spectrus
06-01-2012, 07:06 PM
:rolleyes:
Most of these scripts probably require an external library that is called in the script with the line dofile(filename). If the function dofile() can't find the file it's looking for, it throws that error.
fweewea
06-01-2012, 07:08 PM
Is XenoLuaLib.lua in the original location as well?
Yes, of course.
:rolleyes:
Most of these scripts probably require an external library that is called in the script with the line dofile(filename). If the function dofile() can't find the file it's looking for, it throws that error.
So where do I find an external library that fits these kinds of scripts?
Spectrus
06-01-2012, 07:10 PM
Open the script in Notepad, find the line that says dofile(filename) and then search for the filename on the forum. Quite frequently users will name their library after themselves. ex. "Forgee.lua", "sirmate.lua", etc.
Crown Royal
06-01-2012, 07:24 PM
Open the script in Notepad, find the line that says dofile(filename) and then search for the filename on the forum. Quite frequently users will name their library after themselves. ex. "Forgee.lua", "sirmate.lua", etc.
15:21 Name: Soft Boots Changer
Author: sirmate
Version: 1.0.0
15:21 [XenoScript] Boots of Haste to Softboots.lua: attempt to call field 'ManaPercent' (a nil value)
^^^^^^^^^^^ What is this error from? As you said in the post above, finding dofile(filename).. what do I do? I saved the PHP code in Documents>Xenobot>Scripts as sirmate.lua, and i think its wrong, can you explain??!
EDIT: I realize what I done. I didnt put dofile("sirmate.lua") on one of the first command lines. I was confused on where dofile went, or what it meant. thanks anyways! :D
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.