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

OTClient Error: cannot open config.lua on macOS

guch4n

New Member
Joined
Aug 23, 2018
Messages
5
Reaction score
0
Hello Everyone!
This problem is very common in forum, but I didn't found a real solution for me.
I don't know if this is caused by a OS incompatibility or another thing.
Well, lets explain my problem and the several frustrated attempts to solve it.

I'm using a macOS HighSierra 10.13.6.

  • The terminal
Code:
Last login: Thu Aug 23 11:56:39 on ttys000
/Users/gaparecido/Desktop/forgottenserver/tfs ; exit;
MacBook-Pro-de-Gustavo:~ gaparecido$ /Users/gaparecido/Desktop/forgottenserver/tfs ; exit;
The Forgotten Server - Version 1.3
Compiled with Clang version 9.1.0 (clang-902.0.39.2)
Compiled on Aug 22 2018 20:17:00 for platform x64

A server developed by Mark Samman
Visit our forum for updates, support, and resources: http://otland.net/.

>> Loading config
[Error - ConfigManager::load] cannot open config.lua: No such file or directory
> ERROR: Unable to load config.lua!
>> No services running. The server is NOT online.
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Processo concluído]

  • Frustrated Attempts:
1. Move TFS to the main fold.
Captura_de_Tela_2018_08_23_s_12_07_30.png


2. Create a database(with XAMPP for macOSX) and change configs on config.lua.
Captura_de_Tela_2018_08_23_s_12_16_04.png

Captura de Tela 2018 08 23 s 12 16 04

Code:
-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "exampleuser" *Note: this isn't my real user
mysqlPass = "examplepass" *Note: this isn't my real password
mysqlDatabase = "forgottenserver"
mysqlPort = 3306
mysqlSock = ""

3. Clear all comments and empty lines from config.lua

Cleared:

Code:
worldType = "pvp"
hotkeyAimbotEnabled = true
protectionLevel = 1
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = true
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = false
expFromPlayersLevelRange = 75
ip = "127.0.0.1"
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to The Forgotten Server!"
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "Forgotten"
statusTimeout = 5000
replaceKickOnLogin = true
maxPacketsPerSecond = 25
deathLosePercent = -1
housePriceEachSQM = 1000
houseRentPeriod = "never"
timeBetweenActions = 200
timeBetweenExActions = 1000
mapName = "forgotten"
mapAuthor = "Komic"
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = true
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100
mysqlHost = "127.0.0.1"
mysqlUser = "exampleuser"
mysqlPass = "examplepass"
mysqlDatabase = "forgottenserver"
mysqlPort = 3306
mysqlSock = ""
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = false
rateExp = 5
rateSkill = 3
rateLoot = 2
rateMagic = 3
rateSpawn = 1
deSpawnRange = 2
deSpawnRadius = 50
staminaSystem = true
warnUnsafeScripts = true
convertUnsafeScripts = true
defaultPriority = "high"
startupDatabaseOptimization = false
ownerName = ""
ownerEmail = ""
url = "https://otland.net/"
location = "Sweden"

"Dirty" config.lua:

Code:
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = true
protectionLevel = 1
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = true
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = false
expFromPlayersLevelRange = 75

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "127.0.0.1"
bindOnlyGlobalAddress = false
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to The Forgotten Server!"
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "Forgotten"
statusTimeout = 5000
replaceKickOnLogin = true
maxPacketsPerSecond = 25

-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1

-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 1000
houseRentPeriod = "never"

-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000

-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "forgotten"
mapAuthor = "Komic"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = true
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "exampleuser"
mysqlPass = "examplepass"
mysqlDatabase = "forgottenserver"
mysqlPort = 3306
mysqlSock = ""

-- Misc.
-- NOTE: classicAttackSpeed set to true makes players constantly attack at regular
-- intervals regardless of other actions such as item (potion) use. This setting
-- may cause high CPU usage with many players and potentially affect performance!
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = false
classicAttackSpeed = false

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 3
rateLoot = 2
rateMagic = 3
rateSpawn = 1

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = true

-- Scripts
warnUnsafeScripts = true
convertUnsafeScripts = true

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process
-- priority, valid values are: "normal", "above-normal", "high"
defaultPriority = "high"
startupDatabaseOptimization = false

-- Status server information
ownerName = ""
ownerEmail = ""
url = "https://otland.net/"
location = "Sweden"

4. Reinstall the OT.
5. Download the config.lua again.


I don't know what I can do to fix it.
Anyone can help me to solve this?
Grateful!
 
I have tried too:

6. Move the tfs to other old OT.(NOT WORK)
7. Try another version of XAMPP.(NOT WORK)
 
Last edited:
Back
Top