Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Raw Messiah

[Resolvido] Tem algum erro aqui?

Recommended Posts

Olá pessoal eo o seguinte este erro naum ocorria antes fiz uma fusão de mapas entaum o houses.xml foi modificado dae naum funcionou ok.

coloquei o original que antes funcionava agora naum funciona ele da o mesmo erro até jah desinstalei e instalei o xampp muitas vezes mas o erro persiste como concerto alguem tem tempo e paciencia pra ensinar um noob.

 

House file not found: C:\Documents and Settings\Clayton\Desktop\bakp/data/world/test-house.xml

houses.php on line: 23

Script was terminated because something unexpected happened. You can report this, if you think it's a bug.

 

Alinea 23: throw new Exception('House file not found: '.$cfg['dirdata'].$cfg['ho

 

 

Ja ouvi em outros foruns que nimguem conseguiu arrumar issu mas acho que tem que haver uma maneira de arrumar.

Desculpem se postei em local errado naum era minha intenção!

Agradeço a todos que se dispuserem a me ajudar se for preciso me add.

 

gm_new@hotmail.com

Compartilhar este post


Link para o post
Compartilhar em outros sites

o primeiro erro gerou todos os outros

 

você entendeu o qqual foi o primeiro erro ?

 

Oi amigo so mostrou aquele erro ali e abaixo esta a alinea 23 do escript naum lembro dele ter mostrado erros anterior a este.

 

Mas mesmo assim obrigado pela ajuda se souberem como arrumo este erro me ajudem por favor.

 

 

gm_new@hotmail.com

Compartilhar este post


Link para o post
Compartilhar em outros sites

Movido de Dúvidas Gerais http://forum.imasters.com.br/public/style_emoticons/default/seta.gif PHP

 

OBS: se não for o melhor local, mandem novamente galera do PHP!

Compartilhar este post


Link para o post
Compartilhar em outros sites

entende inglês ?

 

House file not found: C:\Documents and Settings\Clayton\Desktop\bakp/data/world/test-house.xml

"arquivo House não encontrado"

Compartilhar este post


Link para o post
Compartilhar em outros sites

é isso mesmo que o Hinom disse e olha só uma coisa:

C:\Documents and Settings\Clayton\Desktop\bakp/data/world/test-house.xml

 

Primeiro você usa barras invertidas:

C:\Documents and Settings\Clayton\Desktop\bakp

e depois barras normais:

/data/world/test-house.xml

Provavelmente você fez alguma confusão.

Poste seu código para analizarmos seu erro.

Compartilhar este post


Link para o post
Compartilhar em outros sites

é isso mesmo que o Hinom disse e olha só uma coisa:

C:\Documents and Settings\Clayton\Desktop\bakp/data/world/test-house.xml

 

Primeiro você usa barras invertidas:

C:\Documents and Settings\Clayton\Desktop\bakp

e depois barras normais:

/data/world/test-house.xml

Provavelmente você fez alguma confusão.

Poste seu código para analizarmos seu erro.

Oi Guilherme vlw pela força ja arrumei a citação mas continua dando o mesmo erro:

 

House file not found: C:/Documents and Settings/Clayton/Desktop/bakp/data/world/test-house.xml

houses.php on line: 23

Script was terminated because something unexpected happened. You can report this, if you think it's a bug.

 

Segue ae o script!

 

<?php

##################################################

# CONFIGURATION #

##################################################

# Congratulations on finding configuration file. #

# This is very simililar to config.lua as it #

# follows same basic principles. Text in between #

# /* */ or starting with # is ignored. Text #

# values must be 'qouted'. Logical values are #

# true/false. All statements end with ; #

##################################################

 

# Set data directory of your OT server

$cfg['dirdata'] = 'C:/Documents and Settings/Clayton/Desktop/bakp/data/';

 

$cfg['house_file'] = 'world/test-house.xml';

 

# MySQL server settings

$cfg['SQL_Server'] = 'localhost';

$cfg['SQL_User'] = 'root';

$cfg['SQL_Password'] = 'xxxxxx';

$cfg['SQL_Database'] = 'otserv';

 

# Must correspond to your OTServ configuration

# Options: plain, md5, sha1

$cfg['password_type'] = 'plain';

 

# Not currently supported by OTServ, leave empty

$cfg['password_salt'] = '';

 

# Skin files can be found in skins folder.

# Each css file represents a skin

$cfg['skin'] = 'skin';

 

# In case you want to upload skins somewhere else

$cfg['skin_url'] = 'skins/';

 

# Captcha is used to prevent automated software from flooding server with accounts

$cfg['use_captcha'] = true;

 

# Secure session will disable 'remember me' box

$cfg['secure_session'] = true;

 

# Seconds until session expires

$cfg['timeout_session'] = 15*60;

 

# Maximum number of characters on account

$cfg['maxchars'] = 6;

 

# Players per highscore page

$cfg['ranks_per_page'] = 50;

 

# This access and above will not be in highscores

$cfg['ranks_access'] = 2;

 

# Home page

$cfg['start_page'] = 'notes.php';

 

# Name shown in window title

$cfg['server_name'] = 'Serve Crazy';

 

# Server ip and port for getting status.

# In most cases localhost should be used

$cfg['server_ip'] = '127.0.0.1';

$cfg['server_port'] = 7171;

 

# Allow teleportation to temple?

$cfg['char_repair'] = true;

 

# Force users to validate their emails when registering?

# For email functions to work, SMTP server must be configured correctly

$cfg['Email_Validate'] = false;

 

# Allow email based account recovery?

$cfg['Email_Recovery'] = true;

 

# Enable extension=php_openssl.dll in php.ini in order to use gmail

$cfg['SMTP_Host'] = 'ssl://smtp.gmail.com';

$cfg['SMTP_Port'] = 465;

$cfg['SMTP_Auth'] = true;

$cfg['SMTP_User'] = 'user@gmail.com';

$cfg['SMTP_Password'] = 'user';

$cfg['SMTP_From'] = 'user@gmail.com';

 

# Example configuration for mercury

/*

$cfg['SMTP_Host'] = 'localhost';

$cfg['SMTP_Port'] = 25;

$cfg['SMTP_Auth'] = false;

$cfg['SMTP_User'] = 'user@gmail.com';

$cfg['SMTP_Password'] = 'user';

$cfg['SMTP_From'] = 'user@gmail.com';

*/

 

# Whether to show skills in character search

$cfg['show_skills'] = true;

 

# Whether to show deathlist in character search, DevLand only

$cfg['show_deathlist'] = true;

 

$cfg['skill_names'] = array('fist', 'club', 'sword', 'axe', 'distance', 'shielding', 'fishing');

 

# Name formating was moved to globals.php

 

# Banned names

$cfg['invalid_names'] = array('^gm','^god','admin','fuck','gamemaster', 'owner');

 

# Accounts that are allowed to access admin panel

# Example: array(123123,687687);

$cfg['admin_accounts'] = array(xxxxx,xxxxxx);

 

# Listed IPs always allowed to access admin panel, no matter if it has account or not

$cfg['admin_ip'] = array('127.0.0.1');

 

# Player can only delete himself after specified time (seconds)

$cfg['player_delete_interval'] = 48*3600;

 

# Minimum level to create own guild. Cannot be lower than $cfg['guild_level']

$cfg['guild_leader_level'] = 100;

 

# Please disable guild manager if your server features guild editing

$cfg['guild_manager_enabled'] = true;

 

# Online status update interval (seconds). Should match statustimeout in your otserv configuration

$cfg['status_update_interval'] = 5*60;

 

##################################################

# Town Config #

##################################################

/*

NOTICE

Town IDs must be correct and match those in your map

*/

# Town names

$cfg['temple'][1]['name'] = 'Slayer';

$cfg['temple'][2]['name'] = 'Forgotten';

$cfg['temple'][3]['name'] = 'Evolutions';

$cfg['temple'][4]['name'] = 'Thais';

$cfg['temple'][5]['name'] = 'Ab\'Dendriel';

$cfg['temple'][6]['name'] = 'Kazordoon';

$cfg['temple'][7]['name'] = 'Something else?';

$cfg['temple'][8]['name'] = 'Darashia';

$cfg['temple'][9]['name'] = 'Port Hope';

$cfg['temple'][10]['name'] = 'Liberty Bay';

 

# Now set which town(s) you want to use in character making

$cfg['temple'][1]['x'] = 160;

$cfg['temple'][1]['y'] = 54;

$cfg['temple'][1]['z'] = 7;

$cfg['temple'][1]['enabled'] = true;

 

$cfg['temple'][2]['x'] = 50;

$cfg['temple'][2]['y'] = 50;

$cfg['temple'][2]['z'] = 7;

$cfg['temple'][2]['disable'] = false;

 

$cfg['temple'][3]['x'] = 1000;

$cfg['temple'][3]['y'] = 1000;

$cfg['temple'][3]['z'] = 7;

$cfg['temple'][3]['disable'] = false;

 

##################################################

# Vocation Config #

##################################################

/*

Notice:

It's only one item per slot. You need to script special onLogin event in OTServ to add more items to new players.

*/

 

################# No Vocation ####################

$id = 0;

$cfg['vocations'][$id]['name'] = 'No Vocation';

$cfg['vocations'][$id]['level'] = 1;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 150;

$cfg['vocations'][$id]['mana'] = 0;

$cfg['vocations'][$id]['cap'] = 400;

$cfg['vocations'][$id]['enabled'] = false;

 

$cfg['vocations'][$id]['look'][0] = 138;

$cfg['vocations'][$id]['look'][1] = 130;

 

$cfg['vocations'][$id]['skills'][0] = 1;

$cfg['vocations'][$id]['skills'][1] = 1;

$cfg['vocations'][$id]['skills'][2] = 1;

$cfg['vocations'][$id]['skills'][3] = 1;

$cfg['vocations'][$id]['skills'][4] = 1;

$cfg['vocations'][$id]['skills'][5] = 1;

$cfg['vocations'][$id]['skills'][6] = 1;

 

$cfg['vocations'][$id]['equipment'][3] = 3939;

$cfg['vocations'][$id]['equipment'][4] = 2650;

$cfg['vocations'][$id]['equipment'][5] = 2382;

$cfg['vocations'][$id]['equipment'][10] = 2050;

 

################# Sorcerer #######################

$id = 1;

$cfg['vocations'][$id]['name'] = 'Sorcerer';

$cfg['vocations'][$id]['level'] = 8;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 185;

$cfg['vocations'][$id]['mana'] = 35;

$cfg['vocations'][$id]['cap'] = 470;

$cfg['vocations'][$id]['enabled'] = true;

 

$cfg['vocations'][$id]['look'][0] = 138;

$cfg['vocations'][$id]['look'][1] = 130;

 

$cfg['vocations'][$id]['skills'][0] = 10;

$cfg['vocations'][$id]['skills'][1] = 10;

$cfg['vocations'][$id]['skills'][2] = 10;

$cfg['vocations'][$id]['skills'][3] = 10;

$cfg['vocations'][$id]['skills'][4] = 10;

$cfg['vocations'][$id]['skills'][5] = 10;

$cfg['vocations'][$id]['skills'][6] = 10;

 

$cfg['vocations'][$id]['equipment'][1] = 2480;

$cfg['vocations'][$id]['equipment'][2] = 2172;

$cfg['vocations'][$id]['equipment'][3] = 2000;

$cfg['vocations'][$id]['equipment'][4] = 2464;

$cfg['vocations'][$id]['equipment'][6] = 2530;

$cfg['vocations'][$id]['equipment'][7] = 2468;

$cfg['vocations'][$id]['equipment'][8] = 2643;

 

################# Druid ##########################

$id = 2;

$cfg['vocations'][$id]['name'] = 'Druid';

$cfg['vocations'][$id]['level'] = 8;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 185;

$cfg['vocations'][$id]['mana'] = 35;

$cfg['vocations'][$id]['cap'] = 470;

$cfg['vocations'][$id]['enabled'] = true;

 

$cfg['vocations'][$id]['look'][0] = 138;

$cfg['vocations'][$id]['look'][1] = 130;

 

$cfg['vocations'][$id]['skills'][0] = 10;

$cfg['vocations'][$id]['skills'][1] = 10;

$cfg['vocations'][$id]['skills'][2] = 10;

$cfg['vocations'][$id]['skills'][3] = 10;

$cfg['vocations'][$id]['skills'][4] = 10;

$cfg['vocations'][$id]['skills'][5] = 10;

$cfg['vocations'][$id]['skills'][6] = 10;

 

$cfg['vocations'][$id]['equipment'][1] = 2480;

$cfg['vocations'][$id]['equipment'][2] = 2172;

$cfg['vocations'][$id]['equipment'][3] = 2000;

$cfg['vocations'][$id]['equipment'][4] = 2464;

$cfg['vocations'][$id]['equipment'][6] = 2530;

$cfg['vocations'][$id]['equipment'][7] = 2468;

$cfg['vocations'][$id]['equipment'][8] = 2643;

 

################# Palladin #######################

$id = 3;

$cfg['vocations'][$id]['name'] = 'Paladin';

$cfg['vocations'][$id]['level'] = 8;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 185;

$cfg['vocations'][$id]['mana'] = 35;

$cfg['vocations'][$id]['cap'] = 470;

$cfg['vocations'][$id]['enabled'] = true;

 

$cfg['vocations'][$id]['look'][0] = 137;

$cfg['vocations'][$id]['look'][1] = 129;

 

$cfg['vocations'][$id]['skills'][0] = 10;

$cfg['vocations'][$id]['skills'][1] = 10;

$cfg['vocations'][$id]['skills'][2] = 10;

$cfg['vocations'][$id]['skills'][3] = 10;

$cfg['vocations'][$id]['skills'][4] = 10;

$cfg['vocations'][$id]['skills'][5] = 10;

$cfg['vocations'][$id]['skills'][6] = 10;

 

$cfg['vocations'][$id]['equipment'][1] = 2480;

$cfg['vocations'][$id]['equipment'][2] = 2172;

$cfg['vocations'][$id]['equipment'][3] = 2000;

$cfg['vocations'][$id]['equipment'][4] = 2464;

$cfg['vocations'][$id]['equipment'][6] = 2530;

$cfg['vocations'][$id]['equipment'][7] = 2468;

$cfg['vocations'][$id]['equipment'][8] = 2643;

 

################# Knight #########################

$id = 4;

$cfg['vocations'][$id]['name'] = 'Knight';

$cfg['vocations'][$id]['level'] = 8;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 185;

$cfg['vocations'][$id]['mana'] = 35;

$cfg['vocations'][$id]['cap'] = 470;

$cfg['vocations'][$id]['enabled'] = true;

 

$cfg['vocations'][$id]['look'][0] = 139;

$cfg['vocations'][$id]['look'][1] = 131;

 

$cfg['vocations'][$id]['skills'][0] = 10;

$cfg['vocations'][$id]['skills'][1] = 10;

$cfg['vocations'][$id]['skills'][2] = 10;

$cfg['vocations'][$id]['skills'][3] = 10;

$cfg['vocations'][$id]['skills'][4] = 10;

$cfg['vocations'][$id]['skills'][5] = 10;

$cfg['vocations'][$id]['skills'][6] = 10;

 

$cfg['vocations'][$id]['equipment'][1] = 2480;

$cfg['vocations'][$id]['equipment'][2] = 2172;

$cfg['vocations'][$id]['equipment'][3] = 2000;

$cfg['vocations'][$id]['equipment'][4] = 2464;

$cfg['vocations'][$id]['equipment'][6] = 2530;

$cfg['vocations'][$id]['equipment'][7] = 2468;

$cfg['vocations'][$id]['equipment'][8] = 2643;

 

################# Other IDs ######################

 

$cfg['vocations'][5]['name'] = 'Master Sorcerer';

$cfg['vocations'][6]['name'] = 'Elder Druid';

$cfg['vocations'][7]['name'] = 'Royal Paladin';

$cfg['vocations'][8]['name'] = 'Elite Knight';

?>

<?php

/*

Copyright © 2007 - 2008 Nicaw

 

This program is free software; you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation; either version 2 of the License, or

(at your option) any later version.

 

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

 

You should have received a copy of the GNU General Public License along

with this program; if not, write to the Free Software Foundation, Inc.,

51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

*/

include ("include.inc.php");

$ptitle="Houses - $cfg[server_name]";

include ("header.inc.php");

if (!is_file($cfg['dirdata'].$cfg['house_file']))

throw new Exception('House file not found: '.$cfg['dirdata'].$cfg['house_file']);

?>

<div id="content">

<div class="top">Houses</div>

<div class="mid">

<div style="height: 500px; overflow: auto; margin: 10px;">

<table>

<tr class="color0"><td width="35%"><b>House</b></td><td width="25%"><b>Location</b></td><td width="25%"><b>Owner</b></td><td><b>Size</b></td><td><b>Rent</b></td></tr>

<?php

$HousesXML = simplexml_load_file($cfg['dirdata'].$cfg['house_file']);

$MySQL = new SQL();

$MySQL->myQuery('SELECT `players`.`name`, `houses`.`id` FROM `players`, `houses` WHERE `houses`.`owner` = `players`.`id`;');

if ($MySQL->failed())

throw new Exception('SQL query failed:<br/>'.$SQL->getError());

while ($row = $MySQL->fetch_array()){

$houses[(int)$row['id']] = $row['name'];

}

foreach ($HousesXML->house as $house){

$i++;

$list.= '<tr '.getStyle($i).'><td>'.htmlspecialchars($house['name']).'</td><td>'.htmlspecialchars($cfg['temple'][(int)$house['townid']]['name']).'</td><td>'.$houses[(int)$house['houseid']].'</td><td>'.$house['size'].'</td><td>'.$house['rent'].'</td></tr>'."\r\n";

}

echo $list;

 

?>

</table>

</div>

</div>

<div class="bot"></div>

</div>

<?php include('footer.inc.php');?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

acho q fundo preto com letra preta nao fica muito bem ^^ ( malz se for bug so aqui )...

 

é isso mesmo que o Hinom disse e olha só uma coisa:

C:\Documents and Settings\Clayton\Desktop\bakp/data/world/test-house.xml

 

Primeiro você usa barras invertidas:

C:\Documents and Settings\Clayton\Desktop\bakp

e depois barras normais:

/data/world/test-house.xml

Provavelmente você fez alguma confusão.

Poste seu código para analizarmos seu erro.

Oi Guilherme vlw pela força ja arrumei a citação mas continua dando o mesmo erro:

 

House file not found: C:/Documents and Settings/Clayton/Desktop/bakp/data/world/test-house.xml

houses.php on line: 23

Script was terminated because something unexpected happened. You can report this, if you think it's a bug.

 

Segue ae o script!

 

 

<?php

##################################################

# CONFIGURATION #

##################################################

# Congratulations on finding configuration file. #

# This is very simililar to config.lua as it #

# follows same basic principles. Text in between #

# /* */ or starting with # is ignored. Text #

# values must be 'qouted'. Logical values are #

# true/false. All statements end with ; #

##################################################

 

# Set data directory of your OT server

$cfg['dirdata'] = 'C:/Documents and Settings/Clayton/Desktop/bakp/data/';

 

$cfg['house_file'] = 'world/test-house.xml';

 

# MySQL server settings

$cfg['SQL_Server'] = 'localhost';

$cfg['SQL_User'] = 'root';

$cfg['SQL_Password'] = 'xxxxxx';

$cfg['SQL_Database'] = 'otserv';

 

# Must correspond to your OTServ configuration

# Options: plain, md5, sha1

$cfg['password_type'] = 'plain';

 

# Not currently supported by OTServ, leave empty

$cfg['password_salt'] = '';

 

# Skin files can be found in skins folder.

# Each css file represents a skin

$cfg['skin'] = 'skin';

 

# In case you want to upload skins somewhere else

$cfg['skin_url'] = 'skins/';

 

# Captcha is used to prevent automated software from flooding server with accounts

$cfg['use_captcha'] = true;

 

# Secure session will disable 'remember me' box

$cfg['secure_session'] = true;

 

# Seconds until session expires

$cfg['timeout_session'] = 15*60;

 

# Maximum number of characters on account

$cfg['maxchars'] = 6;

 

# Players per highscore page

$cfg['ranks_per_page'] = 50;

 

# This access and above will not be in highscores

$cfg['ranks_access'] = 2;

 

# Home page

$cfg['start_page'] = 'notes.php';

 

# Name shown in window title

$cfg['server_name'] = 'Serve Crazy';

 

# Server ip and port for getting status.

# In most cases localhost should be used

$cfg['server_ip'] = '127.0.0.1';

$cfg['server_port'] = 7171;

 

# Allow teleportation to temple?

$cfg['char_repair'] = true;

 

# Force users to validate their emails when registering?

# For email functions to work, SMTP server must be configured correctly

$cfg['Email_Validate'] = false;

 

# Allow email based account recovery?

$cfg['Email_Recovery'] = true;

 

# Enable extension=php_openssl.dll in php.ini in order to use gmail

$cfg['SMTP_Host'] = 'ssl://smtp.gmail.com';

$cfg['SMTP_Port'] = 465;

$cfg['SMTP_Auth'] = true;

$cfg['SMTP_User'] = 'user@gmail.com';

$cfg['SMTP_Password'] = 'user';

$cfg['SMTP_From'] = 'user@gmail.com';

 

# Example configuration for mercury

/*

$cfg['SMTP_Host'] = 'localhost';

$cfg['SMTP_Port'] = 25;

$cfg['SMTP_Auth'] = false;

$cfg['SMTP_User'] = 'user@gmail.com';

$cfg['SMTP_Password'] = 'user';

$cfg['SMTP_From'] = 'user@gmail.com';

*/

 

# Whether to show skills in character search

$cfg['show_skills'] = true;

 

# Whether to show deathlist in character search, DevLand only

$cfg['show_deathlist'] = true;

 

$cfg['skill_names'] = array('fist', 'club', 'sword', 'axe', 'distance', 'shielding', 'fishing');

 

# Name formating was moved to globals.php

 

# Banned names

$cfg['invalid_names'] = array('^gm','^god','admin','fuck','gamemaster', 'owner');

 

# Accounts that are allowed to access admin panel

# Example: array(123123,687687);

$cfg['admin_accounts'] = array(xxxxxx,xxxxxx);

 

# Listed IPs always allowed to access admin panel, no matter if it has account or not

$cfg['admin_ip'] = array('127.0.0.1');

 

# Player can only delete himself after specified time (seconds)

$cfg['player_delete_interval'] = 48*3600;

 

# Minimum level to create own guild. Cannot be lower than $cfg['guild_level']

$cfg['guild_leader_level'] = 100;

 

# Please disable guild manager if your server features guild editing

$cfg['guild_manager_enabled'] = true;

 

# Online status update interval (seconds). Should match statustimeout in your otserv configuration

$cfg['status_update_interval'] = 5*60;

 

##################################################

# Town Config #

##################################################

/*

NOTICE

Town IDs must be correct and match those in your map

*/

# Town names

$cfg['temple'][1]['name'] = 'Slayer';

$cfg['temple'][2]['name'] = 'Forgotten';

$cfg['temple'][3]['name'] = 'Evolutions';

$cfg['temple'][4]['name'] = 'Thais';

$cfg['temple'][5]['name'] = 'Ab\'Dendriel';

$cfg['temple'][6]['name'] = 'Kazordoon';

$cfg['temple'][7]['name'] = 'Something else?';

$cfg['temple'][8]['name'] = 'Darashia';

$cfg['temple'][9]['name'] = 'Port Hope';

$cfg['temple'][10]['name'] = 'Liberty Bay';

 

# Now set which town(s) you want to use in character making

$cfg['temple'][1]['x'] = 160;

$cfg['temple'][1]['y'] = 54;

$cfg['temple'][1]['z'] = 7;

$cfg['temple'][1]['enabled'] = true;

 

$cfg['temple'][2]['x'] = 50;

$cfg['temple'][2]['y'] = 50;

$cfg['temple'][2]['z'] = 7;

$cfg['temple'][2]['disable'] = false;

 

$cfg['temple'][3]['x'] = 1000;

$cfg['temple'][3]['y'] = 1000;

$cfg['temple'][3]['z'] = 7;

$cfg['temple'][3]['disable'] = false;

 

##################################################

# Vocation Config #

##################################################

/*

Notice:

It's only one item per slot. You need to script special onLogin event in OTServ to add more items to new players.

*/

 

################# No Vocation ####################

$id = 0;

$cfg['vocations'][$id]['name'] = 'No Vocation';

$cfg['vocations'][$id]['level'] = 1;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 150;

$cfg['vocations'][$id]['mana'] = 0;

$cfg['vocations'][$id]['cap'] = 400;

$cfg['vocations'][$id]['enabled'] = false;

 

$cfg['vocations'][$id]['look'][0] = 138;

$cfg['vocations'][$id]['look'][1] = 130;

 

$cfg['vocations'][$id]['skills'][0] = 1;

$cfg['vocations'][$id]['skills'][1] = 1;

$cfg['vocations'][$id]['skills'][2] = 1;

$cfg['vocations'][$id]['skills'][3] = 1;

$cfg['vocations'][$id]['skills'][4] = 1;

$cfg['vocations'][$id]['skills'][5] = 1;

$cfg['vocations'][$id]['skills'][6] = 1;

 

$cfg['vocations'][$id]['equipment'][3] = 3939;

$cfg['vocations'][$id]['equipment'][4] = 2650;

$cfg['vocations'][$id]['equipment'][5] = 2382;

$cfg['vocations'][$id]['equipment'][10] = 2050;

 

################# Sorcerer #######################

$id = 1;

$cfg['vocations'][$id]['name'] = 'Sorcerer';

$cfg['vocations'][$id]['level'] = 8;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 185;

$cfg['vocations'][$id]['mana'] = 35;

$cfg['vocations'][$id]['cap'] = 470;

$cfg['vocations'][$id]['enabled'] = true;

 

$cfg['vocations'][$id]['look'][0] = 138;

$cfg['vocations'][$id]['look'][1] = 130;

 

$cfg['vocations'][$id]['skills'][0] = 10;

$cfg['vocations'][$id]['skills'][1] = 10;

$cfg['vocations'][$id]['skills'][2] = 10;

$cfg['vocations'][$id]['skills'][3] = 10;

$cfg['vocations'][$id]['skills'][4] = 10;

$cfg['vocations'][$id]['skills'][5] = 10;

$cfg['vocations'][$id]['skills'][6] = 10;

 

$cfg['vocations'][$id]['equipment'][1] = 2480;

$cfg['vocations'][$id]['equipment'][2] = 2172;

$cfg['vocations'][$id]['equipment'][3] = 2000;

$cfg['vocations'][$id]['equipment'][4] = 2464;

$cfg['vocations'][$id]['equipment'][6] = 2530;

$cfg['vocations'][$id]['equipment'][7] = 2468;

$cfg['vocations'][$id]['equipment'][8] = 2643;

 

################# Druid ##########################

$id = 2;

$cfg['vocations'][$id]['name'] = 'Druid';

$cfg['vocations'][$id]['level'] = 8;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 185;

$cfg['vocations'][$id]['mana'] = 35;

$cfg['vocations'][$id]['cap'] = 470;

$cfg['vocations'][$id]['enabled'] = true;

 

$cfg['vocations'][$id]['look'][0] = 138;

$cfg['vocations'][$id]['look'][1] = 130;

 

$cfg['vocations'][$id]['skills'][0] = 10;

$cfg['vocations'][$id]['skills'][1] = 10;

$cfg['vocations'][$id]['skills'][2] = 10;

$cfg['vocations'][$id]['skills'][3] = 10;

$cfg['vocations'][$id]['skills'][4] = 10;

$cfg['vocations'][$id]['skills'][5] = 10;

$cfg['vocations'][$id]['skills'][6] = 10;

 

$cfg['vocations'][$id]['equipment'][1] = 2480;

$cfg['vocations'][$id]['equipment'][2] = 2172;

$cfg['vocations'][$id]['equipment'][3] = 2000;

$cfg['vocations'][$id]['equipment'][4] = 2464;

$cfg['vocations'][$id]['equipment'][6] = 2530;

$cfg['vocations'][$id]['equipment'][7] = 2468;

$cfg['vocations'][$id]['equipment'][8] = 2643;

 

################# Palladin #######################

$id = 3;

$cfg['vocations'][$id]['name'] = 'Paladin';

$cfg['vocations'][$id]['level'] = 8;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 185;

$cfg['vocations'][$id]['mana'] = 35;

$cfg['vocations'][$id]['cap'] = 470;

$cfg['vocations'][$id]['enabled'] = true;

 

$cfg['vocations'][$id]['look'][0] = 137;

$cfg['vocations'][$id]['look'][1] = 129;

 

$cfg['vocations'][$id]['skills'][0] = 10;

$cfg['vocations'][$id]['skills'][1] = 10;

$cfg['vocations'][$id]['skills'][2] = 10;

$cfg['vocations'][$id]['skills'][3] = 10;

$cfg['vocations'][$id]['skills'][4] = 10;

$cfg['vocations'][$id]['skills'][5] = 10;

$cfg['vocations'][$id]['skills'][6] = 10;

 

$cfg['vocations'][$id]['equipment'][1] = 2480;

$cfg['vocations'][$id]['equipment'][2] = 2172;

$cfg['vocations'][$id]['equipment'][3] = 2000;

$cfg['vocations'][$id]['equipment'][4] = 2464;

$cfg['vocations'][$id]['equipment'][6] = 2530;

$cfg['vocations'][$id]['equipment'][7] = 2468;

$cfg['vocations'][$id]['equipment'][8] = 2643;

 

################# Knight #########################

$id = 4;

$cfg['vocations'][$id]['name'] = 'Knight';

$cfg['vocations'][$id]['level'] = 8;

$cfg['vocations'][$id]['group'] = 1;

$cfg['vocations'][$id]['maglevel'] = 0;

$cfg['vocations'][$id]['health'] = 185;

$cfg['vocations'][$id]['mana'] = 35;

$cfg['vocations'][$id]['cap'] = 470;

$cfg['vocations'][$id]['enabled'] = true;

 

$cfg['vocations'][$id]['look'][0] = 139;

$cfg['vocations'][$id]['look'][1] = 131;

 

$cfg['vocations'][$id]['skills'][0] = 10;

$cfg['vocations'][$id]['skills'][1] = 10;

$cfg['vocations'][$id]['skills'][2] = 10;

$cfg['vocations'][$id]['skills'][3] = 10;

$cfg['vocations'][$id]['skills'][4] = 10;

$cfg['vocations'][$id]['skills'][5] = 10;

$cfg['vocations'][$id]['skills'][6] = 10;

 

$cfg['vocations'][$id]['equipment'][1] = 2480;

$cfg['vocations'][$id]['equipment'][2] = 2172;

$cfg['vocations'][$id]['equipment'][3] = 2000;

$cfg['vocations'][$id]['equipment'][4] = 2464;

$cfg['vocations'][$id]['equipment'][6] = 2530;

$cfg['vocations'][$id]['equipment'][7] = 2468;

$cfg['vocations'][$id]['equipment'][8] = 2643;

 

################# Other IDs ######################

 

$cfg['vocations'][5]['name'] = 'Master Sorcerer';

$cfg['vocations'][6]['name'] = 'Elder Druid';

$cfg['vocations'][7]['name'] = 'Royal Paladin';

$cfg['vocations'][8]['name'] = 'Elite Knight';

?>

 

 

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

nesse tempo você fez algo pra tentar corrigir?

 

o primeiro erro provem desse trecho:

 

if (!is_file($cfg['dirdata'].$cfg['house_file']))
throw new Exception('House file not found: '.$cfg['dirdata'].$cfg['house_file']);

 

você entende o que é esse trecho, pra quê serve, o quê faz ?

 

certificou-se de que esse caminho é válido e possui permissão de acesso para leitura pelo php ?

$cfg['dirdata'] = 'C:/Documents and Settings/Clayton/Desktop/bakp/data/';

 

$cfg['house_file'] = 'world/test-house.xml';

Compartilhar este post


Link para o post
Compartilhar em outros sites

nesse tempo você fez algo pra tentar corrigir?

 

o primeiro erro provem desse trecho:

 

if (!is_file($cfg['dirdata'].$cfg['house_file']))
throw new Exception('House file not found: '.$cfg['dirdata'].$cfg['house_file']);

 

você entende o que é esse trecho, pra quê serve, o quê faz ?

 

certificou-se de que esse caminho é válido e possui permissão de acesso para leitura pelo php ?

$cfg['dirdata'] = 'C:/Documents and Settings/Clayton/Desktop/bakp/data/';

 

$cfg['house_file'] = 'world/test-house.xml';

 

Sim entendo que este trecho seja o caminho pra ler o house.xml mas naum sei como vejo se ele tem a permissao para leitura do php.

O mais enteressante e o seguinte ele estava funcionando até eu fundir o houses.xml mas apenas acrescentei mais umas houses tudo perfeito o mysql le ele numa boua.

Compartilhar este post


Link para o post
Compartilhar em outros sites

como assim? fundir ??

 

 

faça testes simples de depuração para eliminar possibilidade de erro e chegar à solução

 

teste 1

 

tmp1.php

<?php
$f = 'C:/Documents and Settings/Clayton/Desktop/bakp/data/world/test-house.xml';

if( file( $f ) )
{
	echo 'ok: ';
}else{
   echo 'ng: ';
}
echo microtime();

exit;
?>

 

crie um novo arquivo tmp1.php ou qualquer outro nome, coloque esse script e execute

 

veja o que retorna.

 

se aparecer 'ok'

provavelmente não há problema de acesso e leitura ao arquivo.

 

faça o teste poste o resultado

Compartilhar este post


Link para o post
Compartilhar em outros sites

como assim? fundir ??

 

 

faça testes simples de depuração para eliminar possibilidade de erro e chegar à solução

 

teste 1

 

tmp1.php

<?php
$f = 'C:/Documents and Settings/Clayton/Desktop/bakp/data/world/test-house.xml';

if( file( $f ) )
{
	echo 'ok: ';
}else{
   echo 'ng: ';
}
echo microtime();

exit;
?>

 

crie um novo arquivo tmp1.php ou qualquer outro nome, coloque esse script e execute

 

veja o que retorna.

 

se aparecer 'ok'

provavelmente não há problema de acesso e leitura ao arquivo.

 

faça o teste poste o resultado

 

 

Isto e um otserv tibia eu fundi dois mapas e o mapa editor ja fundi obrigatoriamente as houses.xml criando um novo a partir da fusão o que me entriga mais e que quando era apenas um mapa as houses funcionava perfeitamente no site apos a fusão naum funcionou mais nem com o mapa que anteriormente funcionava.

 

Quanto ao teste ele mostrou o memo resultado.

 

House file not found: C:/Documents and Settings/Clayton/Desktop/bakp/data/world/test-house.xml

houses.php on line: 23

Script was terminated because something unexpected happened. You can report this, if you think it's a bug.

Compartilhar este post


Link para o post
Compartilhar em outros sites

como executou o teste ?

 

a mensagem de erro parece não ter relação alguma com o exemplode teste que postei..

 

você não criou um novo arquivo chamado tmp1.php ?

 

faça o tste separadamente apenas para eliminar outras possibilidades de erro, para evitar perda de tempo

Compartilhar este post


Link para o post
Compartilhar em outros sites

como executou o teste ?

 

a mensagem de erro parece não ter relação alguma com o exemplode teste que postei..

 

você não criou um novo arquivo chamado tmp1.php ?

 

faça o tste separadamente apenas para eliminar outras possibilidades de erro, para evitar perda de tempo

Criei o arquivo como você disse coloquei dentro do htdocs apenas ele e tentei executa-lo agora pelo browse assim

neste caso apareceu url naum encontrada

 

Como executo ele faz tempo que você notou que sou um noob e naum entendo nada de php obrigado por se dispor a me ajudar.

Compartilhar este post


Link para o post
Compartilhar em outros sites

faça outro teste

 

no browser, acesse ou clique no link abaixo

 

http://localhost

e

http://127.0.0.1

 

 

poste que o retornou

Segue a resposta ae amigo;

 

Index of /

 

Icon Name Last modified Size Description[ ] tmp1.php 05-Apr-2009 18:56 192

 

Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 Server at localhost Port 80

Compartilhar este post


Link para o post
Compartilhar em outros sites

você criou o arquivo de teste chamdo tmp1.php

e tentou acessar por um nome que nao existe:

acesse http://localhost/tmp1.php

 

..

 

Depois de muito tempo... aeew consegui acessar mas...

 

Warning: file(C:/Documents and Settings/Aicrag-01/Desktop/bakp/data/world/test-house.xml) [function.file]: failed to open stream: No such file or directory in C:\xampp\htdocs\tmp1.php on line 4

ng: 0.59999900 1239195788

Compartilhar este post


Link para o post
Compartilhar em outros sites

chegamos ao mesmo ponto:

C:/Documents and Settings/Aicrag-01/Desktop/bakp/data/world/test-house.xml

verificou se o arquivo existe ?

 

faça um teste simples

 

 

INICIAR - EXECUTAR -

digite: "C:/Documents and Settings/Aicrag-01/Desktop/bakp/data/world/test-house.xml" ( sem aspas e, pressione ENTER )

 

se o arquivo realmente existir ele abrirá na sua tela.

 

obs: o teste acima é independente do php ou apache.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.