Welcome aboard Visitor...

Daily Screenshot

Server Costs Target


Target met!

Latest Topics

- Anyone still playing from a decade ago or longer? »
- Game still active. NICE! »
- Password resett »
- Darkspace Idea/Opinion Submission Thread »
- Rank Bug maybe? »
- Next patch .... »
- Nobody will remember me...but. »
- 22 years...asking for help from one community to another »
- DS on Ubuntu? »
- Medal Breakpoints »

Development Blog

- Roadmap »
- Hello strangers, it’s been a while... »
- State of DarkSpace Development »
- Potential planetary interdictor changes! »
- The Silent Cartographer »

Combat Kills

Combat kills in last 24 hours:
No kills today... yet.

Upcoming Events

- Weekly DarkSpace
05/04/24 +6.3 Days

Search

Anniversaries

14th - wolf420

Social Media

Why not join us on Discord for a chat, or follow us on Twitter or Facebook for more information and fan updates?

Network

DarkSpace
DarkSpace - Beta
Palestar

[FAQ
Forum Index » » Soap Box » » My PHP Game
Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 Next Page )
 Author My PHP Game
lightning[Voyager][ A ]
Cadet

Joined: August 04, 2004
Posts: 419
From: CANADA. QUEBEC
Posted: 2005-08-17 19:01   
Quote:

On 2005-08-16 12:20, BackSlash (Give F Clothes/Box) wrote


.. there goes all my bandwidth




HAHAHA


[ This Message was edited by: lightning[Voyager][ A ] on 2005-08-17 19:01 ]
_________________

[ DARKSPACE STAFF ] Website & News Editor / DarkSpace.net [ FRANÇAIS ]

  Email lightning[Voyager][ A ]   Goto the website of lightning[Voyager][ A ]
kenetiks
Admiral
Galactic Navy


Joined: November 21, 2001
Posts: 1130
From: Bandcamp
Posted: 2005-08-17 19:13   
The cookie thing about reentering your credentials was easily fixable, but in the corrected code I see it's already been fixed.

So this post is essentially pointless.

Oh well... +1
_________________


  Email kenetiks   Goto the website of kenetiks
Bobamelius
Grand Admiral
Galactic Navy


Joined: October 08, 2002
Posts: 2074
From: Ohio
Posted: 2005-08-17 21:50   
Heh, I already play too much Utopia...
_________________


  Email Bobamelius
Drafell
Grand Admiral
Mythica

Joined: May 30, 2003
Posts: 2449
From: United Kingdom
Posted: 2005-08-18 06:14   
Got some info on the planned planet stats.

Size - Max structures - Start Population

Tiny - 1000 - 100
Small - 5000 - 200
Medium - 10000 - 500
Large - 25000 - 1000
Huge - 50000 - 2000


Class - Pop Growth Multiplier - Resource Mult. - Farms Mult.

Inhospitable - 0.001 - 1.5 - 0.1
Barren - 0.0025 - 0.2 - 0.2
Ice - 0.005 - 0.1 - 0.5
Arid - 0.007 - 0.8 - 0.7
Ocean - 0.009 - 0.4 - 0.8
Terran - 0.02 - 1.0 - 1.2


Population will grow by the multiplier amount each turn.
Population growth is also affected by the tax level you set (100% tax = 0% growth, 10% tax = 100% growth, 0% tax = 110% growth)

Resource output is increased by building mines. Resource output is 10 units per turn (+/- res multiplier and res tech).
Resources are shared across all your planets and are used for building structures and ships.

Each 100 population require 10 units of food per turn. Each farm produces 10 units of food per turn (+/- Farm mult. and technology level).
Each ship requires an amount of food to support it each turn.

Scout = 1 food
Corvette = 2 food
Frigate = 3 food
Destroyer = 5 food
Cruiser = 8 food
Dreadnought = 12 food


Factions:-

Each faction will have its own bonuses and drawbacks. Being based on the DarkSpace universe some of these should be pretty obvious and as yet are not set in stone.

Indpendent = No changes
K'luth = +10% attack effectiveness, -10% defense effectiveness, +10% production, -5% tech effectiveness.
ICC = +10% defense effectivenss, +10% resource output, -10% tax
UGTO = +10% tax output, +5% production, -10% tech effectiveness
Pirate = +10% attack effectiveness, +5% production, - 5% tax effectiveness, -5% food output.

[ This Message was edited by: Drafell on 2005-08-18 06:25 ]
_________________
It's gone now, no longer here...Yet still I see, and still I fear.rnrn
rnrn
DarkSpace Developer - Retired

  Goto the website of Drafell
BackSlash
Marshal
Galactic Navy


Joined: March 23, 2003
Posts: 11183
From: Bristol, England
Posted: 2005-08-18 09:24   
Message for drafell:

Having some SQL database issues on my web server. For some reason (you'll see it), the database "TEST" was made, with some crappy pokemon stuff in. I dropped the tables, but cant drop the database as I dont "OWN" it. I've emailed the guys, but for some reason, all the users in fleetsList are gone, and PlanetList is empty also. Although the tables are still there.


*goes off to repair his forums*


[ This Message was edited by: BackSlash (Give F Clothes/Box) on 2005-08-18 09:24 ]
_________________


Kazix Gaians
Admiral

Joined: March 04, 2004
Posts: 29
From: liverpool, UK
Posted: 2005-08-18 18:23   
it sounds like fun draf
_________________
Colonel A: Just like my grandmother used to say \"if at first you dont succeed...\"
Colonel B: Try a larger thermo nucluer bomb
Colonel A: Excaxtly


Drafell
Grand Admiral
Mythica

Joined: May 30, 2003
Posts: 2449
From: United Kingdom
Posted: 2005-08-19 16:06   
Onto a really difficult section of coding dealing with the build processing and verification. Decided to do this before the explorer section as peoples Fleets will die if the planets cannot support them.
_________________
It's gone now, no longer here...Yet still I see, and still I fear.rnrn
rnrn
DarkSpace Developer - Retired

  Goto the website of Drafell
BackSlash
Marshal
Galactic Navy


Joined: March 23, 2003
Posts: 11183
From: Bristol, England
Posted: 2005-08-19 16:30   
ravenwarriors.com 2.77 Gig
drafell.ravenwarriors.com 0.00 Meg
dsgalaxy.ravenwarriors.com 4.68 Meg
Total 2.78 Gig

OMGZOR STOP STEALINGS BANDWIDTH!
_________________


Drafell
Grand Admiral
Mythica

Joined: May 30, 2003
Posts: 2449
From: United Kingdom
Posted: 2005-08-19 19:06   
Dum-de-dum nothing to see here.

[ This Message was edited by: Drafell on 2005-08-19 19:54 ]
_________________
It's gone now, no longer here...Yet still I see, and still I fear.rnrn
rnrn
DarkSpace Developer - Retired

  Goto the website of Drafell
Jar Jar Binks
Grand Admiral

Joined: December 25, 2001
Posts: 556
Posted: 2005-08-19 19:40   
Quote:

On 2005-08-19 16:30, BackSlash *Jack* wrote:
ravenwarriors.com 2.77 Gig
drafell.ravenwarriors.com 0.00 Meg
dsgalaxy.ravenwarriors.com 4.68 Meg
Total 2.78 Gig

OMGZOR STOP STEALINGS BANDWIDTH!





lol, ur gonna pop ur bandwith cap in notime when this game is done
_________________


Drafell
Grand Admiral
Mythica

Joined: May 30, 2003
Posts: 2449
From: United Kingdom
Posted: 2005-08-19 22:06   
in theory this should all work ok... but... planets do not seem to be able to build more than one structure per turn....

";
}
ELSEIF($const_res>$fleet_res) {
$msg_1= "";
}
ELSEIF($total_buildings>=$planet_space) {
$msg_1="";
}
ELSE {
$new_const=$planetConst+1;
$fleet_credits=$fleet_credits-$const_cost;
$fleet_res=$fleet_res-$const_res;

$update_planet=mysql_query("UPDATE planetList SET planetConst='$new_const' WHERE planetID='$planetID'");
$update_fleetinfo=mysql_query("UPDATE fleetsList SET fleetCredits='$fleet_credits',fleetRes='$fleet_res' WHERE fleetID='$owner'");

$msg_1="";

}
}

//Build Farms...
while($turnGo=="1" AND $build_farms>0 AND $build_farms<=$max_build) {
$farm_cost=1500;
$farm_res=500;
if($farm_cost>$fleet_credits) {
$msg_2= "";
}
ELSEIF($farm_res>$fleet_res) {
$msg_2= "";
}
ELSEIF($total_buildings>=$planet_space) {
$msg_2="";
}
ELSE {
$new_farm=$planetFarms+1;
$fleet_credits=$fleet_credits-$farm_cost;
$fleet_res=$fleet_res-$farm_res;
$build_farms=$build_farms-1;
$max_build=max_build-1;

$update_planet=mysql_query("UPDATE planetList SET planetFarms='$new_farm' WHERE planetID='$planetID'");
$update_fleetinfo=mysql_query("UPDATE fleetsList SET fleetCredits='$fleet_credits',fleetRes='$fleet_res' WHERE fleetID='$owner'");

$msg_2="";

}

}

//Build Mines
while($turnGo=="1" AND $build_mines>0 AND $build_mines<=$max_build) {
$mine_cost=1500;
$mine_res=500;
if($mine_cost>$fleet_credits) {
$msg_3= "";
}
ELSEIF($mine_res>$fleet_res) {
$msg_3= "";
}
ELSEIF($total_buildings>=$planet_space) {
$msg_3="";
}
ELSE {
$new_mine=$planetMines+1;
$fleet_credits=$fleet_credits-$mine_cost;
$fleet_res=$fleet_res-$mine_res;
$build_mines=$build_mines-1;
$max_build=$max_build-1;

$update_planet=mysql_query("UPDATE planetList SET planetMines='$new_mine' WHERE planetID='$planetID'");
$update_fleetinfo=mysql_query("UPDATE fleetsList SET fleetCredits='$fleet_credits',fleetRes='$fleet_res' WHERE fleetID='$owner'");

$msg_3="";

}
}

//Build Facts
while($turnGo=="1" AND $build_facts>0 AND $build_facts<=$max_build) {
$fact_cost=1500;
$fact_res=500;
if($fact_cost>$fleet_credits) {
$msg_4= "";
}
ELSEIF($fact_res>$fleet_res) {
$msg_4= "";
}
ELSEIF($total_buildings>=$planet_space) {
$msg_4="";
}
ELSE {
$new_fact=$planetFacts+1;
$fleet_credits=$fleet_credits-$fact_cost;
$fleet_res=$fleet_res-$fact_res;
$builf_facts=$build_facts-1;
$max_build=$max_build-1;

$update_planet=mysql_query("UPDATE planetList SET planetFacts='$new_fact' WHERE planetID='$planetID'");
$update_fleetinfo=mysql_query("UPDATE fleetsList SET fleetCredits='$fleet_credits',fleetRes='$fleet_res' WHERE fleetID='$owner'");

$msg_4="";

}
}

//Build Labs
while($turnGo=="1" AND $build_labs>0 AND $build_labs<=$max_build) {
$labs_cost=1500;
$labs_res=500;
if($labs_cost>$fleet_credits) {
$msg_5="";
}
ELSEIF($labs_res>$fleet_res) {
$msg_5="";
}
ELSEIF($total_buildings>=$planet_space) {
$msg_5="";
}
ELSE {
$new_labs=$planetLabs+1;
$fleet_credits=$fleet_credits-$labs_cost;
$fleet_res=$fleet_res-$labs_res;
$build_labs=$build_labs-1;
$max_build.=$max_build-1;

$update_planet=mysql_query("UPDATE planetList SET planetLabs='$new_labs' WHERE planetID='$planetID'");
$update_fleetinfo=mysql_query("UPDATE fleetsList SET fleetCredits='$fleet_credits',fleetRes='$fleet_res' WHERE fleetID='$owner'");

$msg_5="";

}
}

//Build Def
while($turnGo=="1" AND $build_def>0 AND $build_def<=$max_build) {
$def_cost=1500;
$def_res_res=500;
if($def_cost>$fleet_credits) {
$msg_6="";
}
ELSEIF($def_res>$fleet_res) {
$msg_6="";
}
ELSEIF($total_buildings>=$planet_space) {
$msg_6="";
}
ELSE {
$new_def=$planetDef+1;
$fleet_credits=$fleet_credits-$def_cost;
$fleet_res=$fleet_res-$def_res;
$max_build=$max_build-1;
$build_def=$build_def-1;

$update_planet=mysql_query("UPDATE planetList SET planetDef='$new_def' WHERE planetID='$planetID'");
$update_fleetinfo=mysql_query("UPDATE fleetsList SET fleetCredits='$fleet_credits',fleetRes='$fleet_res' WHERE fleetID='$owner'");

$msg_6="";

}
}

$msgs.="$msg_1" . "$msg_2" . "$msg_3" . "$msg_4" . "$msg_5" . "$msg_6";
}

// turn >1
} ELSE {
$turns_low= "You do not have enough turns to perform this action";

}
include ('dsg_files/processturn.php');
}
Quote:

if($execTurn=="1") {
//check to see if there are enough turns
$getStartTime = mysql_query("SELECT gameStart, gameSpeed FROM coreData WHERE gameID='$game1'");
list($gameStart, $gameSpeed) = mysql_fetch_array($getStartTime);
$currTime= date("U");
$turns = (($currTime-$gameStart)/$gameSpeed)-$fleetTime;

if ($turns>=1) {
$getPlanetInfo = mysql_query("SELECT planetID, planetName, planetType, planetSize, planetPop, planetConst, planetFarms, planetMines, planetFacts, planetLabs, planetDefense FROM planetList WHERE planetOwner='$owner'");

while (list($planetID, $planetName, $planetType, $planetSize, $planetPop, $planetConst, $planetFarms, $planetMines, $planetFacts, $planetLabs, $planetDefense) = mysql_fetch_array($getPlanetInfo)) {

$build_const=$_POST['build_const' . $planetID];
$build_farms=$_POST['build_farms' . $planetID];
$build_mines=$_POST['build_mines' . $planetID];
$build_facts=$_POST['build_facts' . $planetID];
$build_labs=$_POST['build_labs' . $planetID];
$build_def=$_POST['build_def' . $planetID];
$max_build=$_POST['max_build' . $planetID];
$total_buildings=$planetConst +$planetFarms+$planetMines +$planetFacts+$planetLabs+$planetDefense;
$space_check=mysql_query("SELECT maxStruc FROM sizeRef WHERE planSize='$planetSize'");
$planet_space=mysql_fetch_row($space_check);
$turnGo="1";
echo $max_build;


//Build construction
if($build_const>=1) {
$const_cost=1500;
$const_res=500;
$turnGo="0";
if($const_cost>$fleet_credits) {
$msg_1= "
Unable to build Construction Facility on $planetName as you do not have enough credits.
Unable to build Construction Facility on $planetName as you do not have enough resources.
Unable to build Constuction Facility on $planetName as there is no space!!
A Construction Facility has been built on $planetName. This cost $const_cost credits and $const_res resources.
Unable to build Farm on $planetName as you do not have enough credits.
Unable to build Farm on $planetName as you do not have enough resources.
Unable to build Farm on $planetName as there is no space!!
A Farm has been built on $planetName. This cost $farm_cost credits and $farm_res resources.
Unable to build Mine on $planetName as you do not have enough credits.
Unable to build Mine on $planetName as you do not have enough resources.
Unable to build Mine on $planetName as there is no space!!
A Mine has been built on $planetName. This cost $mine_cost credits and $mine_res resources.
Unable to build Factory on $planetName as you do not have enough credits.
Unable to build Factory on $planetName as you do not have enough resources.
Unable to build Factory on $planetName as there is no space!!
A Factory has been built on $planetName. This cost $fact_cost credits and $fact_res resources.
Unable to build Research Laboratory on $planetName as you do not have enough credits.
Unable to build Research Laboratory on $planetName as you do not have enough resources.
Unable to build Research Laboratory on $planetName as there is no space!!
A Research Laboratory has been built on $planetName. This cost $labs_cost credits and $labs_res resources.
Unable to build Defense Base on $planetName as you do not have enough credits.
Unable to build Defense Base on $planetName as you do not have enough resources.
Unable to build Defense Base on $planetName as there is no space!!
A Defense Base has been built on $planetName. This cost $def_cost credits and $def_res resources.


_________________
It's gone now, no longer here...Yet still I see, and still I fear.rnrn
rnrn
DarkSpace Developer - Retired

  Goto the website of Drafell
Lark of Serenity
Grand Admiral
Raven Warriors

Joined: June 02, 2002
Posts: 2516
Posted: 2005-08-19 22:11   
play options, explore.

you currently have 1 scout ship available
how many ships would you like to send out?

and then theres no box to say how many id like =P
_________________
Admiral Larky, The Wolf
Don't play with fire, play with Larky.
Raven Division Command - 1st Division


dargo
1st Rear Admiral

Joined: November 11, 2004
Posts: 3
From: dargo
Posted: 2005-08-19 22:30   
any errors?
_________________
I may be small but allow me to remind you that only serves to put me at castration level.

  Email dargo
BackSlash
Marshal
Galactic Navy


Joined: March 23, 2003
Posts: 11183
From: Bristol, England
Posted: 2005-08-20 03:39   
Draf, turns left is different on the build page from the rest.
_________________


Drafell
Grand Admiral
Mythica

Joined: May 30, 2003
Posts: 2449
From: United Kingdom
Posted: 2005-08-20 10:01   
Turns left is calculated correctly on the build page. The other pages don't update atm.
_________________
It's gone now, no longer here...Yet still I see, and still I fear.rnrn
rnrn
DarkSpace Developer - Retired

  Goto the website of Drafell
Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 Next Page )
Page created in 0.026325 seconds.


Copyright © 2000 - 2024 Palestar Inc. All rights reserved worldwide.
Terms of use - DarkSpace is a Registered Trademark of PALESTAR