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

Compiling First time compiling and tfs.exe file just flash up and exit what is wrong?

Zippiex

Member
Joined
Nov 4, 2015
Messages
255
Solutions
2
Reaction score
20
Location
Sweden
Hello. I just follow the tutorial https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows
and I choose release x64 bit in Visual studio because I got 64 bit computer and also windows 10. Anyway I don't know if this is right but I took the tfs.exe file from release folder and put it in server folder and try to start it but it only flash up for a second and then disappear. I was watching the status in the screen fast and load of database and items seems to be good. This is first time I compile on windows so I need some help, what is wrong ?

I use this server: https://otland.net/threads/10-77-tfs-1-2-orts-a-real-map-project.204514/

I don't know if you gonna ask for the config but here it is. I use xampp and yes mysql and apache is running.

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 Ikasera!"
onePlayerOnlinePerAccount = true
allowClones = false
serverName = "Ikasera"
statusTimeout = 5000
replaceKickOnLogin = true
maxPacketsPerSecond = 25

deathLosePercent = -1

housePriceEachSQM = 1000
houseRentPeriod = "never"

timeBetweenActions = 200
timeBetweenExActions = 1000

mapName = "map"
mapAuthor = "Zippiex"

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

mysqlHost = "127.0.0.1"
mysqlUser = "root"
mysqlPass = ""
mysqlDatabase = "ikasera"
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 = "Zippiex"
ownerEmail = ""
url = "https://ikasera.se"
location = "Sweden"
 
Solution
Run tfs.exe with CMD or powershell. When the program stops you can read the error message without fear of it dissapearing on you.
Run tfs.exe with CMD or powershell. When the program stops you can read the error message without fear of it dissapearing on you.
 
Solution
Run tfs.exe with CMD or powershell. When the program stops you can read the error message without fear of it dissapearing on you.
Thank you. Now I don't get it because I got a config in the same folder as tfs.exe and the config have no comments.


Code:
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.
 
Thank you. Now I don't get it because I got a config in the same folder as tfs.exe and the config have no comments.


Code:
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.
You have to navigate to the directory that tfs.exe is located. Use "cd".
 
Thank you. Now I don't get it because I got a config in the same folder as tfs.exe and the config have no comments.


Code:
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.

Could it be your config file is actually config.lua.dist? (if so then you need to remove .dist from the file name).
Some windows machines hide file extention names by default. Which may be the reason it appears only as config.lua
 
Go in the the directory, up in the nav bar type cmd and then run "theforgottenserver.exe", as I said you're probably running the executable in the cmd from a different directory.
I fixed it. I forgot to write CD in the begining so I did that and go to the server folder then I run theforgottenserver and it worked. :D
 
Back
Top