Postado Agosto 4, 2022 2 anos .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Está surgindo algum erro? Se sim coloque-o aqui. Citar Error occured! Error ID: #C-2 More info: ERROR: #C-2 : Class::ConfigLUA - LUA config file doesn't exist. Path: patchE:/ot novo/ot/aglobal/config.lua File: C:\xampp\htdocs\classes/configlua.php Line: 25 File: C:\xampp\htdocs\classes/configlua.php Line: 13 File: C:\xampp\htdocs/install.php Line: 196 Você tem o código disponível? Se tiver publique-o aqui: <?php if(!defined('INITIALIZED')) exit; // NOT SAFE CLASS, LUA CONFIG CAN BE EXECUTED AS PHP CODE class ConfigLUA extends Errors { private $config; public function __construct($path = false) { if($path) $this->loadFromFile($path); } public function loadFromFile($path) { if(Website::fileExists($path)) { $content = Website::getFileContents($path); $this->loadFromString($content); } else { new Error_Critic('#C-2', 'ERROR: <b>#C-2</b> : Class::ConfigLUA - LUA config file doesn\'t exist. Path: <b>' . $path . '</b>'); } } public function fileExists($path) { return Website::fileExists($path); } public function loadFromString($string) { $lines = explode("\n", $string); if(count($lines) > 0) foreach($lines as $ln => $line) { $tmp_exp = explode('=', $line, 2); if(count($tmp_exp) >= 2) { $key = trim($tmp_exp[0]); if(substr($key, 0, 2) != '--') { $value = trim($tmp_exp[1]); if(is_numeric($value)) $this->config[ $key ] = (float) $value; elseif(in_array(substr($value, 0 , 1), array("'", '"')) && in_array(substr($value, -1 , 1), array("'", '"'))) $this->config[ $key ] = (string) substr(substr($value, 1), 0, -1); elseif(in_array($value, array('true', 'false'))) $this->config[ $key ] = ($value == 'true') ? true : false; else { foreach($this->config as $tmp_key => $tmp_value) // load values definied by other keys, like: dailyFragsToBlackSkull = dailyFragsToRedSkull $value = str_replace($tmp_key, $tmp_value, $value); $ret = @eval("return $value;"); if((string) $ret == '') // = parser error { new Error_Critic('', 'ERROR: <b>#C-1</b> : Class::ConfigLUA - Line <b>' . ($ln + 1) . '</b> of LUA config file is not valid [key: <b>' . $key . '</b>]'); } $this->config[ $key ] = $ret; } } } } } public function getValue($key) { if(isset($this->config[ $key ])) return $this->config[ $key ]; else new Error_Critic('#C-3', 'ERROR: <b>#C-3</b> : Class::ConfigLUA - Key <b>' . $key . '</b> doesn\'t exist.'); } public function isSetKey($key) { return isset($this->config[ $key ]); } public function getConfig() { return $this->config; } } Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
Postado Agosto 4, 2022 2 anos 15 minutos atrás, Lobodu disse: .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: <?php if(!defined('INITIALIZED')) exit; // NOT SAFE CLASS, LUA CONFIG CAN BE EXECUTED AS PHP CODE class ConfigLUA extends Errors { private $config; public function __construct($path = false) { if($path) $this->loadFromFile($path); } public function loadFromFile($path) { if(Website::fileExists($path)) { $content = Website::getFileContents($path); $this->loadFromString($content); } else { new Error_Critic('#C-2', 'ERROR: <b>#C-2</b> : Class::ConfigLUA - LUA config file doesn\'t exist. Path: <b>' . $path . '</b>'); } } public function fileExists($path) { return Website::fileExists($path); } public function loadFromString($string) { $lines = explode("\n", $string); if(count($lines) > 0) foreach($lines as $ln => $line) { $tmp_exp = explode('=', $line, 2); if(count($tmp_exp) >= 2) { $key = trim($tmp_exp[0]); if(substr($key, 0, 2) != '--') { $value = trim($tmp_exp[1]); if(is_numeric($value)) $this->config[ $key ] = (float) $value; elseif(in_array(substr($value, 0 , 1), array("'", '"')) && in_array(substr($value, -1 , 1), array("'", '"'))) $this->config[ $key ] = (string) substr(substr($value, 1), 0, -1); elseif(in_array($value, array('true', 'false'))) $this->config[ $key ] = ($value == 'true') ? true : false; else { foreach($this->config as $tmp_key => $tmp_value) // load values definied by other keys, like: dailyFragsToBlackSkull = dailyFragsToRedSkull $value = str_replace($tmp_key, $tmp_value, $value); $ret = @eval("return $value;"); if((string) $ret == '') // = parser error { new Error_Critic('', 'ERROR: <b>#C-1</b> : Class::ConfigLUA - Line <b>' . ($ln + 1) . '</b> of LUA config file is not valid [key: <b>' . $key . '</b>]'); } $this->config[ $key ] = $ret; } } } } } public function getValue($key) { if(isset($this->config[ $key ])) return $this->config[ $key ]; else new Error_Critic('#C-3', 'ERROR: <b>#C-3</b> : Class::ConfigLUA - Key <b>' . $key . '</b> doesn\'t exist.'); } public function isSetKey($key) { return isset($this->config[ $key ]); } public function getConfig() { return $this->config; } } Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. Remova todos os comentários e espaços no config.lua e que provavelmente vá resolver. Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código. #OpenSource #Programação #Contribuição
Postado Agosto 4, 2022 2 anos Autor assim ? -- Combat settings -- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced" worldType = "pvp" hotkeyAimbotEnabled = true protectionLevel = 100 pzLocked = 60 * 1000 removeChargesFromRunes = false removeChargesFromPotions = true removeWeaponAmmunition = false removeWeaponCharges = false timeToDecreaseFrags = 30 * 24 * 60 * 60 whiteSkullTime = 1 * 60 * 1000 stairJumpExhaustion = 2 * 1000 experienceByKillingPlayers = true expFromPlayersLevelRange = 575 dayKillsToRedSkull = 12 weekKillsToRedSkull = 70 monthKillsToRedSkull = 280 redSkullDuration = 1 blackSkullDuration = 2 orangeSkullDuration = 0 -- Connection Config -- NOTE: maxPlayers set to 0 means no limit -- NOTE: MaxPacketsPerSeconds if you change you will be subject to bugs by WPE, keep the default value of 25 ip = "127.0.0.1" bindOnlyGlobalAddress = false loginProtocolPort = 7171 gameProtocolPort = 7172 statusProtocolPort = 7171 maxPlayers = 2000 motd = "Welcome to Deletera! Spells iguais a versao 8.60!" onePlayerOnlinePerAccount = true allowClones = false serverName = "Deletera" statusTimeout = 5 * 1000 replaceKickOnLogin = true maxPacketsPerSecond = 25 maxItem = 2000 maxContainer = 100 --- Version clientVersion = 1264 clientVersionStr = "12.64" -- Depot Limit freeDepotLimit = 2000 premiumDepotLimit = 10000 depotBoxes = 1 -- GameStore gamestoreByModules = true -- NOTE: Access only for Premium Account onlyPremiumAccount = false -- Customs weatherRain = false thunderEffect = false freeQuests = false allConsoleLog = false -- Deaths -- NOTE: Leave deathLosePercent as -1 if you want to use the default -- death penalty formula. For the old formula, set it to 10. For -- no skill/experience loss, set it to 0. deathLosePercent = -1 -- Houses -- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality -- Periods: daily/weekly/monthly/yearly/never housePriceEachSQM = 5000 houseRentPeriod = "never" houseNeedPremiumAccount = false -- Item Usage -- Do not touch here -- Avoid use of WIPE program to crash the distro timeBetweenActions = 500 timeBetweenExActions = 1000 -- Push Delay pushDelay = 1000 pushDistanceDelay = 1500 -- Map -- NOTE: set mapName WITHOUT .otbm at the end -- NOTE: unzip the map world.rar mapName = "baiakdodu" mapAuthor = "WaldirTeixeira" -- Market marketOfferDuration = 60 * 24 * 60 * 60 premiumToCreateMarketOffer = true checkExpiredMarketOffersEachMinutes = 60 maxMarketOffersAtATimePerPlayer = 100 -- MySQL mysqlHost = "127.0.0.1" mysqlUser = "root" mysqlPass = "vinne42362955" mysqlDatabase = "baiak" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" -- Misc. allowChangeOutfit = true freePremium = false kickIdlePlayerAfterMinutes = 15 maxMessageBuffer = 4 emoteSpells = true classicEquipmentSlots = false allowWalkthrough = false coinPacketSize = 25 coinImagesURL = "http://127.0.0.1/store/" classicAttackSpeed = true showScriptsLogInConsole = false -- Server Save -- NOTE: serverSaveNotifyDuration in minutes serverSaveNotifyMessage = true serverSaveNotifyDuration = 5 serverSaveCleanMap = false serverSaveClose = false serverSaveShutdown = true -- Rates -- NOTE: rateExp is used as a fallback only -- To configure experience rate see file data/stages.lua rateExp = 10000000 rateSkill = 3500 rateLoot = 4 rateMagic = 2500 rateSpawn = 1 -- Monster rates rateMonsterHealth = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 -- Monsters deSpawnRange = 2 deSpawnRadius = 50 -- Stamina staminaSystem = false -- Scripts warnUnsafeScripts = true convertUnsafeScripts = true -- Startup -- NOTE: defaultPriority only works on Windows and sets process -- priority, valid values are: "normal", "above-normal", "high" defaultPriority = "high" startupDatabaseOptimization = true -- Status server information ownerName = "Waldir" ownerEmail = "[email protected]" url = "https://deletera.net/" location = "Brazil" -- Sends Discord webhook notifications on startup, raids and shutdown. -- The URL layout is https://discord.com/api/webhooks/:id/:token -- Leave empty if you wish to disable. discordWebhookURL = "" nada mudou
Postado Agosto 4, 2022 2 anos assim worldType = "pvp" hotkeyAimbotEnabled = true protectionLevel = 100 pzLocked = 60 * 1000 removeChargesFromRunes = false removeChargesFromPotions = true removeWeaponAmmunition = false removeWeaponCharges = false timeToDecreaseFrags = 30 * 24 * 60 * 60 whiteSkullTime = 1 * 60 * 1000 stairJumpExhaustion = 2 * 1000 experienceByKillingPlayers = true expFromPlayersLevelRange = 575 dayKillsToRedSkull = 12 weekKillsToRedSkull = 70 monthKillsToRedSkull = 280 redSkullDuration = 1 blackSkullDuration = 2 orangeSkullDuration = 0 ip = "127.0.0.1" bindOnlyGlobalAddress = false loginProtocolPort = 7171 gameProtocolPort = 7172 statusProtocolPort = 7171 maxPlayers = 2000 motd = "Welcome to Deletera! Spells iguais a versao 8.60!" onePlayerOnlinePerAccount = true allowClones = false serverName = "Deletera" statusTimeout = 5 * 1000 replaceKickOnLogin = true maxPacketsPerSecond = 25 maxItem = 2000 maxContainer = 100 clientVersion = 1264 clientVersionStr = "12.64" freeDepotLimit = 2000 premiumDepotLimit = 10000 depotBoxes = 1 gamestoreByModules = true onlyPremiumAccount = false weatherRain = false thunderEffect = false freeQuests = false allConsoleLog = false deathLosePercent = -1 housePriceEachSQM = 5000 houseRentPeriod = "never" houseNeedPremiumAccount = false timeBetweenActions = 500 timeBetweenExActions = 1000 pushDelay = 1000 pushDistanceDelay = 1500 mapName = "baiakdodu" mapAuthor = "WaldirTeixeira" marketOfferDuration = 60 * 24 * 60 * 60 premiumToCreateMarketOffer = true checkExpiredMarketOffersEachMinutes = 60 maxMarketOffersAtATimePerPlayer = 100 mysqlHost = "127.0.0.1" mysqlUser = "root" mysqlPass = "vinne42362955" mysqlDatabase = "baiak" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" allowChangeOutfit = true freePremium = false kickIdlePlayerAfterMinutes = 15 maxMessageBuffer = 4 emoteSpells = true classicEquipmentSlots = false allowWalkthrough = false coinPacketSize = 25 coinImagesURL = "http://127.0.0.1/store/" classicAttackSpeed = true showScriptsLogInConsole = false serverSaveNotifyMessage = true serverSaveNotifyDuration = 5 serverSaveCleanMap = false serverSaveClose = false serverSaveShutdown = true rateExp = 10000000 rateSkill = 3500 rateLoot = 4 rateMagic = 2500 rateSpawn = 1 rateMonsterHealth = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 deSpawnRange = 2 deSpawnRadius = 50 staminaSystem = false warnUnsafeScripts = true convertUnsafeScripts = true defaultPriority = "high" startupDatabaseOptimization = true ownerName = "Waldir" ownerEmail = "[email protected]" url = "https://deletera.net/" location = "Brazil" discordWebhookURL = "" Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código. #OpenSource #Programação #Contribuição
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.