Ir para conteúdo
Entre para seguir isso  
Fighters

Gesior + TFS + Xampp (Funcionando)

Recommended Posts

Fighters    3
Fighters

Introdução:

 

Bem gente talvez essa é minha ultima colaboração com a OTserv Networks. Vou ensinar vocês a colocar Gesior (Site) no seu The Fogotten Server (Com o modo ligado para MySQL), com o Xampp para editar a DataBase.

 

Primeiro Passo:

 

Baixe o The Forgotten Server (v0.2.2 , v0.3 beta 3, v0.3.4)

Localizados nessa área: http://forums.otserv.com.br/f215/

 

Baixe também Gesior Web Site compatível (igual) com a versão do server (v0.2.x , v0.3.x , v0.3.4)

Localizados nessa área: http://forums.otserv.com.br/f33/unnamed-acc-maker-0-3-4beta4-for-tfs-70285/

 

Baixe, instale e configure o Xampp (Para ser mais rápidos vou postar o link da minha FAQ de Xampp/SQLiteStudio)

Localizado nessa área: http://forums.otserv.com.br/f13/faq-xampp-sqlitestudio-87542/

 

Segundo Passo:

 

Vá no diretório do Xammp e procure a pasta HTDOCS (xampp/htdocs), retire tudo que contém dentro dela. é coloque os arquivos do Gesior Web Site (não coloque a pasta, quem vem depois de extrair coloque o conteúdo que tem dentro dela).

Logo em seguida, vá no arquivo conf.ini localizado dentro da pasta config (xampp/htdocs/config), abra-o em bloco de notas, vai estar assim:

 

install = "yes"

server_path = "C:/ots/"

 

Mude o que está em negrito, colocando a pasta onde está localizado a conf.lua do OT.

Exemplo:

 

install = "yes"

server_path = "C:\Documents and Settings\Fighters\Desktop\OTservFree\"

 

Sempre colocando a barra no final.

 

Agora vamos para a parte do install.php entrando no http://localhost/install.php (http://localhost:8090/install.php para quem fez modificação de Port), você perceberá que vai haver vários BUGS. Já adiantando a solução para não corrigirmos de 1 em 1 vou logo falando que é um erro de reconhecimento de algumas linhas do conf.lua do OT.

Então pegue essa conf.lua já arrumada dentro do spoiler:

 

[spoiler=Conf.Lua TFS 0.3.4]

-- The Forgotten Server Config

 

-- Account manager

accountManager = "yes"

namelockManager = "yes"

newPlayerChooseVoc = "no"

newPlayerSpawnPosX = 1024

newPlayerSpawnPosY = 1025

newPlayerSpawnPosZ = 7

newPlayerTownId = 1

newPlayerLevel = 1

newPlayerMagicLevel = 0

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

autoBanishUnknownBytes = "no"

 

-- Battle

-- NOTE: loginProtectionPeriod is the famous Tibia anti-magebomb system.

-- deathLostPercent set to nil enables manual mode.

-- showHealingDamageForMonsters inheritates from showHealingDamage.

worldType = "pvp"

protectionLevel = 1

pvpTileIgnoreLevelAndVocationProtection = "yes"

killsToRedSkull = 3

pzLocked = 60 * 1000

criticalHitChance = 7

criticalHitMultiplier = 1

displayCriticalHitNotify = "no"

removeWeaponAmmunition = "yes"

removeWeaponCharges = "yes"

removeRuneCharges = "yes"

timeToDecreaseFrags = 24 * 60 * 60 * 1000

whiteSkullTime = 15 * 60 * 1000

noDamageToSameLookfeet = "no"

experienceByKillingPlayers = "no"

showHealingDamage = "no"

showHealingDamageForMonsters = "no"

fieldOwnershipDuration = 5 * 1000

stopAttackingAtExit = "no"

oldConditionAccuracy = "no"

loginProtectionPeriod = 10 * 1000

deathLostPercent = 10

stairhopDelay = 2 * 1000

gainExperienceColor = 215

 

-- Connection config

worldId = 0

ip = "127.0.0.1"

loginPort = 7171

gamePort = 7172

adminPort = 7171

statusPort = 7171

loginTries = 10

retryTimeout = 5 * 1000

loginTimeout = 60 * 1000

maxPlayers = "100"

motd = ""

displayOnOrOffAtCharlist = "no"

onePlayerOnlinePerAccount = "yes"

allowClones = 0

serverName = ""

loginMessage = ""

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 such as mysqlReadTimeout use 0 value.

sqlType = "mysql"

sqlHost = "localhost"

sqlPort = 3306

sqlUser = "root"

sqlPass = ""

sqlDatabase = ""

sqlFile = ""

sqlKeepAlive = 0

mysqlReadTimeout = 10

mysqlWriteTImeout = 10

passwordType = "plain"

 

-- Deathlist

deathListEnabled = "yes"

maxDeathRecords = 5

 

-- Guilds

ingameGuildManagement = "yes"

levelToFormGuild = 8

guildNameMinLength = 4

guildNameMaxLength = 20

 

-- Highscores

highscoreDisplayPlayers = 15

updateHighscoresAfterMinutes = 60

 

-- Houses

buyableAndSellableHouses = "yes"

houseNeedPremium = "yes"

bedsRequirePremium = "yes"

levelToBuyHouse = 1

housesPerAccount = 0

houseRentAsPrice = "no"

housePriceAsRent = "no"

housePriceEachSquare = 1000

houseRentPeriod = "never"

 

-- Item usage

timeBetweenActions = 200

timeBetweenExActions = 1000

checkCorpseOwner = "yes"

hotkeyAimbotEnabled = "yes"

 

-- Map

-- NOTE: storeTrash costs more memory, but will perform alot faster cleaning.

-- useHouseDataStorage usage may be found at README.

mapName = ""

mapAuthor = ""

randomizeTiles = "yes"

useHouseDataStorage = "no"

storeTrash = "yes"

cleanProtectedZones = "yes"

 

-- Startup

-- NOTE: defaultPriority works only on Windows and niceLevel on *nix

-- coresUsed are seperated by comma cores ids used by server process,

-- default is -1, so it stays untouched automaticaly assigned by OS.

defaultPriority = "high"

niceLevel = 5

coresUsed = "-1"

optimizeDatabaseAtStartup = "yes"

removePremiumOnInit = "yes"

 

-- Muted buffer

maxMessageBuffer = 5

bufferMutedOnSpellFailure = "no"

 

-- Miscellaneous

-- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature,

-- called exception tracer __EXCEPTION_TRACER__ flag.

dataDirectory = "data/"

kickIdlePlayerAfterMinutes = 15

allowChangeOutfit = "yes"

allowChangeColors = "yes"

allowChangeAddons = "yes"

disableOutfitsForPrivilegedPlayers = "no"

bankSystem = "yes"

saveGlobalStorage = "yes"

ghostModeInvisibleEffect = "no"

displaySkillLevelOnAdvance = "no"

spellNameInsteadOfWords = "no"

emoteSpells = "no"

expireReportsAfterReads = 1

promptExceptionTracerErrorBox = "yes"

storePlayerDirection = "no"

playerQueryDeepness = 2

 

-- Premium-related

freePremium = "no"

premiumForPromotion = "yes"

 

-- Blessings

-- NOTE: blessingReduction* regards items/containers loss.

-- eachBlessReduction is how much each bless reduces the experience/magic/skills loss.

blessingsOnlyPremium = "yes"

blessingReductionBase = 30

blessingReductionDecreament = 5

eachBlessReduction = 8

 

-- Rates

-- NOTE: experienceStages configuration is located in data/XML/stages.xml.

experienceStages = "no"

rateExperience = 5.0

rateSkill = 3.0

rateMagic = 3.0

rateLoot = 2.0

rateSpawn = 1

 

-- Stamina

-- NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000.

-- rateStaminaHits multiplies every hit done a creature, which are later

-- multiplied by player attack speed.

-- rateStaminaGain is multiplying every second of logged out time, eg:

-- 60 * 1000 / 3 = 20 seconds, what gives 1 stamina minute for 3 being logged off.

-- rateStaminaThresholdGain is dividing in case the normal gain that is

-- multiplied by rateStaminaGain, btw. passed above threshold, eg:

-- staminaRatingLimit* is in minutes.

rateStaminaLoss = 1

rateStaminaGain = 1000 / 3

rateStaminaThresholdGain = 4

staminaRatingLimitTop = 41 * 60

staminaRatingLimitBottom = 14 * 60

rateStaminaAboveNormal = 1.5

rateStaminaUnderNormal = 0.5

staminaThresholdOnlyPremium = "yes"

 

-- Party

-- NOTE: experienceShareLevelDifference is float number.

-- experienceShareLevelDifference is highestLevel * value

experienceShareRadiusX = 30

experienceShareRadiusY = 30

experienceShareRadiusZ = 1

experienceShareLevelDifference = 2 / 3

extraPartyExperienceLimit = 20

extraPartyExperiencePercent = 5

 

-- 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"

teleportPlayerSummons = "no"

 

-- Status

ownerName = ""

ownerEmail = ""

url = ""

location = "Brasil"

displayGamemastersWithOnlineCommand = "no"

 

-- Logs

-- NOTE: This kind of logging does not work in GUI version.

-- For such, please compile the software with __GUI_LOGS__ flag.

adminLogsEnabled = "no"

displayPlayersLogging = "yes"

prefixChannelLogs = ""

runeFile = ""

outLogName = ""

errorLogName = ""

truncateLogsOnStartup = "no"

 

 

Bem tem alguns negritos porque essa é a conf.lua do meu servidor, então tirei os valores, é só vo completar.

 

Adicional

Bem para quem tem erros de linha (line), vai aqui a dica, bem como estamos falando de WebSite a maioria deles é feita baseada no PHP, e tem algumas linhas no config.lua que quebram alguns comandos (vamos dizer assim), essas linhas tem caracteres como . , : ; / * - ) ( > < +, mais não saia excluindo tudo não porque alguns desses caracteres não "bugam", os que fazem dar erro são aqueles que vem acompanhados pelo "NOTE", Confira:

-- Unjustified kills

-- NOTE: *Banishment and *BlackSkull variables are >summed up<

-- (dailyFragsToRedSkull + dailyFragsToBanishment) with their

-- *RedSkull equivalents.

-- Auto banishing works only if useBlackSkull set to negative.

 

Essa parte com certeza vai ter vários erros, ou seja, para você corrigir, basta excluir esse caracteres, peço a você que use o NotePad Plus (Link Final do Tópico), ele é um dos melhores editores de texto da categoria bloco de notas. E não sai excluindo qualquer coisa, vai com o suporte dos Erros de Line que ocorre no STEP.

 

Finalização:

 

Acabou, porém se você quiser modificar o LayouT (creio que o atual esteja com alguns bugs), é só você ir na seção de "Dowloads de WebSites" e procurar um Layout, no tópico ensinará como mudar.

É isso pessoal, espero que entendam , talvez meu último tutorial na OTNET e última ajuda como uporter.

 

NotePad Plus +++ |Site Oficial|

 

Atenciosamente _Fighters.

Editado por _Fighters

Compartilhar este post


Link para o post
Majesty    1755
Majesty

Obrigado por sua contribuição com tutoriais ótimos e bem explicados para ajudar na hora de colocar um website online, instalação do xampp, configurando o the forgotten server, etc. Pensa bem antes de deixar o cargo de Suporter.

 

 

Tutorial Aprovado e Movido.

Compartilhar este post


Link para o post
Knighz    0
Knighz

É fighters, pensa bem cara.

:(

Muito bom tutorial, espero que não seja o ultimo.

:D

Compartilhar este post


Link para o post
lycantrope14    0
lycantrope14

agradeço pelo seu tópico algo que tava quse desistindo!

agora que vi seu tópico começei a fazer e não é que deucerto vlw ai !

abraços, que nao seja seu ultimo tópico!

by Lycanthrope

Compartilhar este post


Link para o post
Dikidu    0
Dikidu

cara, meu site não fica online, só fica online pra mim!

 

eu coloco start, depois que termino a configuração, mas nao fica on!

Compartilhar este post


Link para o post
goiabinha    0
goiabinha

Aeeee

muito bom amigo

Obrigado

=]

Compartilhar este post


Link para o post
Cristiano_GM    0
Cristiano_GM

eu fis tudo mais nao ta pegando para abri o website como eu fazor add eu ai [email protected]

Compartilhar este post


Link para o post
Pixels    0
Pixels

Cristiano_Gm, para entrar em contato com o _fighters basta entrar no webchat,que se encontra na parte superior da pagina

Digasse de passagem ele vive la.

Compartilhar este post


Link para o post
guigoraldi    0
guigoraldi

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'promotion' in 'field list'' in C:\xampp\htdocs\highscores.php:68 Stack trace: #0 C:\xampp\htdocs\highscores.php(68): PDO->query('SELECT name,onl...') #1 C:\xampp\htdocs\index.php(106): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\highscores.php on line 68

Compartilhar este post


Link para o post
Spyware    0
Spyware

Muito bom,

Só fotos que ficaram a desejar,

Mais está bem explicado =)

Parabéns!

 

//Spy~

Compartilhar este post


Link para o post
156548    0
156548

pow ta dando erro no step 5

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name' in 'field list'' in C:\xampp\htdocs\pot\OTS_Account.php:229 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Account.php(229): PDO->query('SELECT `id`, `n...') #1 C:\xampp\htdocs\install.php(468): OTS_Account->load(1) #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 229

 

vc sabe o q pode ser? me ajuda ae plz

Compartilhar este post


Link para o post
JoaoPedrera    0
JoaoPedrera

P E R F E I T O !!

 

Eu estava a dias atrás de um tutorial iniciante para instalação do AccMaker, estava até desanimado pois não achava um tutorial bem explicado, só que você foi minha salvação... só tenho uma coisa a dizer, ALELUIA !!! EU CONSEGUI!!!!!!!!

 

Não pare com os tutorias cara, você é muito bom nisso. (Y)

Compartilhar este post


Link para o post
KwiiBy~    0
KwiiBy~

Ajudar é pouco Oo puts tava a muito tempo a procura disso manin valeus

Compartilhar este post


Link para o post
nyedson    0
nyedson

o Meu querido EU TE AMO!!... finalmente encontrei O TUTORIAL... parabéns espero que continue assim.

 

 

images%3Fq%3Damo%2Bvoc%25C3%25AA%26hl%3Dpt-BR%26client%3Dfirefox-a%26rls%3Dorg.mozilla:pt-BR:official%26sa%3DG%26um%3D1

images%3Fq%3Damo%2Bvoc%25C3%25AA%26hl%3Dpt-BR%26client%3Dfirefox-a%26rls%3Dorg.mozilla:pt-BR:official%26sa%3DG%26um%3D1

Compartilhar este post


Link para o post
JoaoPedrera    0
JoaoPedrera

Bom...

 

Estou com uma pequena e simples dúvida, alguém pode me ajudar? :slap:

Assim, logo quando eu instalei o site tinha a opção, se não me engano era Painel Admin, ou algo parecido, que dava pra você editar as News e etc... Logo depois que mudei o IP não tem mais essa opção, e agora como eu faço para logar como Administrador ? :P

Compartilhar este post


Link para o post
Raydrickk    0
Raydrickk

STEP 5

Set Admin Account

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name' in 'field list'' in C:\xampp\htdocs\pot\OTS_Account.php:229 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Account.php(229): PDO->query('SELECT `id`, `n...') #1 C:\xampp\htdocs\install.php(581): OTS_Account->load(1) #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 229

 

Estou com gesior e TSF da mesma versão...

este erro ocorre aqui e na casa do meu amigo também.. se alguem souber oq eh..

ele acontece quando eu coloco o admin pass do step 5, se precisar editar algo antes ou dps alguem pode me falar...

Compartilhar este post


Link para o post
KutyKutyx3    1
KutyKutyx3

@Raydrickk e 156548

 

Executem o seguinte código na database de vocês:

 

ALTER TABLE `accounts` ADD `name` varchar(32) NOT NULL default '';

 

Abraços.

Compartilhar este post


Link para o post
Angel of Cold    0
Angel of Cold

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name' in 'field list'' in C:\xampp\htdocs\pot\OTS_Account.php:229 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Account.php(229): PDO->query('SELECT `id`, `n...') #1 C:\xampp\htdocs\install.php(581): OTS_Account->load(1) #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 229

só falta essa parte para mim por online :/

alguem pode me ajudar?

[email protected]

mas estarei acompanhando o topico.

Obrigado.

Compartilhar este post


Link para o post
Bob Mascado    0
Bob Mascado

Valeu manow , muito bom bem esplicado , e etc ... + Faltou as imagens se tiver imagens fica 10 , 10 n 100 !!

Compartilhar este post


Link para o post
Black Draguns    0
Black Draguns

Mensagem do Fórum   
   Tópico não encontrado. Se você está acessando em um link válido, por favor notifique o [url="http://forums.otserv.com.br/../../sendmessage.php"]Administrador[/url]

 

http://forums.otserv.com.br/f13/faq-xampp-sqlitestudio-87542/

Deu Essa Messagem Quando Eu Cliquei Nesse Link

Compartilhar este post


Link para o post
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×