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

8.40 TFS problem!

cveba007

New Member
Joined
Sep 29, 2008
Messages
25
Reaction score
0
[8.4] TFS 0.3 beta2 with super edited SadTeamMapper!!

When I start, this comes up:

Failed connecting database. MYSQL ERROR: Can't connect to MySql server on ´localhost´ <numbers>
> ERROR: Couldn't estabilish connection to SQL database!

What to do???
Thanks!
 
[8.4] TFS 0.3 beta2 with super edited SadTeamMapper!!

When I start, this comes up:

Failed connecting database. MYSQL ERROR: Can't connect to MySql server on ´localhost´ <numbers>
> ERROR: Couldn't estabilish connection to SQL database!

What to do???
Thanks!

have you set up your SQL database? or are you using SQLite? or what have you done other than open the server
 
have you set up your SQL database? or are you using SQLite? or what have you done other than open the server

Just downloaded and started. Well here is my config, see if there is something to change:

-- The Forgotten Server Config

-- Account manager
accountManager = "yes"
namelockManager = "yes"
newPlayerChooseVoc = "yes"
newPlayerSpawnPosX = 425
newPlayerSpawnPosY = 502
newPlayerSpawnPosZ = 7
newPlayerTownId = 1
newPlayerLevel = 9
newPlayerMagicLevel = 2
generateAccountNumber = "no"

-- Banishments
notationsToBan = 3
warningsToFinalBan = 4
warningsToDeletion = 5
banLength = 7 * 24 * 60 * 60
finalBanLength = 30 * 24 * 60 * 60
ipBanishmentLength = 1 * 24 * 60 * 60
broadcastBanishments = "yes"
killsToBan = 5
maxViolationCommentSize = 200

-- Battle
worldType = "pvp"
hotkeyAimbotEnabled = "yes"
protectionLevel = 1
pvpTileIgnoreLevelAndVocationProtection = "yes"
killsToRedSkull = 3
pzLocked = 60 * 1000
criticalHitChance = 20
displayCriticalHitNotify = "yes"
removeAmmoWhenUsingDistanceWeapon = "yes"
removeChargesFromRunes = "yes"
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
noDamageToSameLookfeet = "no"
experienceByKillingPlayers = "no"
showHealingDamage = "yes"
fieldOwnershipDuration = 2 * 1000

-- Connection config
worldId = 0
ip = "83.7.59.6"
port = 7171
loginTries = 10
retryTimeout = 5 * 1000
loginTimeout = 60 * 1000
maxPlayers = "1000"
motd = "Welcome to the Forgotten Server!"
displayOnOrOffAtCharlist = "no"
onePlayerOnlinePerAccount = "yes"
allowClones = 0
serverName = "Forgotten"
loginMessage = "Welcome to the Forgotten Server!"
adminLogsEnabled = "no"
statusTimeout = 5 * 60 * 1000
replaceKickOnLogin = "yes"
forceSlowConnectionsToDisconnect = "no"
loginOnlyWithLoginServer = "no"

-- Database
-- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database.
-- To disable sqlKeepAlive use 0 value.
sqlType = "mysql"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "x"
sqlPass = "x"
sqlDatabase = "x"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 60
passwordType = "plain"

-- Deathlist
deathListEnabled = "yes"
maxDeathRecords = 5

-- Guilds
ingameGuildManagement = "yes"
levelToFormGuild = 8
guildNameMinLength = 4
guildNameMaxLength = 20

-- Highscores
highscoreDisplayPlayers = 15
updateHighscoresAfterMinutes = 60

-- Houses
buyableAndSellableHouses = "yes"
housesPerAccount = 0
levelToBuyHouse = 1
houseRentAsPrice = "no"
housePriceAsRent = "no"
housePriceEachSQM = 1000
houseRentPeriod = "never"

-- Item usage
timeBetweenActions = 200
timeBetweenExActions = 1000

-- Map
mapName = "SadTeamMapper"
mapAuthor = "Xadrian"
randomizeTiles = "yes"
cleanProtectedZones = "yes"

-- Miscellaneous
-- NOTE: defaultPriority works only on Windows
kickIdlePlayerAfterMinutes = 120
allowChangeOutfit = "yes"
allowChangeColors = "yes"
maxMessageBuffer = 4
displayGamemastersWithOnlineCommand = "no"
defaultPriority = "high"
saveGlobalStorage = "yes"
bankSystem = "yes"
displaySkillLevelOnAdvance = "no"
spellNameInsteadOfWords = "no"
emoteSpells = "yes"
disableOutfitsForPrivilegedPlayers = "no"
expireReportsAfterReads = 1
optimizeDatabaseAtStartup = "yes"

-- Premium account
freePremium = "yes"
removePremiumOnInit = "yes"
premiumForPromotion = "yes"
blessingsOnlyPremium = "yes"
houseNeedPremium = "yes"
bedsRequirePremium = "yes"

-- Rates
-- NOTE: experienceStages configuration is located in data/XML/stages.xml.
rateExp = 5
rateSkill = 30
rateLoot = 8
rateMagic = 10
rateSpawn = 1
extraPartyExpLimit = 20
extraPartyExpPercent = 5
experienceStages = "yes"

-- Global save
-- NOTE: globalSaveHour means like 03:00, not that it will save every 3 hours,
-- if you want such a system please check out data/globalevents/globalevents.xml.
globalSaveEnabled = "no"
globalSaveHour = 8
shutdownAtGlobalSave = "yes"
cleanMapAtGlobalSave = "no"

-- Spawns
deSpawnRange = 2
deSpawnRadius = 50

-- Summons
maxPlayerSummons = 2
teleportAllSummons = "no" --FIXME: Doesn't work
teleportPlayerSummons = "no" --FIXME: Doesn't work

-- Status
ownerName = ""
ownerEmail = "@otland.net"
url = "http://otland.net/"
location = "Europe"
 
you need to setup a mysql server and create the database (windows or linux) if u are using windows download XAMPP, search around on here for tutorials

or..

you can use sqlite

PHP:
-- Database
-- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database.
-- To disable sqlKeepAlive use 0 value.
sqlType = "sqlite"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "x"
sqlPass = "x"
sqlDatabase = "x"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 60
passwordType = "plain"

assuming your folder has forgottenserver.s3db
 
you need to setup a mysql server and create the database (windows or linux) if u are using windows download XAMPP, search around on here for tutorials

or..

you can use sqlite

PHP:
-- Database
-- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database.
-- To disable sqlKeepAlive use 0 value.
sqlType = "sqlite"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "x"
sqlPass = "x"
sqlDatabase = "x"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 60
passwordType = "plain"

assuming your folder has forgottenserver.s3db

It's working! Thanks dude :);)
 
Back
Top