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

Unable to load config.lua

Yoozi2k

New Member
Joined
Feb 4, 2017
Messages
14
Reaction score
0
Hello, i wanted to make server just for me, but i've got a problem. But when i try to run the server this error is shown.

"
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. Wszelkie prawa zastrzeżone.

C:\Users\yoozi>but when i try to run the server this error is shown:
'but' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\yoozi>C:\Users\yoozi\Desktop\Global\theforgottenserver.exe
The Forgotten Server - Version 1.2
Compiled with Microsoft Visual C++ version 14.0
Compiled on Oct 22 2016 03:25:53 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.

C:\Users\yoozi>

"
 
Solution
So what i have to do? Make new database called "theforgottenserver" or what?
no, i'm not talking about creating a new database.
i said the account/password defaults are different in config.lua (they don't exist by default in mysql)
if you do want to create the new user account, you can click "user accounts" (assuming you have phpMyAdmin) and create the account for theforgottenserver, and use that account in config.lua instead of root
in cmd:
Code:
cd C:\Users\yoozi\Desktop\Global
theforgottenserver.exe

like streamside said, you have to have the exe inside the folder with config.lua, dll files, and the data folder
 
in cmd:
Code:
cd C:\Users\yoozi\Desktop\Global
theforgottenserver.exe

like streamside said, you have to have the exe inside the folder with config.lua, dll files, and the data folder
uI7brbG.png
 
I did it, by xampp.. i imported "schema.sql" and edited config.lua
Code:
    generateAccountSalt = false
    packetsPerSecond = 50
    mysqlReconnectionAttempts = 3
    tradelimit = 100
    skipItemsVersionCheck = true
    healPlayersOnLevelAdvance = true
    tibiaClassicSlots = true
    useCapSystem = true
    useMultiClient = true
    savePlayerData = true
    houseSkipInitialRent = true
    houseProtection = true
    enableProtectionQuestForGM = true
    enableCast = true

    useRookSystem = true
    rookTownId = 1
    rookLevelToGetRooked = 5
    rookLevelToLeaveRook = 8
     
    mailMaxAttempts = 2
    mailBlockPeriod = 60 * 60 * 1000
    mailAttemptsFadeTime = 60 * 60 * 1000

    defaultDepotSizePremium = 1000
    defaultDepotSizefree = 500

    noDisableBlockRespawn = true
    monstersGoBackToSpawn = false
 
    noShareExpSummonMonster = false

    unifiedSpells = true

    houseDataStorage = "binary-tilebased"

    accountManager = true
    namelockManager = true
    newPlayerChooseVoc = true
    newPlayerSpawnPosX = 32369
    newPlayerSpawnPosY = 32241
    newPlayerSpawnPosZ = 7
    newPlayerTownId = 5
    newPlayerLevel = 8
    newPlayerMagicLevel = 0
    generateAccountNumber = false

    useFragHandler = true
    redSkullLength = 1 * 24 * 60 * 60
    blackSkullLength = 2 * 24 * 60 * 60
    dailyFragsToRedSkull = 30
    weeklyFragsToRedSkull = 180
    monthlyFragsToRedSkull = 600
    dailyFragsToBlackSkull = 35
    weeklyFragsToBlackSkull = 200
    monthlyFragsToBlackSkull = 836
    dailyFragsToBanishment = dailyFragsToRedSkull
    weeklyFragsToBanishment = weeklyFragsToRedSkull
    monthlyFragsToBanishment = monthlyFragsToRedSkull
    blackSkulledDeathHealth = 40
    blackSkulledDeathMana = 0
    useBlackSkull = true
    advancedFragList = false

    notationsToBan = 3
    warningsToFinalBan = 4
    warningsToDeletion = 5
    banLength = 7 * 24 * 60 * 60
    killsBanLength = 7 * 24 * 60 * 60
    finalBanLength = 30 * 24 * 60 * 60
    ipBanishmentLength = 1 * 24 * 60 * 60
    broadcastBanishments = false
    maxViolationCommentSize = 200
    violationNameReportActionType = 2
    autoBanishUnknownBytes = false

    worldType = "open"
    protectionLevel = 100
    pvpTileIgnoreLevelAndVocationProtection = true
    pzLocked = 100 * 180
    huntingDuration = 60 * 1000
    criticalHitChance = 7
    criticalHitMultiplier = 1
    displayCriticalHitNotify = false
    removeWeaponAmmunition = false
    removeWeaponCharges = false
    removeRuneCharges = true
    whiteSkullTime = 5 * 60 * 500
    noDamageToSameLookfeet = false
    showHealingDamage = false
    showHealingDamageForMonsters = false
    fieldOwnershipDuration = 5 * 1000
    stopAttackingAtExit = false
    loginProtectionPeriod = 10 * 1000
    deathLostPercent = 10
    stairhopDelay = 2 * 1000
    pushCreatureDelay = 1 * 1
    deathContainerId = 1987
    gainExperienceColor = 215
    addManaSpentInPvPZone = true
    squareColor = 0
    allowFightback = true
    fistBaseAttack = 7

    worldId = 0
    ip = "127.0.0.1"
    loginPort = 7171
    gamePort = 7172
    adminPort = 7171
    statusPort = 7171
    loginTries = 10
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 1000
    motd = "Welcome to DravenOT!!"
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = false
    allowClones = false
    serverName = "Draven OT"
    loginMessage = "Welcome to DravenOT!!"
    statusTimeout = 5 * 60 * 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    loginOnlyWithLoginServer = false
    premiumPlayerSkipWaitList = false

    sqlType = "mysql"
    sqlHost = "127.0.0.1"
    sqlPort = 3306
    sqlUser = "root"
    sqlPass = "18039173362663"
    sqlDatabase = "ots"
    sqlFile = ""
    sqlKeepAlive = 0
    mysqlReadTimeout = 10
    mysqlWriteTimeout = 10
    encryptionType = "sha1"

    deathListEnabled = true
    deathListRequiredTime = 1 * 60 * 1000
    deathAssistCount = 19
    maxDeathRecords = 5

    ingameGuildManagement = false
    levelToFormGuild = 8
    premiumDaysToFormGuild = 0
    guildNameMinLength = 4
    guildNameMaxLength = 20

    highscoreDisplayPlayers = 15
    updateHighscoresAfterMinutes = 60

    buyableAndSellableHouses = true
    houseNeedPremium = false
    bedsRequirePremium = false
    levelToBuyHouse = 50
    housesPerAccount = 1
    houseRentAsPrice = false
    housePriceAsRent = false
    housePriceEachSquare = 1000
    houseRentPeriod = "never"
    houseCleanOld = 0
    guildHalls = false

    timeBetweenActions = 1000
    timeBetweenExActions = 1000
    hotkeyAimbotEnabled = true

    mapName = "realmap.otbm"
    mapAuthor = "Neto TeaM"
    randomizeTiles = true
    storeTrash = true
    cleanProtectedZones = true
    mailboxDisabledTowns = ""

    defaultPriority = "high"
    niceLevel = 6
    coresUsed = "-1"

    startupDatabaseOptimization = true
    updatePremiumStateAtStartup = true
    confirmOutdatedVersion = false

    formulaLevel = 5.0
    formulaMagic = 1.0
    bufferMutedOnSpellFailure = false
    spellNameInsteadOfWords = false
    emoteSpells = true

    allowChangeOutfit = true
    allowChangeColors = true
    allowChangeAddons = true
    disableOutfitsForPrivilegedPlayers = false
    addonsOnlyPremium = false

    dataDirectory = "data/"
    logsDirectory = "data/logs/"
    bankSystem = true
    displaySkillLevelOnAdvance = false
    promptExceptionTracerErrorBox = true
    maximumDoorLevel = 500
    maxMessageBuffer = 4

    separateVipListPerCharacter = false
    vipListDefaultLimit = 20
    vipListDefaultPremiumLimit = 100

    saveGlobalStorage = true
    storePlayerDirection = false

    checkCorpseOwner = true
    monsterLootMessage = 3
    monsterLootMessageType = 25

    ghostModeInvisibleEffect = true
    ghostModeSpellEffects = true

    idleWarningTime = 14 * 60 * 1000
    idleKickTime = 15 * 60 * 1000
    reportsExpirationAfterReads = 1
    playerQueryDeepness = 2
    tileLimit = 0
    protectionTileLimit = 0
    houseTileLimit = 0

    freePremium = true
    premiumForPromotion = true

    blessings = true
    blessingOnlyPremium = false
    blessingReductionBase = 30
    blessingReductionDecrement = 5
    eachBlessReduction = 8

    experienceStages = true
    rateExperience = 25.0
    rateExperienceFromPlayers = 0
    rateSkill = 45.0
    rateMagic = 17.0
    rateLoot = 4.0
    rateSpawn = 1

    rateMonsterHealth = 1.0
    rateMonsterMana = 1.0
    rateMonsterAttack = 1.0
    rateMonsterDefense = 1.0

    minLevelThresholdForKilledPlayer = 0.9
    maxLevelThresholdForKilledPlayer = 1.1

    rateStaminaLoss = 1
    rateStaminaGain = 3
    rateStaminaThresholdGain = 12
    staminaRatingLimitTop = 40 * 60
    staminaRatingLimitBottom = 14 * 60
    staminaLootLimit = 14 * 60
    rateStaminaAboveNormal = 1.5
    rateStaminaUnderNormal = 0.5
    staminaThresholdOnlyPremium = true

    experienceShareRadiusX = 30
    experienceShareRadiusY = 30
    experienceShareRadiusZ = 1
    experienceShareLevelDifference = 2 / 3
    extraPartyExperienceLimit = 20
    extraPartyExperiencePercent = 5
    experienceShareActivity = 2 * 60 * 1000

    globalSaveEnabled = false
    globalSaveHour = 8
    globalSaveMinute = 0
    shutdownAtGlobalSave = true
    cleanMapAtGlobalSave = false

    deSpawnRange = 2
    deSpawnRadius = 50

    maxPlayerSummons = 2
    teleportAllSummons = false
    teleportPlayerSummons = false

    statusPort = 7171
    ownerName = "ADM Draven"
    ownerEmail = "[email protected]"
    url = "www.facebook.com/dravenot"
    location = "Brazil"
    displayGamemastersWithOnlineCommand = false

    displayPlayersLogging = true
    prefixChannelLogs = ""
    runFile = ""
    outputLog = ""
    truncateLogsOnStartup = false

    managerPort = 7171
    managerLogs = true
    managerPassword = ""
    managerLocalhostOnly = true
    managerConnectionsLimit = 1

    adminPort = 7171
    adminLogs = true
    adminPassword = ""
    adminLocalhostOnly = true
    adminConnectionsLimit = 1
    adminRequireLogin = true
    adminEncryption = ""
    adminEncryptionData = ""

(*mod comment: please use [ code ] tag when posting codes)
 
Code:
sqlType = "mysql"
sqlHost = "127.0.0.1"
sqlPort = 3306
sqlUser = "root"
sqlPass = "18039173362663"
sqlDatabase = "ots"

You sure this is what you have? And you get that error in the console? Saying "forgottenserver@localhost"? In such case your server isn't loading the same config.lua as you're editing. You should be editing the config.lua which is in the same folder as the .exe
 
Code:
sqlType = "mysql"
sqlHost = "127.0.0.1"
sqlPort = 3306
sqlUser = "root"
sqlPass = "18039173362663"
sqlDatabase = "ots"

You sure this is what you have? And you get that error in the console? Saying "forgottenserver@localhost"? In such case your server isn't loading the same config.lua as you're editing. You should be editing the config.lua which is in the same folder as the .exe
cFww2Na.png

My folder look like this ^^
 
Well it's clear your server isn't loading those settings you showed me. In config.lua you have set "sqlHost" as "root", but the error is assuming the "sqlHost" would be "forgottenserver". Hence, I come to the conclusion your server is including the wrong config.lua. It could be that running server with cmd is causing the paths to be inconsistent. I tried to run my own server using cmd, but it loaded everything fine, so I don't really know.
 
since you did not make a new database account, the account and password for your database in config.lua should be:
user: "root"
pass: ""
by default, tfs has "theforgottenserver" as the username and "" for the password, which is invalid since you haven't created that account in your database.
 
since you did not make a new database account, the account and password for your database in config.lua should be:
user: "root"
pass: ""
by default, tfs has "theforgottenserver" as the username and "" for the password, which is invalid since you haven't created that account in your database.
So what i have to do? Make new database called "theforgottenserver" or what?
 
Close your config.lua and go to your server folder and open it again. It might be you're saving it to the wrong directory (if you were editing it elsewhere and then moved it into the folder or so).
I did it, im 100% sure that config.lua is correct :(.. idk what's going on..
 
Back
Top