• 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+ Problem runing TFS 1.2

Udun

Well-Known Member
Joined
Jan 5, 2012
Messages
192
Solutions
1
Reaction score
67
Hello friends of Otland!

Today a came with a lot of trouble, I'm a noob so please be patient! xD
I want start a big project with TFS 1.2, the last 3 days I have been trying to get the distro, looking in the forums, searching as crazy.
I was tinking to compile myself but I haven't able to do it yet cause I'm having problems to get the visual basic (restricted bandwith for now).

So I downloaded the Github Tfs 1.2 from here:

And the dll's and .exe from here:

Then I put all together and when I run the server the console opens for a milisecond and closes up.
I don't know if this is a problem with the database o something else;
Im using XAMMP v3.2.1 and an old database that I use with a TFS 0.3.6, but as the console doesn't open im not able to see any bugs o whatever, (Note: the database have old tables for a website because on the past was used with a website, but I dont have website right now).
I also tried with the schema.sql that comes with the server but the problem persist.

What I'm missing?

config.lua
Code:
-- Combat settings
-- 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 = "root"
mysqlPass = "MYPASSWORD"
mysqlDatabase = "tfs1.2"
mysqlPort = 3306
mysqlSock = ""

-- Misc.
allowChangeOutfit = true
freePremium = false
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = false
classicEquipmentSlots = 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"

Thanks in advance!
 
Last edited by a moderator:
First off. If you're just starting out, you should use TFS 1.3. TFS 1.2 is dead and no longer maintained.
Also, you should probably hide that db password in config file.

And to spot the error you are having. I suggest that you run the TFS in cmd.
Just open up a cmd window then copy the folder path to where your tfs is and write : cd PASTEPATHHERE
and after that you just write tfs.exe
or whatever the name of the executable is.
The window should not close, and instead just show you what is wrong.

If this is too complicated, open the exe a bunch of times then just film it and play it back.

Also the databases from 0.3.6 and TFS 1.3/TFS1.2 are completely different and you will have to use the schemas linked to the new one in order to make it work without a problem. Either way, you are going to be needing a website.
I would advise you to use this one Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC) -- remember to change the config.php file so it loads from database, and then add the schema to your database that shows up when you are setting up the website.
 
First off. If you're just starting out, you should use TFS 1.3. TFS 1.2 is dead and no longer maintained.
Also, you should probably hide that db password in config file.

And to spot the error you are having. I suggest that you run the TFS in cmd.
Just open up a cmd window then copy the folder path to where your tfs is and write : cd PASTEPATHHERE
and after that you just write tfs.exe
or whatever the name of the executable is.
The window should not close, and instead just show you what is wrong.

If this is too complicated, open the exe a bunch of times then just film it and play it back.

Also the databases from 0.3.6 and TFS 1.3/TFS1.2 are completely different and you will have to use the schemas linked to the new one in order to make it work without a problem. Either way, you are going to be needing a website.
I would advise you to use this one Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC) -- remember to change the config.php file so it loads from database, and then add the schema to your database that shows up when you are setting up the website.


Thank you very much for your answer, if you say that's better start with tfs 1.3 I will do it.
I found this tutorial:
Is this Tfs 1.3 right?
I'm following it and the server runs without bugs but I have problems when I try to install Uniform server, send this error:
"Spaces are not allowed please corect and run the application again. To prevent problems UniController will close."
I need the Uniform Server to put the database, but for now I'm using Xammp and the schema of the server, (cause I want to test several things as custom items, mounts, new outfits)
For create the player I used this query from Limos:
SQL:
INSERT INTO `accounts`(`id`, `name`, `password`, `type`, `premdays`, `lastday`, `email`, `creation`) VALUES (1,1,1,5,100,0,'',0)
and
SQL:
INSERT INTO `players`(`id`, `name`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `lastlogout`, `blessings`, `onlinetime`, `deletion`, `balance`, `offlinetraining_time`, `offlinetraining_skill`, `stamina`, `skill_fist`, `skill_fist_tries`, `skill_club`, `skill_club_tries`, `skill_sword`, `skill_sword_tries`, `skill_axe`, `skill_axe_tries`, `skill_dist`, `skill_dist_tries`, `skill_shielding`, `skill_shielding_tries`, `skill_fishing`, `skill_fishing_tries`) VALUES (1,'GOD',3,1,2,1,1000,1000,100,114,0,116,114,140,3,20,1000,1000,100,100,1,95,117,7,'',1000,0,0,0,1,0,0,0,0,0,0,0,43200,-1,2520,10,0,10,0,10,0,10,0,10,0,10,0,10,0)

Also Im using otclient with 10.98 data but when I try to connect it says inmediatly "Wrong account or password.", also im confused about the Autentificator Token, in the tables of the account on the database correspond to the "secret" value? What I have to put there?

Thanks in advance!
 
Thank you very much for your answer, if you say that's better start with tfs 1.3 I will do it.
I found this tutorial:
Is this Tfs 1.3 right?
I'm following it and the server runs without bugs but I have problems when I try to install Uniform server, send this error:
"Spaces are not allowed please corect and run the application again. To prevent problems UniController will close."
I need the Uniform Server to put the database, but for now I'm using Xammp and the schema of the server, (cause I want to test several things as custom items, mounts, new outfits)
For create the player I used this query from Limos:
SQL:
INSERT INTO `accounts`(`id`, `name`, `password`, `type`, `premdays`, `lastday`, `email`, `creation`) VALUES (1,1,1,5,100,0,'',0)
and
SQL:
INSERT INTO `players`(`id`, `name`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `lastlogout`, `blessings`, `onlinetime`, `deletion`, `balance`, `offlinetraining_time`, `offlinetraining_skill`, `stamina`, `skill_fist`, `skill_fist_tries`, `skill_club`, `skill_club_tries`, `skill_sword`, `skill_sword_tries`, `skill_axe`, `skill_axe_tries`, `skill_dist`, `skill_dist_tries`, `skill_shielding`, `skill_shielding_tries`, `skill_fishing`, `skill_fishing_tries`) VALUES (1,'GOD',3,1,2,1,1000,1000,100,114,0,116,114,140,3,20,1000,1000,100,100,1,95,117,7,'',1000,0,0,0,1,0,0,0,0,0,0,0,43200,-1,2520,10,0,10,0,10,0,10,0,10,0,10,0,10,0)

Also Im using otclient with 10.98 data but when I try to connect it says inmediatly "Wrong account or password.", also im confused about the Autentificator Token, in the tables of the account on the database correspond to the "secret" value? What I have to put there?

Thanks in advance!

1. Make sure the Uni server you are installing is the newest version.
2. Try installing/running Uni server on a system path that does NOT include a space. The primary C drive is your best bet.

The Authenticator Token is optional. This means a person registering for your OT may choose to have 2FA installed on to their account.
In terms of the DB, "secret" is stored as char(16). By default it will be NULL. This column does not need to have a real "value", but the schema (in 1.3 at least) does assign this column as "NULL" by default.
 
1. Make sure the Uni server you are installing is the newest version.
2. Try installing/running Uni server on a system path that does NOT include a space. The primary C drive is your best bet.

The Authenticator Token is optional. This means a person registering for your OT may choose to have 2FA installed on to their account.
In terms of the DB, "secret" is stored as char(16). By default it will be NULL. This column does not need to have a real "value", but the schema (in 1.3 at least) does assign this column as "NULL" by default.
Thanks! I didn't realize of the uniserver route, that little details sometimes slow down the projects
Rep++
 
Back
Top