• 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!

Hi! THX

wyzr

Active Member
Senator
Premium User
Joined
Jul 2, 2007
Messages
1,276
Reaction score
46
Location
Ciudad Madero, Tamaulipas, United Mexican States
Hi
VrXYz.png

thx
 
What does init.lua contain?
Maybe the directory isn't recognized? Try moving to C: and executing it there.
 
What does init.lua contain?
Maybe the directory isn't recognized? Try moving to C: and executing it there.
I got mine in C:\Program Files (x86)\OT Client 9.62-9.63 and it works :p
 
1.- Yes Windows 8
2.- It contains this:
Code:
 -- this is the first file executed when the application starts-- we have to load the first modules form here


-- setup logger
g_logger.setLogFile(g_resources.getWorkDir() .. g_app.getCompactName() .. ".log")


-- print first terminal message
g_logger.info(g_app.getName() .. ' ' .. g_app.getVersion() .. ' rev ' .. g_app.getBuildRevision() .. ' (' .. g_app.getBuildCommit() .. ') built on ' .. g_app.getBuildDate() .. ' for arch ' .. g_app.getBuildArch())


--add base folder to search path
g_resources.addSearchPath(g_resources.getWorkDir())


-- add modules directory to the search path
if not g_resources.addSearchPath(g_resources.getWorkDir() .. "modules", true) then
  g_logger.fatal("Unable to add modules directory to the search path.")
end


-- try to add mods path too
g_resources.addSearchPath(g_resources.getWorkDir() .. "mods", true)


-- setup directory for saving configurations
g_resources.setupUserWriteDir(g_app.getCompactName())


-- search all packages
g_resources.searchAndAddPackages('/', '.otpkg', true)


-- load configurations
g_configs.load("/config.otml")


g_modules.discoverModules()


-- libraries modules 0-99
g_modules.autoLoadModules(99)
g_modules.ensureModuleLoaded("corelib")
g_modules.ensureModuleLoaded("gamelib")


-- client modules 100-499
g_modules.autoLoadModules(499)
g_modules.ensureModuleLoaded("client")


-- game modules 500-999
g_modules.autoLoadModules(999)
g_modules.ensureModuleLoaded("game_interface")


-- mods 1000-9999
g_modules.autoLoadModules(9999)


if g_resources.fileExists("/otclientrc.lua") then
  dofile("/otclientrc.lua")
end
And changing directories does not work.
3.- Hi Nisse

Now I have reinstalled it and it won't work... same fatal error... windows is right, it is fatal.
 
Last edited:
Well I guess the content is fine as you didn't modify it.

if(!g_lua.safeRunScript(g_resources.getWorkDir() + "init.lua"))
g_logger.fatal("Unable to run script init.lua!");

So I can only think of that the function getWorkDir() might be returning a wrong path.
So you could make let the fatal error print the workdir and check if that is correct.
 
I got this:
== application started at Oct 09 2012 18:19:48
OTClient 0.5.3 rev 1568 (d98f6f7) built on Aug 29 2012 for arch x86
ERROR: Failed to load script 'C:/Program Files (x86)/OT Client 9.62-9.63\init.lua': LUA ERROR:
FATAL ERROR: Unable to run script init.lua!

Then I saw that a new version of the client got released... so I downloaded it, unzipped and got this:


== application started at Oct 09 2012 23:25:03
OTClient 0.5.5 rev 0 (devel) built on Oct 9 2012 for arch x86
ERROR: Could not add 'C:/Users/user/Desktop/OT Client - All Version\' to directory search path. Reason File not found
ERROR: Could not add 'C:/Users/user/Desktop/OT Client - All Version\modules' to directory search path. Reason File not found
FATAL ERROR: Unable to add modules directory to the search path.
 
Last edited:
This is fixed in otclient 0.5.5, download the latest one.
 
IbjNX.png



== application started at Oct 24 2012 19:08:53
OTClient 0.5.5 rev 0 (devel) built on Oct 9 2012 for arch x86
ERROR: Could not add 'C:/Users/user/Desktop/OT Client - All Version\' to directory search path. Reason File not found
ERROR: Could not add 'C:/Users/user/Desktop/OT Client - All Version\modules' to directory search path. Reason File not found
FATAL ERROR: Unable to add modules directory to the search path.

could it be because my username has an "é" on it and it doesn't support it?
 
"built on Oct 9 2012 for arch x86"
This was fixed yesterday, Oct 24, please try the latest.
 
Back
Top