Black Nova Trader .41 Planet Display Patch
Brought to you by Sean "Broadband" McKillion
http://www.dxgaming.com
ABOUT THIS PATCH
This patch is designed to upgrade the planet display
when you are in a sector to give a little more info
rather then just the average planet tech level.
Currently the planet size (the image) and the bar
underneith it represent the average tech level of
the planet and when one goes up the other one does
as well.
This patch will seperate the planet image from the
red bar underneith it to give enhanced statistics.
The size of the planet image is now based off the
amount of colonists currently on the planet. The
more colonists the bigger the planet looks.
The red bar underneith gives the average tech level
of the planet just as it did before.
I know this isn't much of a patch but I know myself
and my players really enjoy watching our planets grow
and now we can show off when people enter our sectors
and see huge planets they'll know how much work we
put
into them.
Additionally this is great for tactics because if someone
sees an enemy planet with a really high tech level, but
a small planet, they'll know it probably isn't worth fighting
unless they think it's a bank planet.
INSTALLATION
1) Copy all the images into your images subdirectory
2) If your running Red Patch Pack 0.1i
- Overwrite main.php with the one supplied
3) If your running the origional or a different version
OPEN MAIN.PHP
-=| FIND |=-
$planettypes[0]= "tinyplanet.gif";
$planettypes[1]= "smallplanet.gif";
$planettypes[2]= "mediumplanet.gif";
$planettypes[3]= "largeplanet.gif";
$planettypes[4]= "hugeplanet.gif";
-=| COPY AFTER |=-
$planettechs[0]= "tinyplanet1.gif";
$planettechs[1]= "smallplanet1.gif";
$planettechs[2]= "mediumplanet1.gif";
$planettechs[3]= "largeplanet1.gif";
$planettechs[4]= "hugeplanet1.gif";
-=| FIND |=-
if($planetavg < 8)
$planetlevel = 0;
else if ($planetavg < 12)
$planetlevel = 1;
else if ($planetavg < 16)
$planetlevel = 2;
else if ($planetavg < 20)
$planetlevel = 3;
else
$planetlevel = 4;
}
else
$planetlevel=0;
-=| REPLACE WITH |=-
$size=$planets[$i][colonists];
if($size < 20000000)
$planetlevel = 0;
else if ($size < 40000000)
$planetlevel = 1;
else if ($size < 60000000)
$planetlevel = 2;
else if ($size < 80000000)
$planetlevel = 3;
else
$planetlevel = 4;
if($planetavg < 10)
$planettech = 0;
else if ($planetavg < 15)
$planettech = 1;
else if ($planetavg < 25)
$planettech = 2;
else if ($planetavg < 35)
$planettech = 3;
else
$planettech = 4;
}
else {
$planetlevel=0;
$planettech=0;
}
-=| FIND |=-
echo "<img src=\"images/$planettypes[$planetlevel]\"
border=0></a><BR><font size=", $basefontsize + 1, "
color=#ffffff face=\"arial\">";
-=| REPLACE WITH |=-
echo "<img src=\"images/$planettypes[$planetlevel]\"
border=0><BR><img src=\"images/$planettechs
[$planettech]\" border=0></a><BR><font size=",
$basefontsize + 1, " color=#ffffff face=\"arial\">";
FINISHED!!
Hope you enjoy this small patch and if you implement
toss an email to dxbroadband@yahoo.com and lemmie
know
how you like it!
The required images and instructions
Logged In: YES
user_id=597841
Thanks for this, it's a nice add-on