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

Jak zoptymalizować działanie ots-a?

Xaratex

Explosia.pl
Joined
Aug 18, 2010
Messages
43
Reaction score
3
Witam,
Na moim ots pomino dobrego sprzętu i sieci występują lagi. Mam pytanie co do możliwości optymalizacji działania tegoż ots-a. Proszę o wyrażanie swoich sugestii.
Może coś zmienić w config.lua?

PHP:
	accountManager = false
	namelockManager = true
	newPlayerChooseVoc = true
	newPlayerSpawnPosX = 1000
	newPlayerSpawnPosY = 1000
	newPlayerSpawnPosZ = 7
	newPlayerTownId = 0
	newPlayerLevel = 8
	newPlayerMagicLevel = 1
	generateAccountNumber = false

	redSkullLength = 1 * 24 * 60 * 60
	blackSkullLength = 3 * 24 * 60 * 60
	dailyFragsToRedSkull = 8
	weeklyFragsToRedSkull = 15
	monthlyFragsToRedSkull = 30
	dailyFragsToBlackSkull = 10
	weeklyFragsToBlackSkull = 20
	monthlyFragsToBlackSkull = 35
	dailyFragsToBanishment = 15
	weeklyFragsToBanishment = 25
	monthlyFragsToBanishment = 40
	blackSkulledDeathHealth = 40
	blackSkulledDeathMana = 0
	useBlackSkull = true
	useFragHandler = true
	advancedFragList = true
	notationsToBan = 2
	warningsToFinalBan = 4
	warningsToDeletion = 5
	banLength = 3 * 24 * 60 * 60
	killsBanLength = 1 * 24 * 60 * 60
	finalBanLength = 15 * 24 * 60 * 60
	ipBanishmentLength = 360 * 24 * 60 * 60
	broadcastBanishments = false
	maxViolationCommentSize = 200
	violationNameReportActionType = 2
	autoBanishUnknownBytes = false
	worldType = "pvp"
	protectionLevel = 120
	pvpTileIgnoreLevelAndVocationProtection = true
	pzLocked = 60 * 1000
	huntingDuration = 60 * 1000
	criticalHitChance = 7
	criticalHitMultiplier = 1
	displayCriticalHitNotify = false
	removeWeaponAmmunition = false
	removeWeaponCharges = false
	removeRuneCharges = false
	whiteSkullTime = 3 * 60 * 1000
	noDamageToSameLookfeet = false
	showHealingDamage = true
	showHealingDamageForMonsters = false
	fieldOwnershipDuration = 5 * 1000
	stopAttackingAtExit = false
	oldConditionAccuracy = false
	loginProtectionPeriod = 10 * 1000
	deathLostPercent = 10
	stairhopDelay = 2 * 1000
	pushCreatureDelay = 2 * 1000
	deathContainerId = 1987
	gainExperienceColor = 215
	addManaSpentInPvPZone = true
	squareColor = 0
	allowFightback = true

	
	worldId = 0
	ip = "************"
	bindOnlyConfiguredIpAddress = false
	loginPort = 7171
	gamePort = 7172
	adminPort = 7171
	statusPort = 7171
	loginTries = 10
	retryTimeout = 5 * 1000
	loginTimeout = 60 * 1000
	maxPlayers = 1000
	motd = "Santa Claus is coming to town... Go ask him for present!"
	displayOnOrOffAtCharlist = false
	onePlayerOnlinePerAccount = false
	allowClones = false
	serverName = "****"
	loginMessage = "Witamy na ***** Server! Poczatkowe Eq znajdziesz na samej gorze w Temple."
	statusTimeout = 5 * 60 * 1000
	replaceKickOnLogin = true
	forceSlowConnectionsToDisconnect = true
	loginOnlyWithLoginServer = false
	premiumPlayerSkipWaitList = false

	
	sqlType = "mysql"
	sqlHost = "localhost"
	sqlPort = 3306
	sqlUser = "******"
	sqlPass = "*************"
	sqlDatabase = "******"
	sqlFile = "forgottenserver.s3db"
	sqlKeepAlive = 0
	mysqlReadTimeout = 10
	mysqlWriteTimeout = 10
	encryptionType = "plain"

	
	deathListEnabled = true
	deathListRequiredTime = 1 * 60 * 1000
	deathAssistCount = 19
	maxDeathRecords = 5


	ingameGuildManagement = false
	levelToFormGuild = 120
	premiumDaysToFormGuild = 0
	guildNameMinLength = 4
	guildNameMaxLength = 20


	highscoreDisplayPlayers = 15
	updateHighscoresAfterMinutes = 60


	buyableAndSellableHouses = true
	houseNeedPremium = true
	bedsRequirePremium = true
	levelToBuyHouse = 80
	housesPerAccount = 1
	houseRentAsPrice = false
	housePriceAsRent = false
	housePriceEachSquare = 1000
	houseRentPeriod = "never"
	houseCleanOld = 1
	guildHalls = true


	timeBetweenActions = 200
	timeBetweenExActions = 1000
	checkCorpseOwner = true
	hotkeyAimbotEnabled = true
	maximumDoorLevel = 500

	mapName = "evolutions"
	mapAuthor = "Phoenix332 and tfs_team"
	randomizeTiles = true
	useHouseDataStorage = false
	storeTrash = true
	cleanProtectedZones = true
	mailboxDisabledTowns = "-1"

	defaultPriority = "high"
	niceLevel = 5
	coresUsed = "-1"
	optimizeDatabaseAtStartup = true
	removePremiumOnInit = true
	confirmOutdatedVersion = false

	
	maxMessageBuffer = 4
	bufferMutedOnSpellFailure = false
	dataDirectory = "data/"
	allowChangeOutfit = true
	allowChangeColors = true
	allowChangeAddons = true
	disableOutfitsForPrivilegedPlayers = false
	bankSystem = true
	saveGlobalStorage = true
	displaySkillLevelOnAdvance = false
	spellNameInsteadOfWords = false
	emoteSpells = true
	promptExceptionTracerErrorBox = true
	storePlayerDirection = false
	monsterLootMessage = 3
	monsterLootMessageType = 25
	separateViplistPerCharacter = false

	
	ghostModeInvisibleEffect = true
	ghostModeSpellEffects = true

	
	idleWarningTime = 14 * 60 * 1000
	idleKickTime = 15 * 60 * 1000
	expireReportsAfterReads = 1
	playerQueryDeepness = 2
	maxItemsPerPZTile = 0
	maxItemsPerHouseTile = 0

	
	freePremium = false
	premiumForPromotion = true

	
	blessingOnlyPremium = true
	blessingReductionBase = 30
	blessingReductionDecreament = 5
	eachBlessReduction = 8

	experienceStages = true
	rateExperience = 300.0
	rateExperienceFromPlayers = 0
	rateSkill = 90.0
	rateMagic = 70.0
	rateLoot = 3.0
	rateSpawn = 5

	
	rateMonsterHealth = 1.0
	rateMonsterMana = 1.0
	rateMonsterAttack = 1.0
	rateMonsterDefense = 1.0

	
	minLevelThresholdForKilledPlayer = 0.9
	maxLevelThresholdForKilledPlayer = 1.1

	
	
	rateStaminaLoss = 1
	rateStaminaGain = 3
	rateStaminaThresholdGain = 12
	staminaRatingLimitTop = 41 * 60
	staminaRatingLimitBottom = 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 = false
	globalSaveHour = 8
	shutdownAtGlobalSave = true
	cleanMapAtGlobalSave = false


	deSpawnRange = 2
	deSpawnRadius = 50

	maxPlayerSummons = 3
	teleportAllSummons = true
	teleportPlayerSummons = true

	
	ownerName = "******"
	ownerEmail = "****@***"
	url = "http://*****.pl"
	location = "Poland"
	displayGamemastersWithOnlineCommand = false
	adminLogsEnabled = false
	displayPlayersLogging = true
	prefixChannelLogs = ""
	runFile = ""
	outLogName = ""
	errorLogName = ""
	truncateLogsOnStartup = false
 
Dane techniczne:
Procesor: DualCore 64 Bit 2x 2.2 GHz
Pamięć RAM: 4.096 MB DDR2
Dysk twardy: 2 x 500 GB SATA 7.200 Software RAID1
Miesięczny limit ruchu: bez ograniczeń
połączenie: 110 Mbit/sekunde
OS: Debian 5.0 Lenny

Dane ots-a:
mapka: 30 MB evolution;
ilość graczy ~ 25;
 
połączenie: 110 Mbit/sekunde

10 gratis dostales ? przy 25 graczach nawet defaultowy config mysqla jest szybki przy zapisie. Pokaz htop ( zwlaszcza usage proca ), to VPS ?
 
tak mi pisze w panelu że 110 XD. Jest to serwer dedykowany.
htopm.png
 
Sewer jest w Frankfurt (Niemcy). Ping jest niewysoki bo 47 ,a ja jestem z podkarpacia.
 
Obstawiam dysk i wolne zapytania do bazy.. sprawdź czy coś masz w /var/log/mysql/mysql-slow.log
I przebadaj dysk za pomocą hdparm'a.
 
/var/log/mysql/mysql-slow.log nie mam takiego pliku w tej lokalizacji. Jeżeli chodzi o transmisje danych po dysku to odbywa się to bardzo szybko.
Są to połączone dwa dyski SATA w Raid1.
 
Nie widziałem jeszcze łącza 110 mbit. Bardziej wygląda to na VPSa dzielącego łącze z 1 gbps.
Wpływ na grę ma również twoje łącze, spytaj innych czy mają lagi. Również występuje wrażenie lagów jeśli zbyt przytniesz limit FPSów.
 
Te łącze co mi napisali jest zaskakujące :) W dodatku dodam że na moim serwerze jest zainstalowana karta sieciowa o maxymalnym transferze 100 mbit. To nie jest VPS ;) . Tutaj jest też taka kwestia że niektórzy nie mają ustawionych ustawień optymalnie w Tibi co powoduje liczne lagi zwłaszcze jeśli na ekranie pokaże się dużo elementów (potworków, ktoś założy UE).
 
zoptymalizuj sobie Mysql tuning primerem albo napisz do mnie na priv :p
 
Last edited:
jezeli lagi wystepuja przy clean. polecam anty antypush ... kiedy wystepuja lagi ? sa jakies wyjatkowe sytuacje ktore sie powtarzaja ? czy lagi wystepuja spontanicznie ? i czy kazdemu ... bo jezeli lagi maja tylko podzas wojen . proponuje solucje Heleko . wiekszosc graczy tego nie ma ..
 
Back
Top