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

TFS 1.X+ Console closes when I try to start it.

ThatGuyPJ

New Member
Joined
May 24, 2020
Messages
24
Reaction score
1
so my problem is that the console closes when im trying to stert it up. It was working fine a few days ago when I was home and i haven't changed anything. now im at my parents for a week and it wont start. im wondering if its to do with the database or the different internet. I was wondering if anyone else has had this issue with moving to different locations. im using xammp too if that helps?

Thanks.
 
You ran the server in the correct path? Like you did cd? like this example
Code:
cd C:\Users\Username\YOUROTS
theforgottenserver.exe
 
ive ran it like this
C:\Users\Kpjon>C:\MYOTS\forgottenserver\theforgottenserver-x64.exe

then it starts to load tfs

The Forgotten Server - Version 1.3
Compiled with Microsoft Visual C++ version 14.2
Compiled on May 30 2020 21:36:19 for platform x64
Linked with LuaJIT 2.0.5 for Lua support
A server developed by Mark Samman
Visit our forum for updates, support, and resources: OTLand (https://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.
 
Post your config.lua and do you have theforgottenserver-x64.exe in same file as config.lua?
 
yeah config.lua is in the same folder as theforgottenserver-x64.exe
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp-enforced"
hotkeyAimbotEnabled = true
protectionLevel = 1
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeChargesFromRunes = false
removeChargesFromPotions = false
removeWeaponAmmunition = false
removeWeaponCharges = false
timeToDecreaseFrags = 24 * 60 * 60
whiteSkullTime = 15 * 60
stairJumpExhaustion = 2000
experienceByKillingPlayers = true
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 = 10000
houseRentPeriod = "never"
houseOwnedByAccount = false
-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000
-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "map1"
mapAuthor = ""
-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = true
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100
-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "forgottenserver"
mysqlPass = "Password"
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!
-- forceMonsterTypesOnLoad server loads all monster types on startup for debugging purposes, you can change to false if all of your monster files don't throw errors to save up memory.
allowChangeOutfit = true
freePremium = true
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = true
classicEquipmentSlots = false
classicAttackSpeed = false
showScriptsLogInConsole = true
showOnlineStatusInCharlist = false
yellMinimumLevel = 2
yellAlwaysAllowPremium = false
forceMonsterTypesOnLoad = true
-- Server Save
-- NOTE: serverSaveNotifyDuration in minutes
serverSaveNotifyMessage = true
serverSaveNotifyDuration = 5
serverSaveCleanMap = false
serverSaveClose = false
serverSaveShutdown = false
-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 50
rateSkill = 300
rateLoot = 2.5
rateMagic = 300
rateSpawn = 1
-- Monsters
deSpawnRange = 2
deSpawnRadius = 50
-- Stamina
staminaSystem = false
-- 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 = ""
location = "United Kingdom"
 
File extentions or something is probably disabled in your file explorer, you need to rename config.lua.dist into just config.lua
You can try to open config.lua in notepad and click "Save As" and save it in same folder but just call it config.lua
 
just changed it to config.lua, still no luck at it running. Although it was running fine as config a couple of days ago

EDIT: Not sure whats happened now, when I try to run the .exe file im getting a messaged saying "This app cant run on your PC"
then tried to run it from cmd and is shows that access is denied2020-06-17 (1).png
 
Last edited:
What TFS are you using (old versions 0.x didn't have dist files as much as I remember)? Can you delete your config.lua file and add fresh one from where you got your server then retry?
 
Access is Denied. Sounds like an Windows UAC thing.
Try to run the exe file through PowerShell as admin.

1592401153616.png
 
recompiled it and I amd getting this now when I try run it with cmd
> Loading config
ERROR: Missing file key.pem.
No services running. The server is NOT online.
ive replaced that file with a new one from GitHub and nothing changed.
tried it with powershell too and that says the same
 
Last edited:
Can you change server location and run Forgottenserver.exe as administrator also can you screenshot your server folder again (the one you gonna test) it seems weird.
When you add your key.pem do you copy what the file contains into your key.pem or you download the file itself? (Downloading the file itself is better to get sure its same correct file-type).
 
Back
Top