SA
dúvida

Meu Site Nao Passa Nos Step's

Por saulos, 27 de mai. de 2012 em Archived

14
1.6k
saulosS
27 de maio de 2012 às 10:59

olha quando eu to no step 3 do xampp pra cria meu site olha oque da : Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\xampp\htdocs\pot\OTS_DB_SQLite.php on line 68

como eu fasso pra resolver isso?

Lucaswc15L
27 de maio de 2012 às 17:14

voce tem que mudar no seu server para Mysql, ou na hora de importar voce importou o negocio errado.

saulosS
27 de maio de 2012 às 18:01

mudei para mysql mas olha oque da agr :

 

Can't connect to MySQL database.

Editado Maio 27 por saulins

27 de maio de 2012 às 18:21

Agr Seu Problema é no Config.lua

 

 

 

sqlType = "mysql"

sqlHost = "localhost"

sqlPort = 3306

sqlUser = "root"

sqlPass = "Sua Senha"

sqlDatabase = "Nome Da database que vc criou"

sqlFile = "Nome da database.s3db"

sqlKeepAlive = 0

mysqlReadTimeout = 10

mysqlWriteTimeout = 10

encryptionType = "sha1" <------ Nao Mude

saulosS
27 de maio de 2012 às 18:38

da uma olhada ai

 

 

 

accountManager = true

namelockManager = true

newPlayerChooseVoc = true

newPlayerSpawnPosX = 721

newPlayerSpawnPosY = 599

newPlayerSpawnPosZ = 7

newPlayerTownId = 1

newPlayerLevel = 130

newPlayerMagicLevel = 10

generateAccountNumber = false

 

redSkullLength = 1 * 60 * 1000

blackSkullLength = 1 * 60 * 1000

dailyFragsToRedSkull = 3

weeklyFragsToRedSkull = 5

monthlyFragsToRedSkull = 10

dailyFragsToBlackSkull = dailyFragsToRedSkull

weeklyFragsToBlackSkull = weeklyFragsToRedSkull

monthlyFragsToBlackSkull = monthlyFragsToRedSkull

dailyFragsToBanishment = dailyFragsToRedSkull

weeklyFragsToBanishment = weeklyFragsToRedSkull

monthlyFragsToBanishment = monthlyFragsToRedSkull

blackSkulledDeathHealth = 40

blackSkulledDeathMana = 0

useBlackSkull = true

useFragHandler = true

advancedFragList = true

 

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 = true

maxViolationCommentSize = 200

violationNameReportActionType = 2

autoBanishUnknownBytes = false

 

worldType = "PVP-Enforced"

protectionLevel = 75

pvpTileIgnoreLevelAndVocationProtection = true

pzLocked = 1 * 60 * 1000

huntingDuration = 60 * 1000

criticalHitChance = 40

criticalHitMultiplier = 1

displayCriticalHitNotify = true

removeWeaponAmmunition = false

removeWeaponCharges = false

removeRuneCharges = false

whiteSkullTime = 1 * 60 * 1000

noDamageToSameLookfeet = false

showHealingDamage = true

showHealingDamageForMonsters = true

fieldOwnershipDuration = 5 * 1000

stopAttackingAtExit = false

oldConditionAccuracy = false

loginProtectionPeriod = 10 * 1000

deathLostPercent = 5

stairhopDelay = 2 * 1000

pushCreatureDelay = 2 * 1000

deathContainerId = 1987

gainExperienceColor = 215

addManaSpentInPvPZone = true

squareColor = 0

allowFightback = true

 

worldId = 0

ip = "127.0.0.1"

bindOnlyConfiguredIpAddress = false

loginPort = 7171

gamePort = 7172 -- Não mude

adminPort = 7171

statusPort = 7171

loginTries = 10

retryTimeout = 5 * 1000

loginTimeout = 60 * 1000

maxPlayers = 1000

motd = "Bem vindo ao Rortex!"

displayOnOrOffAtCharlist = false

onePlayerOnlinePerAccount = true

allowClones = false

serverName = "Rortex Serve's"

loginMessage = "Bem vindo ao Carlin War!"

statusTimeout = 5 * 60 * 1000

replaceKickOnLogin = true

forceSlowConnectionsToDisconnect = false

loginOnlyWithLoginServer = false

premiumPlayerSkipWaitList = false

 

sqlType = "Mysql"

sqlHost = "localhost"

sqlPort = 3306

sqlUser = "root"

sqlPass = "***************"

sqlDatabase = "forgottenserver"

sqlFile = "forgottenserver.s3db"

sqlKeepAlive = 0

mysqlReadTimeout = 10

mysqlWriteTimeout = 10

encryptionType = "plain"

 

deathListEnabled = true

deathListRequiredTime = 1 * 60 * 1000

deathAssistCount = 19

maxDeathRecords = 5

 

ingameGuildManagement = true

levelToFormGuild = 75

premiumDaysToFormGuild = 0

guildNameMinLength = 4

guildNameMaxLength = 30

 

highscoreDisplayPlayers = 15

updateHighscoresAfterMinutes = 60

 

buyableAndSellableHouses = true

houseNeedPremium = true

bedsRequirePremium = true

levelToBuyHouse = 75

housesPerAccount = 0

houseRentAsPrice = false

housePriceAsRent = false

housePriceEachSquare = 1000

houseRentPeriod = "never"

houseCleanOld = 0

guildHalls = true

 

timeBetweenActions = 200

timeBetweenExActions = 1000

checkCorpseOwner = true

hotkeyAimbotEnabled = true

maximumDoorLevel = 500

 

mapName = "Riot"

mapAuthor = "Miguel - War"

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 = true

spellNameInsteadOfWords = false

emoteSpells = true

promptExceptionTracerErrorBox = true

storePlayerDirection = false

monsterLootMessage = 3

monsterLootMessageType = 25

separateViplistPerCharacter = false

 

ghostModeInvisibleEffect = false

ghostModeSpellEffects = true

 

idleWarningTime = 14 * 60 * 1000

idleKickTime = 15 * 60 * 1000

expireReportsAfterReads = 1

playerQueryDeepness = 2

maxItemsPerPZTile = 0

maxItemsPerHouseTile = 0

 

freePremium = true

premiumForPromotion = true

 

blessingOnlyPremium = true

blessingReductionBase = 30

blessingReductionDecreament = 5

eachBlessReduction = 8

 

experienceStages = false

rateExperience = 10

rateExperienceFromPlayers = 100

rateSkill = 500

rateMagic = 300

rateLoot = 3

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 = 2

teleportAllSummons = false

teleportPlayerSummons = false

 

ownerName = "Carlin War"

ownerEmail = "manoelvakero96@yahoo.com.br"

url = "http://www.xtibia.com"

location = "Nem Vo Passa, São Paulo - Brasil"

displayGamemastersWithOnlineCommand = true

 

adminLogsEnabled = false

displayPlayersLogging = true

prefixChannelLogs = ""

runFile = ""

outLogName = ""

errorLogName = ""

truncateLogsOnStartup = false

 

 

meu config.lua

Editado Maio 27 por Vilden

[spoiler]

VildenV
27 de maio de 2012 às 19:04

Usa spoiler pra não ficar grande a pagina, abraço.

[spoiler]texto aqui[/spoiler]


saulosS
27 de maio de 2012 às 19:17

ok obrigado eu aprenderei aos poucos

saulosS
02 de junho de 2012 às 14:42

Poxa sera que alguem pode resolver meu problema eu nesesito de um ot pra meu site se vcs conseguirem me ajudar fikaria agrdecido

TendoTenseiT
05 de junho de 2012 às 00:33

o nome do database q vc criou pelo xammp ou outro programa é forgottenserver mesmo?se nao troque e cuidado double post

Editado Junho 5 por TendoTensei

EquipeGOTE
08 de junho de 2012 às 15:19

amigo na hora que vc cria o database la no phpadmin, vc tem que informar o mesmo nome no config.lua

 

 

sqldatabase= nome que você criou la no phpadmin.

 

vc só pode abrir a distro do ot depois que o xampp estiver com o mysql e o apache ligados.

 

Abraço

Editado Junho 8 por EquipeGOT

SerounaoserS
08 de junho de 2012 às 17:29

estou com a mesma duvida

Editado Junho 8 por Serounaoser

saulosS
08 de junho de 2012 às 17:34

Serounaoser ve la no

 

local do sql onde ta escrito plain e passa pra sha1 o meu pelo menos ocorreu isso

 

gente ja resolvi o problema mas apareceu outro:

 

Fatal error: Call to a member function query() on a non-object in C:\xampp\htdocs\install.php on line 505
SociopataaS
08 de junho de 2012 às 23:09

olha quando eu to no step 3 do xampp pra cria meu site olha oque da : Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\xampp\htdocs\pot\OTS_DB_SQLite.php on line 68

como eu fasso pra resolver isso?

 

se o erro for esse ainda tente trocar por essa

 

<?php
/**#@+
* @version 0.0.1
*/
/**
* @package POT
* @version 0.1.3
* @author Wrzasq <wrzasq@gmail.com>
* @copyright 2007 (C) by Wrzasq
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3
*/
/**
* SQLite connection interface.
*
* <p>
* At all everything that you really need to read from this class documentation is list of parameters for driver's constructor.
* </p>
*
* @package POT
* @version 0.1.3
*/
class OTS_DB_SQLite extends OTS_Base_DB
{
/**
* Creates database connection.
*
* <p>
* Connects to SQLite database on given arguments.
* <p>
*
* <p>
* List of parameters for this drivers:
* </p>
*
* <ul>
* <li><var>database</var> - database name.</li>
* </ul>
*
* @version 0.0.7
* @param array $params Connection parameters.
* @throws PDOException On PDO operation error.
*/
   public function __construct($params)
   {
    if( isset($params['prefix']) )
    {
	    $this->prefix = $params['prefix'];
    }
    // PDO constructor
try
{
 parent::__construct('sqlite:' . $params['database']);
}
catch(PDOException $error)
{
 echo 'Can\'t connect to SQLite database.</font>';
  exit;
}
}
/**#@-*/
?>

 

e seguida execute isso para nao dar outro erro q estou pensando se der certo

 

ALTER TABLE `accounts` ADD `vip_time` int(11) NOT NULL DEFAULT 0;

saulosS
09 de junho de 2012 às 09:12

vip time ja add e o da linha 68 ja resolvi mas tanks o meu brema agr e akele qui eu postei