Postado Março 3, 2015 10 anos Error occured! Error ID: #C-2 More info: ERROR: #C-2 : Class::ConfigLUA - LUA config file doesn't exist. Path: C:/Users/Administrador/Desktop/arenatibia/otserv/config.lua File: C:\xampp\htdocs\xampp\classes/configlua.php Line: 24 File: C:\xampp\htdocs\xampp\classes/configlua.php Line: 12 File: C:\xampp\htdocs\xampp\system/load.init.php Line: 42 File: C:\xampp\htdocs\xampp/index.php Line: 18 como posso arrumar esse erro?? Nao consigo instalar o site e nao consigo criar uma conta pra testar o servidor...
Postado Março 3, 2015 10 anos Error occured! Error ID: #C-2 More info: ERROR: #C-2 : Class::ConfigLUA - LUA config file doesn't exist. Path: C:/Users/Administrador/Desktop/arenatibia/otserv/config.lua File: C:\xampp\htdocs\xampp\classes/configlua.php Line: 24 File: C:\xampp\htdocs\xampp\classes/configlua.php Line: 12 File: C:\xampp\htdocs\xampp\system/load.init.php Line: 42 File: C:\xampp\htdocs\xampp/index.php Line: 18 como posso arrumar esse erro?? Nao consigo instalar o site e nao consigo criar uma conta pra testar o servidor... amigo, vai em configphp e configure seu ot
Postado Março 3, 2015 10 anos Autor o que tenho que configurar aqui?? <?php if(!defined('INITIALIZED')) exit; class ConfigPHP extends Errors { private $config; private $loadedFromPath = ''; public function __construct($path = false) { if($path) $this->loadFromFile($path); } public function loadFromFile($path) { if(Website::fileExists($path)) { $content = Website::getFileContents($path); $this->loadedFromPath = $path; $lines = explode("\n", $content); unset($lines[0]); // remove <?php unset($lines[count($lines)]); // remove ? > $this->loadFromString(implode("\n", $lines)); } else WebsiteErrors::addError('#C-4', 'ERROR: <b>#C-4</b> : Class::ConfigPHP - PHP config file doesn\'t exist. Path: <b>' . $path . '</b>'); } public function fileExists($path) { return Website::fileExists($path); } public function loadFromString($string) { $ret = @eval('$_web_config = array();' . chr(0x0A) . $string . chr(0x0A) . ''); if($ret === false) { $error = error_get_last(); new Error_Critic('', ' - cannot load PHP config from string', array( new Error('MESSAGE', $error['message']), new Error('FILE', $error['file']), new Error('LINE', $error['line']), new Error('FILE PATH', $this->loadedFromPath) )); } $this->config = $_web_config; unset($_web_config); } private function parsePhpVariableToText($value) { if(is_bool($value)) return ($value) ? 'true' : 'false'; elseif(is_numeric($value)) return $value; else return '"' . str_replace('"', '\"' , $value) . '"'; } public function arrayToPhpString(array $a, $d) { $s = ''; if(is_array($a) && count($a) > 0) foreach($a as $k => $v) { if(is_array($v)) $s .= self::arrayToPhpString($v, $d . '["' . $k . '"]'); else $s .= $d . '["' . $k . '"] = ' . self::parsePhpVariableToText($v) . ';' . chr(0x0A); } return $s; } public function getConfigAsString() { return self::arrayToPhpString($this->config, '$_web_config'); } public function saveToFile($path = false) { if($path) $savePath = $path; else $savePath = $this->loadedFromPath; Website::putFileContents($savePath, '<?php' . chr(0x0A) . $this->getConfigAsString() . '?>'); } public function getValue($key) { if(isset($this->config[ $key ])) return $this->config[ $key ]; else new Error_Critic('#C-5', 'ERROR: <b>#C-5</b> : Class::ConfigPHP - Key <b>' . $key . '</b> doesn\'t exist.'); } public function setValue($key, $value) { $this->config[ $key ] = $value; } public function removeKey($key) { if(isset($this->config[ $key ])) unset($this->config[ $key ]); } public function isSetKey($key) { return isset($this->config[ $key ]); } public function getConfig() { return $this->config; } public function setConfig($value) { $this->config = $value; }
Postado Março 3, 2015 10 anos o que tenho que configurar aqui?? <?php if(!defined('INITIALIZED')) exit; class ConfigPHP extends Errors { private $config; private $loadedFromPath = ''; public function __construct($path = false) { if($path) $this->loadFromFile($path); } public function loadFromFile($path) { if(Website::fileExists($path)) { $content = Website::getFileContents($path); $this->loadedFromPath = $path; $lines = explode("\n", $content); unset($lines[0]); // remove <?php unset($lines[count($lines)]); // remove ? > $this->loadFromString(implode("\n", $lines)); } else WebsiteErrors::addError('#C-4', 'ERROR: <b>#C-4</b> : Class::ConfigPHP - PHP config file doesn\'t exist. Path: <b>' . $path . '</b>'); } public function fileExists($path) { return Website::fileExists($path); } public function loadFromString($string) { $ret = @eval('$_web_config = array();' . chr(0x0A) . $string . chr(0x0A) . ''); if($ret === false) { $error = error_get_last(); new Error_Critic('', ' - cannot load PHP config from string', array( new Error('MESSAGE', $error['message']), new Error('FILE', $error['file']), new Error('LINE', $error['line']), new Error('FILE PATH', $this->loadedFromPath) )); } $this->config = $_web_config; unset($_web_config); } private function parsePhpVariableToText($value) { if(is_bool($value)) return ($value) ? 'true' : 'false'; elseif(is_numeric($value)) return $value; else return '"' . str_replace('"', '\"' , $value) . '"'; } public function arrayToPhpString(array $a, $d) { $s = ''; if(is_array($a) && count($a) > 0) foreach($a as $k => $v) { if(is_array($v)) $s .= self::arrayToPhpString($v, $d . '["' . $k . '"]'); else $s .= $d . '["' . $k . '"] = ' . self::parsePhpVariableToText($v) . ';' . chr(0x0A); } return $s; } public function getConfigAsString() { return self::arrayToPhpString($this->config, '$_web_config'); } public function saveToFile($path = false) { if($path) $savePath = $path; else $savePath = $this->loadedFromPath; Website::putFileContents($savePath, '<?php' . chr(0x0A) . $this->getConfigAsString() . '?>'); } public function getValue($key) { if(isset($this->config[ $key ])) return $this->config[ $key ]; else new Error_Critic('#C-5', 'ERROR: <b>#C-5</b> : Class::ConfigPHP - Key <b>' . $key . '</b> doesn\'t exist.'); } public function setValue($key, $value) { $this->config[ $key ] = $value; } public function removeKey($key) { if(isset($this->config[ $key ])) unset($this->config[ $key ]); } public function isSetKey($key) { return isset($this->config[ $key ]); } public function getConfig() { return $this->config; } public function setConfig($value) { $this->config = $value; } tente essa. olha as modificaçoes. <?PHP # Account Maker Config $config['site']['serverPath'] = "ENDEREÇO DO SEU OT ex: D:/my ots/ot 10.37/"; $config['site']['useServerConfigCache'] = false; $towns_list = array(1 => 'Thais', 2 => 'Venore', 5 => 'Carlin'); $config['site']['outfit_images_url'] = 'http://outfit-images.ots.me/outfit.php'; $config['site']['item_images_url'] = 'http://item-images.ots.me/960/'; $config['site']['item_images_extension'] = '.gif'; $config['site']['flag_images_url'] = 'http://flag-images.ots.me/'; $config['site']['flag_images_extension'] = '.png'; # Create Account Options $config['site']['one_email'] = false; $config['site']['create_account_verify_mail'] = false; $config['site']['verify_code'] = true; $config['site']['email_days_to_change'] = 3; $config['site']['newaccount_premdays'] = 999; $config['site']['send_register_email'] = false; # Create Character Options $config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample'); $config['site']['newchar_towns'] = array(1); $config['site']['max_players_per_account'] = 7; # Emails Config $config['site']['send_emails'] = false; $config['site']['mail_address'] = "[email protected]"; $config['site']['smtp_enabled'] = true; $config['site']['smtp_host'] = "mail.gmx.com"; $config['site']['smtp_port'] = 25; $config['site']['smtp_auth'] = false; $config['site']['smtp_user'] = "[email protected]"; $config['site']['smtp_pass'] = "xxxx"; # PAGE: whoisonline.php $config['site']['private-servlist.com_server_id'] = 1; /* Server id on 'private-servlist.com' to show Players Online Chart (whoisonline.php page), set 0 to disable Chart feature. To use this feature you must register on 'private-servlist.com' and add your server. Format: number, 0 [disable] or higher */ # PAGE: characters.php $config['site']['quests'] = array(); $config['site']['show_skills_info'] = true; $config['site']['show_vip_storage'] = 0; # PAGE: accountmanagement.php $config['site']['send_mail_when_change_password'] = true; $config['site']['send_mail_when_generate_reckey'] = true; $config['site']['generate_new_reckey'] = false; $config['site']['generate_new_reckey_price'] = 500; # PAGE: guilds.php $config['site']['guild_need_level'] = 15; $config['site']['guild_need_pacc'] = false; $config['site']['guild_image_size_kb'] = 50; $config['site']['guild_description_chars_limit'] = 2000; $config['site']['guild_description_lines_limit'] = 6; $config['site']['guild_motd_chars_limit'] = 250; # PAGE: adminpanel.php $config['site']['access_admin_panel'] = 3; # PAGE: latestnews.php $config['site']['news_limit'] = 6; # PAGE: killstatistics.php $config['site']['last_deaths_limit'] = 40; # PAGE: team.php $config['site']['groups_support'] = array(2, 3, 4, 5, 6); # PAGE: highscores.php $config['site']['groups_hidden'] = array(4, 5, 6); $config['site']['accounts_hidden'] = array(1); # PAGE: shopsystem.php $config['site']['shop_system'] = false; # PAGE: lostaccount.php $config['site']['email_lai_sec_interval'] = 180; # Layout Config $config['site']['layout'] = 'tibiacom'; $config['site']['vdarkborder'] = '#505050'; $config['site']['darkborder'] = '#D4C0A1'; $config['site']['lightborder'] = '#F1E0C6'; $config['site']['download_page'] = false; $config['site']['serverinfo_page'] = true;
Postado Março 3, 2015 10 anos Você precisa arrumar o caminho ao config.lua do seu servidor: $config['site']['serverPath'] = "ENDEREÇO DO SEU OT ex: D:/my ots/ot 10.37/"; STYLLER OT 2022
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.