Ir para conteúdo

[Encerrado] Ot Salvando Direto Alguem Ajuda


Subhe

Posts Recomendados

gente meu problema é...

meu ot tá salvando toda hora, de 3 em 3 segundos, ai o serve fica travando ...

já tentei arrumar isso, mas nao consigo ;/

 

alguem me ajuda ai

 

se precisar eu posto a pasta do meu config e meu globalevents aqui ;s

 

 

desde já agradeço :*

Link para o comentário
Compartilhar em outros sites

@Subhe

 

Dessa x eu baixei mas da proxima coloque em spoilers,

 

em data/globalevents/save apague tudo e coloque isso:

 

 

 

 

local config = {

broadcast = {120, 30},

shallow = "no",

delay = 120,

events = 30

}

 

config.shallow = getBooleanFromString(config.shallow)

 

local function executeSave(seconds)

if(isInArray(config.broadcast, seconds)) then

local text = ""

if(not config.shallow) then

text = "Full s"

else

text = "S"

end

 

text = text .. "erver save within " .. seconds .. " seconds, please mind it may freeze!"

doBroadcastMessage(text)

end

 

if(seconds > 0) then

addEvent(executeSave, config.events * 1000, seconds - config.events)

else

doSaveServer(config.shallow)

end

end

 

function onThink(interval, lastExecution, thinkInterval)

if(table.maxn(config.broadcast) == 0) then

doSaveServer(config.shallow)

else

executeSave(config.delay)

end

 

return true

end

 

 

 

e em globalevents.xml procure essa linha :

 

<globalevent name="save" interval="900" event="script" value="save.lua"/>

 

e mude para:

 

<globalevent name="save" interval="1800" event="script" value="save.lua"/>

 

Veja se está salvano normal agr, se n tiver mostre seu config.lua.

Editado por Yan18
Link para o comentário
Compartilhar em outros sites

tá ai meu config, Desculpa ter botado pra download, é que nao sei mecher muito nisso ;x

aprendi agora esse negocio de Spoiler, quando vi seu comentario kk

 

 

 

 

 

accountManager = false

namelockManager = false

newPlayerChooseVoc = true

newPlayerSpawnPosX = 160

newPlayerSpawnPosY = 50

newPlayerSpawnPosZ = 8

newPlayerTownId = 1

newPlayerLevel = 10

newPlayerMagicLevel = 0

generateAccountNumber = false

 

useFragHandler = true

redSkullLength = 2 * 2 * 60 * 60

blackSkullLength = 3 * 3 * 60 * 60

dailyFragsToRedSkull = 10

weeklyFragsToRedSkull = 60

monthlyFragsToRedSkull = 200

dailyFragsToBlackSkull = dailyFragsToRedSkull

weeklyFragsToBlackSkull = weeklyFragsToRedSkull

monthlyFragsToBlackSkull = monthlyFragsToRedSkull

dailyFragsToBanishment = dailyFragsToRedSkull

weeklyFragsToBanishment = weeklyFragsToRedSkull

monthlyFragsToBanishment = monthlyFragsToRedSkull

blackSkulledDeathHealth = 40

blackSkulledDeathMana = 0

useBlackSkull = true

advancedFragList = false

 

notationsToBan = 3

warningsToFinalBan = 4

warningsToDeletion = 5

banLength = 7 * 24 * 60 * 60

killsBanLength = 7 * 24 * 60 * 60

finalBanLength = 30 * 24 * 60 * 60

ipBanishmentLength = 1 * 24 * 60 * 60

broadcastBanishments = false

maxViolationCommentSize = 200

violationNameReportActionType = 2

autoBanishUnknownBytes = false

 

worldType = "open"

protectionLevel = 10

pvpTileIgnoreLevelAndVocationProtection = true

pzLocked = 40 * 1000

huntingDuration = 60 * 1000

criticalHitChance = 7

criticalHitMultiplier = 1

displayCriticalHitNotify = false

removeWeaponAmmunition = false

removeWeaponCharges = false

removeRuneCharges = false

whiteSkullTime = 5 * 60 * 1000

noDamageToSameLookfeet = false

showHealingDamage = true

showHealingDamageForMonsters = false

fieldOwnershipDuration = 5 * 1000

stopAttackingAtExit = false

loginProtectionPeriod = 10 * 1000

deathLostPercent = 5

stairhopDelay = 0 * 1000

pushCreatureDelay = 0 * 1000

deathContainerId = 1987

gainExperienceColor = 215

addManaSpentInPvPZone = true

squareColor = 0

allowFightback = false

 

worldId = 0

ip = "127.0.0.1"

bindOnlyConfiguredIpAddress = false

loginPort = 7171

gamePort = 7172

loginTries = 10

retryTimeout = 5 * 1000

loginTimeout = 60 * 1000

maxPlayers = 400

motd = "Bem Vindos ao Infinity"

displayOnOrOffAtCharlist = false

onePlayerOnlinePerAccount = true

allowClones = false

serverName = "Infinity"

loginMessage = "Bem vindos!"

statusTimeout = 5 * 60 * 1000

replaceKickOnLogin = true

forceSlowConnectionsToDisconnect = true

loginOnlyWithLoginServer = false

premiumPlayerSkipWaitList = false

 

sqlType = "mysql"

sqlHost = "localhost"

sqlPort = 3306

sqlUser = "root"

sqlPass = "15071994"

sqlDatabase = "otserv"

sqlFile = "otserv.s3db"

sqlKeepAlive = 0

mysqlReadTimeout = 10

mysqlWriteTimeout = 10

encryptionType = "plain"

 

deathListEnabled = true

deathListRequiredTime = 1 * 60 * 1000

deathAssistCount = 19

maxDeathRecords = 5

 

ingameGuildManagement = false

levelToFormGuild = 200

premiumDaysToFormGuild = 0

guildNameMinLength = 4

guildNameMaxLength = 20

 

highscoreDisplayPlayers = 15

updateHighscoresAfterMinutes = 60

 

buyableAndSellableHouses = true

houseNeedPremium = true

bedsRequirePremium = true

levelToBuyHouse = 500

housesPerAccount = 0

houseRentAsPrice = false

housePriceAsRent = false

housePriceEachSquare = 1000

houseRentPeriod = "never"

houseCleanOld = 0

guildHalls = false

 

timeBetweenActions = 200

timeBetweenExActions = 1000

hotkeyAimbotEnabled = true

 

mapName = "Infinity.otbm"

mapAuthor = "subwatsoft"

randomizeTiles = true

storeTrash = true

cleanProtectedZones = true

mailboxDisabledTowns = ""

 

defaultPriority = "high"

niceLevel = 5

coresUsed = "-5"

 

startupDatabaseOptimization = false

updatePremiumStateAtStartup = true

confirmOutdatedVersion = false

 

formulaLevel = 5.0

formulaMagic = 1.0

bufferMutedOnSpellFailure = false

spellNameInsteadOfWords = false

emoteSpells = true

 

allowChangeOutfit = true

allowChangeColors = true

allowChangeAddons = true

disableOutfitsForPrivilegedPlayers = false

addonsOnlyPremium = true

 

dataDirectory = "data/"

logsDirectory = "data/logs/"

bankSystem = true

displaySkillLevelOnAdvance = false

promptExceptionTracerErrorBox = true

maximumDoorLevel = 8

maxMessageBuffer = 4

 

separateVipListPerCharacter = false

vipListDefaultLimit = 20

vipListDefaultPremiumLimit = 100

 

saveGlobalStorage = true

useHouseDataStorage = true

storePlayerDirection = false

 

checkCorpseOwner = true

monsterLootMessage = 0

monsterLootMessageType = 25

 

ghostModeInvisibleEffect = false

ghostModeSpellEffects = true

 

idleWarningTime = 99999999 * 9999999 * 9999999

idleKickTime = 9999999 * 9999999 * 9999999

reportsExpirationAfterReads = 1

playerQueryDeepness = 2

tileLimit = 0

maxItemsPerPZTile = 0

maxItemsPerHouseTile = 0

 

freePremium = true

premiumForPromotion = true

 

blessingOnlyPremium = true

blessingReductionBase = 30

blessingReductionDecrement = 5

eachBlessReduction = 8

 

experienceStages = true

rateExperience = 999

rateExperienceFromPlayers = 0

rateSkill = 1000

rateMagic = 1000

rateLoot = 4

rateSpawn = 2

 

rateMonsterHealth = 1.0

rateMonsterMana = 1.0

rateMonsterAttack = 1.0

rateMonsterDefense = 1.0

 

minLevelThresholdForKilledPlayer = 0.9

maxLevelThresholdForKilledPlayer = 1.1

 

rateStaminaLoss = 0

rateStaminaGain = 3

rateStaminaThresholdGain = 12

staminaRatingLimitTop = 40 * 60

staminaRatingLimitBottom = 14 * 60

staminaLootLimit = 14 * 60

rateStaminaAboveNormal = 1.5

rateStaminaUnderNormal = 0.5

staminaThresholdOnlyPremium = true

 

experienceShareRadiusX = 30

experienceShareRadiusY = 30

experienceShareRadiusZ = 1

experienceShareLevelDifference = 2 / 3

extraPartyExperienceLimit = 20

extraPartyExperiencePercent = 5

experienceShareActivity = 2 * 60 * 1000

 

globalSaveEnabled = true

globalSaveHour = 8

shutdownAtGlobalSave = true

cleanMapAtGlobalSave = true

 

deSpawnRange = 2

deSpawnRadius = 50

 

maxPlayerSummons = 2

teleportAllSummons = false

teleportPlayerSummons = false

 

statusPort = 7171

ownerName = "GeanRiot"

ownerEmail = ""

url = "www.subwatsoft.com"

location = "Brasil"

displayGamemastersWithOnlineCommand = false

 

adminLogsEnabled = true

displayPlayersLogging = true

prefixChannelLogs = ""

runFile = ""

outLogName = ""

errorLogName = ""

truncateLogsOnStartup = false

 

managerPort = 7171

managerLogs = true

managerPassword = ""

managerLocalhostOnly = true

managerConnectionsLimit = 1

 

adminPort = 7171

adminLogs = true

adminPassword = ""

adminLocalhostOnly = true

adminConnectionsLimit = 1

adminRequireLogin = true

adminEncryption = ""

adminEncryptionData = ""

 

 

 

 

 

@EDIT; eu quero que salve de 1 em 1 hr +/-

 

;x

Editado por Subhe
Link para o comentário
Compartilhar em outros sites

@Subhe

 

Para salvar 1 em 1 hora vá em globalevents.xml e procure por essa linha:

 

<globalevent name="save" interval="1800" event="script" value="save.lua"/>

 

e substitua por:

 

<globalevent name="save" interval="3600" event="script" value="save.lua"/>

 

Se ainda não der me avise.

Link para o comentário
Compartilhar em outros sites

Tente assim apague tudo do seu globalevents/save.lua e add isso dentro:

 

 

local config = {

broadcast = {120, 30},

shallow = "no",

delay = 120,

events = 30

}

 

config.shallow = getBooleanFromString(config.shallow)

 

local function executeSave(seconds)

if(isInArray(config.broadcast, seconds)) then

local text = ""

if(not config.shallow) then

text = "Full s"

else

text = "S"

end

 

text = text .. "erver save within " .. seconds .. " seconds, please mind it may freeze!"

doBroadcastMessage(text)

end

 

if(seconds > 0) then

addEvent(executeSave, config.events * 3600, seconds - config.events)

else

doSaveServer(config.shallow)

end

end

 

function onThink(interval, lastExecution, thinkInterval)

if(table.maxn(config.broadcast) == 0) then

doSaveServer(config.shallow)

else

executeSave(config.delay)

end

 

return true

end

 

e em globalevents.xml substitua essa linha:

 

<globalevent name="save" interval="1800" event="script" value="save.lua"/>

 

por essa:

 

<globalevent name="save" interval="3600" event="script" value="save.lua"/>

 

Se não funcionar me avise.

Editado por Yan18
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...

Você passou sua senha do localhost do xampp HUEHUAHEHAUHEA, que fail, agora fica fácil estragar sua Database, toma cuidado quando posta a config se o server for via xampp/vertrigo

Editado por MrFodon
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...