RageOnline Repack V0.9 Bugfixes.

Status
Not open for further replies.

mac

Newbie Spellweaver
Joined
Jul 31, 2008
Messages
5
Reaction score
0
I installed that server in localnet. And find lot of bugs. Not all included, because I don't remember them.

0. Sorry for my english ;)
1. Problem: Max Systems in galaxy set to 9999 in includes\constants.php and admin\constants.php like that
Code:
define('MAX_SYSTEM_IN_GALAXY'     , 9999);
but when we try go to system more than 50, game rediects us to 499.
Fix:
in \constants.php and admin\constants.php set
Code:
define('MAX_SYSTEM_IN_GALAXY'     , 9999);
to:
Code:
define('MAX_SYSTEM_IN_GALAXY'     , 999);
includes\functions\ShowGalaxySelector.php
replace:
Code:
	if ($Galaxy > 1) {
		$Galaxy = 9;
	}
	if ($Galaxy < 1) {
		$Galaxy = 1;
	}
	if ($System > 50) {
		$System = 499;
	}
	if ($System < 1) {
		$System = 1;
	}
with:
Code:
	if ($Galaxy > 1) {
		$Galaxy = 1;
	}
	if ($Galaxy < 1) {
		$Galaxy = 1;
	}
	if ($System > 999) {
		$System = 999;
	}
	if ($System < 1) {
		$System = 1;
	}
2. Problem: In alliance.php?mode=memberslist if not alliancemaker status not right.
Fix: Line 442,443 in alliance.php decrease $u['ally_rank_id'] by 1
Code:
			} elseif (isset($allianz_raenge[$u['ally_rank_id']-1]['name'])) {
				$u["ally_range"] = $allianz_raenge[$u['ally_rank_id']-1]['name'];
3. Problem: in resources.php, when produced energy less than spent energy, energy produced with "-" sign.
Fix:
includes\functions\BuildRessourcePage.php
Line near 130.
Code:
			if (100==$post_porcent) {
			$CurrRow['energy_type']              = colorNumber ( $CurrRow['energy_type']    );
			} else {
			$CurrRow['energy_type']              = colorNumber ( -$CurrRow['energy_type']    );
			}
4. Problem: In stat.php?start={user_rank} always shown rank 1-100 selected.
Code:
Fix: In stat.php Near line 80
		for ($Page = 0; $Page <= $LastPage; $Page++) {
			$PageValue      = ($Page * 100) + 1;
			$PageRange      = $PageValue + 99;
			$parse['range'] .= "<option value=\"". $PageValue ."\"". (($range == $PageValue) ? " SELECTED" : "") .">". $PageValue ."-". $PageRange ."</option>";
		}
I'l try to write more fixes.
From Russia with love.
P.S. We are not bobmeb Georgia!
 
Problem: Engeneer increases not only generated energy, but consumed energy too.
Fix:
includes/functions/PlanetResourceUpdate.php
line about 80: replace
Code:
$energy    = floor( eval ( $ProdGrid[$ProdID]['formule']['energy']    ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_ingenieur'] * 0.05 ) ) );
Code:
			if ($ProdID<4) {
				$energy    = floor( eval ( $ProdGrid[$ProdID]['formule']['energy']    ) * ( $game_config['resource_multiplier'] ) * ( 1 ) );
			} else {
				$energy    = floor( eval ( $ProdGrid[$ProdID]['formule']['energy']    ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_ingenieur'] * 0.05 ) ) );
			}
includes/functions/PlanetResourceUpdate.php
line near 35. Remove selected red:
Code:
			if ($ProdID < 4) {
				$Caps['energy_used']   +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['energy']    ) * ( $game_config['resource_multiplier'] ) * ( 1  [COLOR="Red"]+ ( $CurrentUser['rpg_ingenieur'] * 0.05 ) [/COLOR]) );

From Russia with love.
 
Thank you ;)

I'l try to write more fixes.
From Russia with love.
P.S. We are not bobmeb Georgia!

Президенту Грузии Михаилу Саакашвили - кровная месть до 7го колена обеспечена !!!
 
Problem: Trouble, if planets name consist single quote (') character. On galaxy.php thys symbol not converted into '
Fix: includes/functions/GalaxyRowPlanet.php replace
Code:
$Result .= $lang['gl_planet'] ." ". $GalaxyRowPlanet["name"] ." [".$Galaxy.":".$System.":".$Planet."]";
Code:
$Result .= $lang['gl_planet'] ." ". [COLOR="Red"]htmlentities($GalaxyRowPlanet["name"], ENT_QUOTES)[/COLOR] ." [".$Galaxy.":".$System.":".$Planet."]";
From Russia with love.

Приятно видеть русских, на этом ресурсе :)
Саратов [64 регион], ВТ.
 
Problem: Engeneer increases not only generated energy, but consumed energy too.
Same problem with geologist:
includes/functions/BuildRessourcePage.php
replace
Code:
				$metal     = floor( eval ( $ProdGrid[$ProdID]['formule']['metal']     ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
				$crystal   = floor( eval ( $ProdGrid[$ProdID]['formule']['crystal']   ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
				$deuterium = floor( eval ( $ProdGrid[$ProdID]['formule']['deuterium'] ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
with
Code:
			if ($ProdID<4) {
				$metal     = floor( eval ( $ProdGrid[$ProdID]['formule']['metal']     ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
				$crystal   = floor( eval ( $ProdGrid[$ProdID]['formule']['crystal']   ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
				$deuterium = floor( eval ( $ProdGrid[$ProdID]['formule']['deuterium'] ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
			} else {
				$metal     = floor( eval ( $ProdGrid[$ProdID]['formule']['metal']     ) * ( $game_config['resource_multiplier'] ) * ( 1  ) );
				$crystal   = floor( eval ( $ProdGrid[$ProdID]['formule']['crystal']   ) * ( $game_config['resource_multiplier'] ) * ( 1  ) );
				$deuterium = floor( eval ( $ProdGrid[$ProdID]['formule']['deuterium'] ) * ( $game_config['resource_multiplier'] ) * ( 1  ) );
			}
includes/functions/PlanetResourceUpdate.php
replace
Code:
				$Caps['metal_perhour']     +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['metal']     ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
				$Caps['crystal_perhour']   +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['crystal']   ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
				$Caps['deuterium_perhour'] +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['deuterium'] ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
Code:
			if ($ProdID < 4) {
				$Caps['metal_perhour']     +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['metal']     ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
				$Caps['crystal_perhour']   +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['crystal']   ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
				$Caps['deuterium_perhour'] +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['deuterium'] ) * ( $game_config['resource_multiplier'] ) * ( 1 + ( $CurrentUser['rpg_geologue']  * 0.05 ) ) );
			} elseif ($ProdID >= 4 ) {
				$Caps['metal_perhour']     +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['metal']     ) * ( $game_config['resource_multiplier'] ) * ( 1 ) );
				$Caps['crystal_perhour']   +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['crystal']   ) * ( $game_config['resource_multiplier'] ) * ( 1 ) );
				$Caps['deuterium_perhour'] +=  floor( eval  ( $ProdGrid[$ProdID]['formule']['deuterium'] ) * ( $game_config['resource_multiplier'] ) * ( 1 ) );
			}
 
Problem: When sorting alliance members by points, receive an error
"Erreur, merci de contacter l'admin. Erreur n
 
Last edited:
Status
Not open for further replies.
Back