Boa noite, estou com o seguindo problema ao iniciar o servidor "Error unable to load config.lua", esse problema surgiu depois que importei o arquivo sql no phpmyadmin,, criei o banco de dados com o nome "otserv" e fiz as alterações na cfg.lua, quando vou abrir o server deixo o xampp na versão recomendada rodando apache e mysql e no-ip também.
vou estar disponibilizando a cfg lua casa alguém posso tentar me ajudar. essa cnf lua veio toda misturada em apenas 5 linhas e com muitas tutorias de cada função então tive que editá-la, ela faz parte do Avesta 7.6
DIRECTORY PATH
DataDir = "data/"
NotationsToBan = 3
WarningsToFinalBan = 4
WarningsToDeletion = 5
BanLength = 3 * 24 * 60 * 60
FinalBanLength = 7 * 24 * 60 * 60
IPBanishmentLength = 24 * 60 * 60
KillsToBan = 7
COMBAT SYSTEM
WorldType = "pvp"
Exhausted = 1000
FightExhausted = 1800
HealExhausted = 1500
ExhaustedAdd = 200
PZLock = 60000
FieldOwnershipDuration = 5000
TimeToDecreaseFrags = 8 * 60 * 60 * 1000
WhiteSkullTime = 15
KillsToRedSkull = 3
RemoveAmmunition = false
RemoveRuneCharges = false
RemoveWeaponCharges = false
CONNECTION SYSTEM
IP = "192.168.0.1"
Port = "7171"
LoginTries = 5
RetryTimeout = 5000
LoginTimeout = 60 * 1000
AllowClones = false
CheckAccounts = false
DATABASE
SQL_Type = "mysql"
SQL_DB = "otserv"
SQL_Host = "localhost"
SQL_Port = 3306
SQL_User = "root"
SQL_Pass = "minhasenha"
HOUSES SYSTEM
HouseRentPeriod = "weekly"
HousePrice = 50
INFO SYSTEM
LoginMsg = "Welcome to Tibia World RPG OldSchool Server!"
ServerName = "Tibia World RPG OldSchool Server"
WorldName = "Tibia World"
OwnerName = "Nottinghster"
OwnerEmail = "
[email protected]"
URL = "http://tibiaworld.hopto.org/"
Location = "Brazil"
ITEM USAGE SYSTEM
MinActionInterval = 200
MinActionExInterval = 200
MAP SYSTEM
Map = "data/world/world.otbm"
MapKind = "OTBM"
MapStoreType = "binary"
RateExp = 1
RateSkill = 5
RateMag = 4
RateLoot = 2
RateSpawn = 1
SPAWNS SYSTEM
DespawnRange = 2
DespawnRadius = 50
STATUS SYSTEM
MOTD = "Welcome to Tibia World RPG OldSchool Server.\n\nHave fun!"
MOTD_Num = "1"
MaxPlayers = "600"
PasswordType = "plain"
MaxMessageBuffer = 0
SaveClientDebug = true
UseAccBalance = true
PremOnlyBeds = true
MaxIdleTime = 15
LevelToRook = 5
RookTempleId = 11
StorePlayerDeaths = true
FACCTempleID = 3
changeSexPrice = 10000
changeSexOnlyPremium = true
PushDelayInterval = 500
spellTalkInOrange = false
serverPriority = "high"
freePremium = false
Use Modified Exp Formula:
ExpFormulaType = "tibianic"
REAL TIBIA SAVE SYSTEM
enableServerSave = true
serverSaveHour = 16
serverSaveMode = "closeserver"
saveWarnBefore = 20
cleanServerAtSave = true
cleanPzAtSave = true
cleanCorpsesAtSave = true
simpleSaveFrequence = 5
saveWarning = false
savePlayers = true
DatabaseBackupAtSave = true
CLEAN MAP SYSTEM
autoCleanFrequence = false
cleanWarnBefore = 10
cleanCorpses = true
cleanPz = true
essa e a lua original
--- DIRECTORY PATH ---
DataDir = "data/"
--- BANS SYSTEM ---
NotationsToBan = 3
WarningsToFinalBan = 4
WarningsToDeletion = 5
BanLength = 3 * 24 * 60 * 60
FinalBanLength = 7 * 24 * 60 * 60
IPBanishmentLength = 24 * 60 * 60
KillsToBan = 7
--- COMBAT SYSTEM ---
-- world type
-- options: pvp, no-pvp, pvp-enforced
WorldType = "pvp"
-- exhausted time in ms (1000 = 1 second) for yelling
Exhausted = 1000
-- exhausted time in ms (1000 = 1 second) for aggressive spells/weapons
FightExhausted = 1800
-- exhausted time in ms (1000 = 1 second) for none-aggressive spells/weapons
HealExhausted = 1500
-- how many ms to add if the player is already exhausted and tries to yell (1000 = 1 second)
ExhaustedAdd = 200
-- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1 second)
PZLock = 60000
-- how long a field belongs to a player before it no longer causes PZ lock for the owner
FieldOwnershipDuration = 5000
-- in mili seconds
TimeToDecreaseFrags = 8 * 60 * 60 * 1000
-- Time white skull will remain after killing a player, in minutes
WhiteSkullTime = 15
-- amount of kills that leads to red skull
KillsToRedSkull = 3
-- Remove ammunition
-- If false, ammunition will not be removed when using distance weapons
-- (or other weapons that use ammunition)
RemoveAmmunition = false
-- Remove rune charges
-- This only applies to runes done using the default functions.
-- Custom runes made using actions will not be affected.
RemoveRuneCharges = false
-- Remove weapon charges
-- Set to false to disable charges disappearing from weapons on use
RemoveWeaponCharges = false
---- CONNECTION SYSTEM ----
-- server ip (the ip that server listens on)
IP = "127.0.0.1"
-- server port (the port that server listens on)
Port = "7171"
-- how many logins attempts until ip is temporary disabled
-- set to 0 to disable
LoginTries = 5
-- how long the retry timeout until a new login can be made (without disabling the ip)
RetryTimeout = 5000
-- how long the player need to wait until the ip is allowed again
LoginTimeout = 60 * 1000
-- allow clones (multiple logins of the same char)
AllowClones = false
-- only one player online per account
CheckAccounts = false
---- DATABASE ----
-- SQL type
-- options: mysql, sqlite, odbc or pgsql
SQL_Type = "mysql"
--- SQL connection part
SQL_DB = ""
-- these settings are not used by SQLite
SQL_Host = "localhost"
SQL_Port = 3306
SQL_User = "root"
SQL_Pass = ""
---- HOUSES SYSTEM ----
-- house rent period
-- options: daily, weekly, monthly
HouseRentPeriod = "weekly"
-- House price
HousePrice = 50
--- INFO SYSTEM ---
-- login message
LoginMsg = "Welcome to Tibia World RPG OldSchool Server!"
-- server name
ServerName = "Tibia World RPG OldSchool Server"
-- world name
WorldName = "Tibia World"
-- server owner name
OwnerName = "Nottinghster"
-- server owner email
OwnerEmail = "
[email protected]"
-- server url
URL = "http://tibiaworld.hopto.org/"
-- server location
Location = "Brazil"
---- ITEM USAGE SYSTEM ----
-- minimum amount of time between actions ('Use') (1000 = 1 second)
MinActionInterval = 200
-- minimum amount of time between extended actions ('Use with...') (1000 = 1 second)
MinActionExInterval = 200
---- MAP SYSTEM ----
-- map location
Map = "data/world/world.otbm"
-- mapkind
-- options: OTBM for binary map, XML for OTX map
MapKind = "OTBM"
-- Type of map storage,
-- 'relational' - Slower, but possible to run database queries to change all items to another id for example.
-- 'binary' - Faster, but you cannot run DB queries.
-- To switch, load server with the current type, change the type in config.lua
-- type /reload config and the save the server with /closeserver serversave
MapStoreType = "binary"
---- RATES SYSTEM ----
-- rates (experience, skill, magic level, loot and spawn)
RateExp = 1
RateSkill = 5
RateMag = 4
RateLoot = 2
RateSpawn = 1
--- SPAWNS SYSTEM ---
-- despawn configs
-- how many floors can a monster go from his spawn before despawning
DespawnRange = 2
-- how many square metters can a monster be far from his spawn before despawning
DespawnRadius = 50
--- STATUS SYSTEM ---
-- motd (the message box that you sometimes get before you choose characters)
MOTD = "Welcome to Tibia World RPG OldSchool Server.\n\nHave fun!"
MOTD_Num = "1"
-- max number of players allowed
MaxPlayers = "600"
--- OTHERS ---
-- accounts password type
-- options: plain, md5, sha1
PasswordType = "plain"
-- max number of messages a player can say before getting muted (default 4), set to 0 to disable muting
MaxMessageBuffer = 0
-- save client debug assertion reports
SaveClientDebug = true
-- Should the server use account balance system or depot system for paying houses?
UseAccBalance = true
-- whether or not to check for premium accounts when using beds
PremOnlyBeds = true
-- Time after player will be kicked when idle, in minutes
MaxIdleTime = 15
-- Level on which player will get rooked
LevelToRook = 5
-- TownId to which player will be teleported
RookTempleId = 11
-- if your website is not showing player deaths, then keep this as 0
StorePlayerDeaths = true
-- ID of temple to which player will get teleported when his prem end out
-- 0 to disable
-- not tested yet
FACCTempleID = 3
--[[ :::::::::::::::::::::::::::::::::
:: Configs added by ::
:: Nottinghster ::
::::::::::::::::::::::::::::::::: ]]--
-- Change sex
changeSexPrice = 10000
changeSexOnlyPremium = true
-- How many seconds the player can push others
PushDelayInterval = 500
-- Use spell talking in orange?
spellTalkInOrange = false
-- Server Priority - options: "aboveNormal", "normal", "high" and "realtime"
serverPriority = "high"
-- Free premium for all players?
freePremium = false
-- Use Modified Exp Formula:
-- The formula was modified, meaning that, with the original formula, you would need 4200 experience points to reach the level 8.
-- With Tibianic Exp Formula, you will only need 238 experience points to reach the level 8!
-- With MasterCores Exp Formula, you will only need 250 experience points to reach the level 8!
-- Options: "original", "tibianic" and "mastercores".
ExpFormulaType = "tibianic"
--- REAL TIBIA SAVE SYSTEM ---
-- Is it enabled?
enableServerSave = true
-- What hour will it happen?
serverSaveHour = 16
-- Will it just close the server or shutdown it? options: "closeserver" and "shutdown"
serverSaveMode = "closeserver"
-- Time to start warning players before the save (in minutes)
saveWarnBefore = 20
-- Clean server while saving?
cleanServerAtSave = true
-- Clean pz at save?
cleanPzAtSave = true
-- Clean corpses at save?
cleanCorpsesAtSave = true
-- Simple save frequence (in minutes)
simpleSaveFrequence = 5
-- Warn players about saving? (good for big servers)
saveWarning = false
-- save players? WARNING: YOU SHOULD JUST SET NO IF IT'S AN ENFORCED OTSERV
savePlayers = true
-- Database backup at save? (configurable at file backup.bat)
DatabaseBackupAtSave = true
--- CLEAN MAP SYSTEM ---
-- Auto clean frequence (in minutes)
autoCleanFrequence = false
-- Time to start warning players before the server clean (in minutes)
cleanWarnBefore = 10
-- Clean corpses/fields?
cleanCorpses = true
-- Clean pz area?
cleanPz = true