Kommunauty
Connexion
Inscription

Phalange


SnakeFear Messages : 112

Sur le jeu de Homer et moi nous avons aucun souci de ce coté la.

mardi 18 mars 2014

oasis Messages : 55

Merci de ta réponse je suis a moitié rassuré dans ce cas . Pouvons nous nous entraider ? Voici le miens si vous voulez voir ce que j'ai fais sur cette base de Xnova : http://battlestars.fr

mercredi 19 mars 2014

Homer Messages : 1814

Quand je veux m'inscrire :

Error: SMTP Error: Could not authenticate._

File: /homez.565/aionecly/www/includes/classes/class.phpmailer.php_

Line: 814_

PHP-Version: 5.4.24_

PHP-API: fpm-fcgi_

Battlestars Version: Redesign_

Quand je veux me logguer :

Error: El planeta principal no existe!_

File: /homez.565/aionecly/www/includes/common.php_

Line: 138_

PHP-Version: 5.4.24_

PHP-API: fpm-fcgi_

Battlestars Version: 4 Redesign_

jeudi 20 mars 2014 (Dernière édition jeudi 20 mars 2014)

oasis Messages : 55

Rolala je regarde d'ou ca peut venir:s

vendredi 21 mars 2014

oasis Messages : 55

Voila, j'ai remis la fonction php mail mais il me semble qu'elle ne fonctionne pas.

Est il possible de retester ?

vendredi 21 mars 2014

oasis Messages : 55

Toujours le meme probleme, c'est rageant .

N'est il pas possible que ce soit le "exclude mission" qui soit en cause ? :

# FIX PHALANX 5.7
$ExcludeMissions = "";
if(INV_PHALANX_MISSIONS != "")
$ExcludeMissions = " AND fleet_mission NOT IN(".INV_PHALANX_MISSIONS.")";

$FleetToTarget  = $db->query("SELECT * FROM ".FLEETS." WHERE `fleet_end_type` = '1' AND `fleet_start_id` = '".$TargetInfo['id']."' OR `fleet_end_id` = '".$TargetInfo['id']."' ORDER BY `fleet_start_time`;");
print_r($FleetToTarget);
$fpage = array();
$FleetData = array();
$_SESSION['USER']['spy_tech'] = 8;
while ($FleetRow = $db->fetch_array($FleetToTarget))
dimanche 23 mars 2014

Homer Messages : 1814

essai ça, et montre moi ce que tu vois.

<?php

/**
 _  \_/ |\ | /¯¯\ \  / /\    |¯¯) |_¯ \  / /¯¯\ |  |   |´¯|¯` | /¯¯\ |\ |5
 ¯  /¯\ | \| \__/  \/ /--\   |¯¯\ |__  \/  \__/ |__ \_/   |   | \__/ | \|Core.
 * @author: Copyright (C) 2011 by Brayan Narvaez (Prinick) developer of xNova Revolution
 * @author web: http://www.bnarvaez.com
 * @link: http://www.xnovarev.com
 
 * @package 2Moons
 * @author Slaver <slaver7@gmail.com>
 * @copyright 2009 Lucky <douglas@crockford.com> (XGProyecto)
 * @copyright 2011 Slaver <slaver7@gmail.com> (Fork/2Moons)
 * @license http://www.gnu.org/licenses/gpl.html GNU GPLv3 License
 * @version 1.3 (2011-01-21)
 * @link http://code.google.com/p/2moons/

 * Please do not remove the credits
*/
function ShowPhalanxPage()
{
global $USER, $PLANET, $LNG, $db, $UNI;

include_once(ROOT_PATH.'includes/classes/class.FlyingFleetsTable.php');
include_once(ROOT_PATH.'includes/classes/class.GalaxyRows.php');

$FlyingFleetsTable = new FlyingFleetsTable();
$GalaxyRows = new GalaxyRows();

$template = new template();
$template->isPopup(true);
$template->loadscript('phalanx.js');
$template->execscript('FleetTime();window.setInterval("FleetTime()", 1000);');

$PhRange = $GalaxyRows->GetPhalanxRange($PLANET['phalanx']);
$Galaxy = request_var('galaxy', 0);
$System = request_var('system', 0);
$Planet   = request_var('planet', 0);

if($Galaxy != $PLANET['galaxy'] || $System > ($PLANET['system'] + $PhRange) || $System < max(1, $PLANET['system'] - $PhRange))
{
$template->message($LNG['px_out_of_range'], false, 0, true);
exit;
}

if ($PLANET['deuterium'] < 5000)
{
$template->message($LNG['px_no_deuterium'], false, 0, true);
exit;
}

$PLANET['deuterium'] -= 5000;
$db->query("UPDATE ".PLANETS." SET `deuterium` = `deuterium` - '5000' WHERE `id` = '".$PLANET['id']."';");
$TargetInfo = $db->uniquequery("SELECT id, name, id_owner FROM ".PLANETS." WHERE`universe` = '".$UNI."' AND `galaxy` = '".$Galaxy."' AND `system` = '".$System."' AND `planet` = '".$Planet."' AND `planet_type` = '1';");
if(empty($TargetInfo))
{
$template->message($LNG['px_out_of_range'], false, 0, true);
exit;
}

# FIX PHALANX 5.7
$ExcludeMissions = "";
if(INV_PHALANX_MISSIONS != "")
$ExcludeMissions = " AND fleet_mission NOT IN(".INV_PHALANX_MISSIONS.")";
$FleetToTarget  = $db->query("SELECT * FROM ".FLEETS." WHERE `fleet_end_type` = '1' AND `fleet_start_id` = '".$TargetInfo['id']."' OR `fleet_end_id` = '".$TargetInfo['id']."' ORDER BY `fleet_start_time`;");

$fpage = array();
$FleetData = array();
$_SESSION['USER']['spy_tech'] = 8;
while ($FleetRow = $db->fetch_array($FleetToTarget))
{
print_r($FleetRow);
}
exit;
while ($FleetRow = $db->fetch_array($FleetToTarget))
{
$Record++;

$IsOwner = ($FleetRow['fleet_owner'] == $TargetInfo['id_owner']) ? true : false;

$FleetRow['fleet_resource_metal']      = 0;
$FleetRow['fleet_resource_crystal']    = 0;
$FleetRow['fleet_resource_deuterium'] = 0;
$FleetRow['fleet_resource_norio']     = 0;
$FleetRow['fleet_resource_darkmatter'] = 0;

if ($FleetRow['fleet_mess'] == 0 && $FleetRow['fleet_start_time'] > TIMESTAMP) {
$fpage[$FleetRow['fleet_start_time'].$FleetRow['fleet_id']] = $FlyingFleetsTable->BuildFleetEventTable($FleetRow, 0, $IsOwner, 'fs', $Record);
$FleetData[$FleetRow['fleet_start_time'].$FleetRow['fleet_id']] = $fpage[$FleetRow['fleet_start_time'].$FleetRow['fleet_id']]['fleet_return'];
}
if ($FleetRow['fleet_mission'] == 4)
continue;

if ($FleetRow['fleet_mess'] != 1 && $FleetRow['fleet_end_stay'] > TIMESTAMP) {
$fpage[$FleetRow['fleet_end_stay'].$FleetRow['fleet_id']] = $FlyingFleetsTable->BuildFleetEventTable($FleetRow, 2, $IsOwner, 'ft', $Record);
$FleetData[$FleetRow['fleet_end_stay'].$FleetRow['fleet_id']] = $fpage[$FleetRow['fleet_end_stay'].$FleetRow['fleet_id']]['fleet_return'];
}

if ($IsOwner == false)
continue;

if ($FleetRow['fleet_end_time'] > TIMESTAMP) {
$fpage[$FleetRow['fleet_end_time'].$FleetRow['fleet_id']] = $FlyingFleetsTable->BuildFleetEventTable($FleetRow, 1, $IsOwner, 'fe', $Record);
$FleetData[$FleetRow['fleet_end_time'].$FleetRow['fleet_id']] = $fpage[$FleetRow['fleet_end_time'].$FleetRow['fleet_id']]['fleet_return'];
}
}
$_SESSION['USER']['spy_tech'] = $USER['spy_tech'];

$db->free_result($FleetToTarget);

foreach($FleetData as $key => $Val) {
if(empty($FleetData[$key]['fleet_descr'])) {
unset($FleetData[$key]);
unset($fpage[$key]);
}
}

if(!empty($fpage))
ksort($fpage);

$template->assign_vars(array(
'phl_pl_galaxy'   => $Galaxy,
'phl_pl_system'   => $System,
'phl_pl_place'    => $Planet,
'phl_pl_name'     => $TargetInfo['name'],
'fleets' => $fpage,
'FleetData' => json_encode($FleetData),
'px_scan_position' => $LNG['px_scan_position'],
'px_no_fleet' => $LNG['px_no_fleet'],
'px_fleet_movement' => $LNG['px_fleet_movement'],
));

$template->show('phalax_body.tpl');
}
?>
dimanche 23 mars 2014

oasis Messages : 55

Voici le popup que ca me retourne :

Array ( [fleet_id] => 2238 [fleet_owner] => 59 [fleet_mission] => 7 [fleet_amount] => 1 [fleet_array] => 208,1; [fleet_universe] => 1 [fleet_start_time] => 1395597279 [fleet_start_id] => 91 [fleet_start_galaxy] => 1 [fleet_start_system] => 14 [fleet_start_planet] => 10 [fleet_start_type] => 1 [fleet_end_time] => 1395598663 [fleet_end_stay] => 0 [fleet_end_id] => 0 [fleet_end_galaxy] => 1 [fleet_end_system] => 150 [fleet_end_planet] => 10 [fleet_end_type] => 1 [fleet_target_obj] => 0 [fleet_resource_metal] => 0 [fleet_resource_crystal] => 0 [fleet_resource_deuterium] => 0 [fleet_resource_darkmatter] => 0 [fleet_resource_norio] => 0 [fleet_target_owner] => 0 [fleet_group] => 0 [fleet_mess] => 0 [start_time] => 1395595895 [fleet_busy] => 0 )

Sur ton jeu ca fonctionne ?

Merci de ton aide Homer

dimanche 23 mars 2014

Homer Messages : 1814

Ba là je vois 1 colonisateur qui part de 1 14 10 vers 1 150 10

Donc c'est après que ça bloque.

maintenant essai ça :

<?php

/**
 _  \_/ |\ | /¯¯\ \  / /\    |¯¯) |_¯ \  / /¯¯\ |  |   |´¯|¯` | /¯¯\ |\ |5
 ¯  /¯\ | \| \__/  \/ /--\   |¯¯\ |__  \/  \__/ |__ \_/   |   | \__/ | \|Core.
 * @author: Copyright (C) 2011 by Brayan Narvaez (Prinick) developer of xNova Revolution
 * @author web: http://www.bnarvaez.com
 * @link: http://www.xnovarev.com
 
 * @package 2Moons
 * @author Slaver <slaver7@gmail.com>
 * @copyright 2009 Lucky <douglas@crockford.com> (XGProyecto)
 * @copyright 2011 Slaver <slaver7@gmail.com> (Fork/2Moons)
 * @license http://www.gnu.org/licenses/gpl.html GNU GPLv3 License
 * @version 1.3 (2011-01-21)
 * @link http://code.google.com/p/2moons/

 * Please do not remove the credits
*/
function ShowPhalanxPage()
{
global $USER, $PLANET, $LNG, $db, $UNI;

include_once(ROOT_PATH.'includes/classes/class.FlyingFleetsTable.php');
include_once(ROOT_PATH.'includes/classes/class.GalaxyRows.php');

$FlyingFleetsTable = new FlyingFleetsTable();
$GalaxyRows = new GalaxyRows();

$template = new template();
$template->isPopup(true);
$template->loadscript('phalanx.js');
$template->execscript('FleetTime();window.setInterval("FleetTime()", 1000);');

$PhRange = $GalaxyRows->GetPhalanxRange($PLANET['phalanx']);
$Galaxy = request_var('galaxy', 0);
$System = request_var('system', 0);
$Planet   = request_var('planet', 0);

if($Galaxy != $PLANET['galaxy'] || $System > ($PLANET['system'] + $PhRange) || $System < max(1, $PLANET['system'] - $PhRange))
{
$template->message($LNG['px_out_of_range'], false, 0, true);
exit;
}

if ($PLANET['deuterium'] < 5000)
{
$template->message($LNG['px_no_deuterium'], false, 0, true);
exit;
}

$PLANET['deuterium'] -= 5000;
$db->query("UPDATE ".PLANETS." SET `deuterium` = `deuterium` - '5000' WHERE `id` = '".$PLANET['id']."';");
$TargetInfo = $db->uniquequery("SELECT id, name, id_owner FROM ".PLANETS." WHERE`universe` = '".$UNI."' AND `galaxy` = '".$Galaxy."' AND `system` = '".$System."' AND `planet` = '".$Planet."' AND `planet_type` = '1';");
if(empty($TargetInfo))
{
$template->message($LNG['px_out_of_range'], false, 0, true);
exit;
}

# FIX PHALANX 5.7
$ExcludeMissions = "";
if(INV_PHALANX_MISSIONS != "")
$ExcludeMissions = " AND fleet_mission NOT IN(".INV_PHALANX_MISSIONS.")";
$FleetToTarget  = $db->query("SELECT * FROM ".FLEETS." WHERE `fleet_end_type` = '1' AND `fleet_start_id` = '".$TargetInfo['id']."' OR `fleet_end_id` = '".$TargetInfo['id']."' ORDER BY `fleet_start_time`;");

$fpage = array();
$FleetData = array();
$_SESSION['USER']['spy_tech'] = 8;
while ($FleetRow = $db->fetch_array($FleetToTarget))
{
$Record++;

$IsOwner = ($FleetRow['fleet_owner'] == $TargetInfo['id_owner']) ? true : false;

$FleetRow['fleet_resource_metal']      = 0;
$FleetRow['fleet_resource_crystal']    = 0;
$FleetRow['fleet_resource_deuterium'] = 0;
$FleetRow['fleet_resource_norio']     = 0;
$FleetRow['fleet_resource_darkmatter'] = 0;

if ($FleetRow['fleet_mess'] == 0 && $FleetRow['fleet_start_time'] > TIMESTAMP) {
$fpage[$FleetRow['fleet_start_time'].$FleetRow['fleet_id']] = $FlyingFleetsTable->BuildFleetEventTable($FleetRow, 0, $IsOwner, 'fs', $Record);
$FleetData[$FleetRow['fleet_start_time'].$FleetRow['fleet_id']] = $fpage[$FleetRow['fleet_start_time'].$FleetRow['fleet_id']]['fleet_return'];
}
if ($FleetRow['fleet_mission'] == 4)
continue;

if ($FleetRow['fleet_mess'] != 1 && $FleetRow['fleet_end_stay'] > TIMESTAMP) {
$fpage[$FleetRow['fleet_end_stay'].$FleetRow['fleet_id']] = $FlyingFleetsTable->BuildFleetEventTable($FleetRow, 2, $IsOwner, 'ft', $Record);
$FleetData[$FleetRow['fleet_end_stay'].$FleetRow['fleet_id']] = $fpage[$FleetRow['fleet_end_stay'].$FleetRow['fleet_id']]['fleet_return'];
}

if ($IsOwner == false)
continue;

if ($FleetRow['fleet_end_time'] > TIMESTAMP) {
$fpage[$FleetRow['fleet_end_time'].$FleetRow['fleet_id']] = $FlyingFleetsTable->BuildFleetEventTable($FleetRow, 1, $IsOwner, 'fe', $Record);
$FleetData[$FleetRow['fleet_end_time'].$FleetRow['fleet_id']] = $fpage[$FleetRow['fleet_end_time'].$FleetRow['fleet_id']]['fleet_return'];
}
}
$_SESSION['USER']['spy_tech'] = $USER['spy_tech'];

$db->free_result($FleetToTarget);

print_r($FleetRow);
echo "<br />---<br />";
print_r($fpage);
echo "<br />---<br />";
print_r($FleetData);
echo "<br />---<br />";  
exit;

foreach($FleetData as $key => $Val) {
if(empty($FleetData[$key]['fleet_descr'])) {
unset($FleetData[$key]);
unset($fpage[$key]);
}
}

if(!empty($fpage))
ksort($fpage);

$template->assign_vars(array(
'phl_pl_galaxy'   => $Galaxy,
'phl_pl_system'   => $System,
'phl_pl_place'    => $Planet,
'phl_pl_name'     => $TargetInfo['name'],
'fleets' => $fpage,
'FleetData' => json_encode($FleetData),
'px_scan_position' => $LNG['px_scan_position'],
'px_no_fleet' => $LNG['px_no_fleet'],
'px_fleet_movement' => $LNG['px_fleet_movement'],
));

$template->show('phalax_body.tpl');
}
?>
lundi 24 mars 2014

oasis Messages : 55

Ah oui exact !

Et la ca retourne bien les infos mais on dirait qu'il n'affiche rien pour le "print_r($FleetRow)" que tu as mis ou c'est normal ?:

Array ( [13956857772252] => Array ( [fleet_order] => fs1 [fleet_descr] => Une de vos Flottes de la Planète OS [1:24:4] arrive sur Planète [1:120:4]. Mission: Coloniser
 1395685777 ) [13956869812252] => Array ( [fleet_order] => fe1 [fleet_descr] => Une de vos Flottes tourne autour de Planète [1:120:4] retourne sur Planète OS [1:24:4]. Mission: Coloniser
 1395686981 ) )
---
Array ( [13956857772252] => 1395685777 [13956869812252] => 1395686981 )

Je n'arrive pas a voir ce qui cloche par contre

lundi 24 mars 2014 (Dernière édition lundi 24 mars 2014)

Page suivante »