• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved LuaInterface::loadFile HELP

weverton

New Member
Joined
May 30, 2009
Messages
104
Reaction score
2
can someone help me?
I got these errors

Code:
[14:13:37.253] >> Loading config (config.lua)
[14:13:37.255] > Opening logs
[14:13:37.255] > Using SHA1 encryption
I/O warning : failed to load external entity ""
[14:13:37.256] >> Checking software version...failed - could not parse remote file (are you connected to any network?)
[14:13:37.256] >> Loading RSA key
[14:13:37.296] >> Starting SQL connection
[14:13:37.299] >> Running Database Manager
[14:13:37.300] > Updating database to version 27...
[14:13:37.865] > Database has been updated to version: 27.
[14:13:38.048] >> Loading items (OTB)
[14:13:38.289] >> Loading items (XML)
[14:13:38.540] >> Loading groups
[14:13:38.689] >> Loading vocations
[14:13:38.690] >> Loading outfits
[14:13:38.693] >> Loading chat channels
[14:13:38.705] >> Loading script systems
[14:13:39.039] [Error - LuaInterface::loadFile] cannot open data/creaturescripts/scripts/Skull.lua: No such file or directory
[14:13:39.039] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/Skull.lua)
[14:13:39.039] cannot open data/creaturescripts/scripts/Skull.lua: No such file or directory
[14:13:39.039] [Error - LuaInterface::loadFile] cannot open data/creaturescripts/scripts/Skull2.lua: No such file or directory
[14:13:39.039] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/Skull2.lua)
[14:13:39.039] cannot open data/creaturescripts/scripts/Skull2.lua: No such file or directory
[14:13:39.043] >> Loading mods...
[14:13:39.046] > Loading changender_command.xml... done.
[14:13:39.054] > Loading buypremium_command.xml... done.
[14:13:39.066] > Loading custommonsters.xml... done.
[14:13:39.066] > 3 mods were loaded.
[14:13:39.066] >> Loading experience stages
[14:13:39.066] >> Loading monsters
[14:13:39.375] >> Loading map and spawns...
[14:13:39.465] > Map size: 2048x2048.
[14:13:39.465] > Map descriptions:
[14:13:39.465] "Saved with Remere's Map Editor 2.1"
[14:13:39.465] "Server is made by: WeverToN
[14:13:39.465] "
[14:13:40.125] > Map loading time: 0.737 seconds.
[14:13:40.200] [Error - LuaInterface::loadFile] cannot open data/npc/scripts/addon.lua: No such file or directory
[14:13:40.200] [Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/addon.lua
[14:13:40.200] cannot open data/npc/scripts/addon.lua: No such file or directory
[14:13:40.231] [Error - LuaInterface::loadFile] cannot open data/npc/scripts/npcAura.lua: No such file or directory
[14:13:40.232] [Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/npcAura.lua
[14:13:40.232] cannot open data/npc/scripts/npcAura.lua: No such file or directory
[14:13:40.233] [Spawn::addMonster] Cannot find "Butterfly"
[14:13:40.245] > Data parsing time: 0.12 seconds.
[14:13:40.697] > Houses synchronization time: 0.452 seconds.
[14:13:40.750] > Content unserialization time: 0.053 seconds.
[14:13:40.750] >> Checking world type... Open PvP
[14:13:40.750] >> Initializing game state and binding services...
[14:13:40.822] > Global IP address: 179.217.190.197
[14:13:40.822] > Local IP address(es): 127.0.1.1   
[14:13:40.845] > Bound ports: 7171    7172   
[14:13:40.845] >> Everything smells good, server is starting up...
[14:13:50.845] >> noobwar server Online!

Rep++ THX
 
No such file or directory means it can't find the lua script.
Do you have those lua files? If not you can just remove the xml lines for those scripts and the npcs or give them a different lua file.
 
hello
I have all

exemple

data/creaturescripts/scripts/skull.lua

Code:
function onLogin(cid)
    local frags = math.max(0, getPlayerStorageValue(cid, 20233))
                local frags = math.max(0, getPlayerStorageValue(cid, 20233))
                        if frags >= 200 and frags < 300 then
                        doCreatureSetSkullType(cid, SKULL_YELLOW)
                    elseif frags >= 301 and frags < 450 then
                        doCreatureSetSkullType(cid, SKULL_GREEN)
                    elseif frags >= 451 and frags < 650 then
                        doCreatureSetSkullType(cid, SKULL_WHITE)
                    elseif frags >= 651 and frags < 1050 then
                        doCreatureSetSkullType(cid, SKULL_RED)
                    elseif frags > 1051 then
                        doCreatureSetSkullType(cid, SKULL_BLACK)
                end
    return true
end

help please :s
 
Npc exemple
data/npc/scripts/npcAura.lua

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)        npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                npcHandler:onThink()                end

function creatureSayCallback(cid, type, msg)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if msgcontains(msg, 'aura') then
                if not isAura(cid) then
                        selfSay('Temos disponiveis as seguintes auras: {fire}, {ice}, {earth}, {death}, {holy} e {energy}, qual você quer aprender ?', cid)
                        talkState = 1
                else
                        selfSay('Você já tem á '..getAura(cid).." aura.", cid)
                end
        elseif isInArray({"fire", "ice", "earth", "death", "holy", "energy"}, msg) and talkState == 1 then
                if getPlayerLevel(cid) < npc.level then
                        return selfSay("Desculpe mais para aprender a aura é preciso level "..npc.level..".")
                end
                if getPlayerMoney(cid) < npc.price then
                        return selfSay("Desculpe mais para aprender a aura é preciso "..npc.price.."gps.")
                end
                if not isPremium(cid) and npc.premmy then
                        return selfSay("Desculpe mais para aprender a aura é preciso ser premium.")
                end
                addAura(cid, msg)
                startAura(cid, getAura(cid))
                doPlayerRemoveMoney(cid, npc.price)
                selfSay("Você acaba de receber á "..getAura(cid).." aura.")
                                talkState = 2
        end
        return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
Are the files exactly called like that? Make sure it's also the same with the capitals.
So if lua file is called Skull instead of skull.
 
worked
had to put letters
Skull to skull
Thx like :D


Code:
root@host:~# cd /noobwar
root@host:/noobwar# ./theforgottenserver
[15:41:53.495] > WARNING: NoobWar Server V13 has been executed as super user! It is recommended to run as a normal user.
[15:41:53.495] Continue? (y/N)
[15:41:54.998] NoobWar Server V13, version 0.4_SVN ()
[15:41:54.998] Compiled with GNU C++ version 4.6.3 at Jan  7 2014, 14:48:39.
[15:41:54.998] A server developed by Elf, Stian, Slawkens and KaczooH, .
[15:41:54.998] Visit our forum for updates, support and resources: http://vapus.net/forum.

[15:41:54.998] >> Loading config (config.lua)
[15:41:54.000] > Opening logs
[15:41:54.001] > Using SHA1 encryption
I/O warning : failed to load external entity ""
[15:41:54.002] >> Checking software version...failed - could not parse remote file (are you connected to any network?)
[15:41:54.002] >> Loading RSA key
[15:41:55.020] >> Starting SQL connection
[15:41:55.062] >> Running Database Manager
[15:41:55.098] >> Loading items (OTB)
[15:41:55.297] >> Loading items (XML)
[15:41:55.435] >> Loading groups
[15:41:55.444] >> Loading vocations
[15:41:55.445] >> Loading outfits
[15:41:55.449] >> Loading chat channels
[15:41:55.449] >> Loading script systems
[15:41:55.819] >> Loading mods...
[15:41:55.828] > Loading changender_command.xml... done.
[15:41:55.836] > Loading buypremium_command.xml... done.
[15:41:55.849] > Loading custommonsters.xml... done.
[15:41:55.849] > 3 mods were loaded.
[15:41:55.849] >> Loading experience stages
[15:41:55.861] >> Loading monsters
[15:41:56.245] >> Loading map and spawns...
[15:41:56.338] > Map size: 2048x2048.
[15:41:56.338] > Map descriptions:
[15:41:56.338] "Saved with Remere's Map Editor 2.1"
[15:41:56.338] "Server is made by: WeverToN
[15:41:56.338] "
[15:41:56.970] > Map loading time: 0.713 seconds.
[15:41:57.030] [Spawn::addMonster] Cannot find "Butterfly"
[15:41:57.038] > Data parsing time: 0.068 seconds.
[15:41:57.455] > Houses synchronization time: 0.417 seconds.
[15:41:57.463] > Content unserialization time: 0.008 seconds.
[15:41:57.463] >> Checking world type... Open PvP
[15:41:57.464] >> Initializing game state and binding services...
[15:41:57.484] > Global IP address: 179.217.190.197
[15:41:57.485] > Local IP address(es): 127.0.1.1   
[15:41:57.506] > Bound ports: 7171    7172   
[15:41:57.506] >> Everything smells good, server is starting up...
[15:42:07.506] >> noobwar server Online!
 
Back
Top