Webhilfe.info/board

Normale Version: BG Installiern klappt nicht
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Seiten: 1 2 3 4
Hi liebe Community, vielleicht könnt ihr mir helfen,
ich versuche geradae ein browsergame zu installieren um es einfach mal aus zu probieren. Doch gleich bei stufe 1 der installation bleib ich kleben.

Angegeben war :

Zitat:to install:

first you need phpMyAdmin ( http://phpmyadmin.sourceforge.net ).



setting up the database

first create a database called terranova (or if you want a different name for the db, go into database.class.php in /classes/ and change the database name in var $dbname)
now, in PHPMyAdmin, import root/terranova.sql into the database you just created
okay, now that's done go into database.class.php and change the var username/password to match your own,

creating the universe

run root/install.php and select "Create a new universe" at time of writing, none of the other installer options actually work,


Thats all folks!

So, nun habe ich alles gemacht, datenbank erstellt, namen geändert, tabellen angelegt. und dennoch funktioniert es nich. Jetzt will ich die install.php aufrufen und was passiert : WEIßER HINTERGRUND. mehr nicht. Ich finde meinen fehler einfach nicht. LINK

aber auch index.php nicht. Imemr nur weißer hintergrund. mein webspace liegt bei all-inkl, also eigendlich müsste es serverseitig gehen. Ichw eiß nicht weiter.kann mir da wer helfen? Ich gebe euch gerne zugänge, dann könnt ihr bei bedarf selber mal gucken Biggrin

MFG
joker
Puh komische Sache. Sowas finde ich ja immer nicht so pralle wenn etwas nicht geht und man bekommt nichtmal ne Fehlermeldung.

Könntest du mal den Code der install.php posten bitte?
Aber gerne doch Biggrin

Zitat:<?php

$require_login = false;
$gamescript = false;

include("common.php");

//first, check to see if the required template engine tables are there, if not create them
//if they are, check for the required installer templates, if theyre not there, again duh create them


//function to create a new universe

function CreateUniverse($numquadrants,$numsectors)
{

global $db;


//numalong = numsectors squared

$numalong = sqrt($numsectors);

for($i=1;$i<=$numquadrants;$i++)
{

$quadname = "quadrant" . $i;


$sql = "";
$sql .=
"CREATE TABLE $quadname(".
"sector_id bigint(20) NOT NULL auto_increment,".
"sector_x bigint(20) NOT NULL,".
"sector_y bigint(20) NOT NULL,".
"sector_name text NOT NULL,".
"sector_owner bigint(20) NOT NULL default 0,".
"sector_portcontents int(3) NOT NULL,".

"port enum('Y','N') DEFAULT 'N' NOT NULL," .
"planet enum('Y','N') DEFAULT 'N' NOT NULL," .
"starbase enum('Y','N') DEFAULT 'N' NOT NULL," .
"base enum('Y','N') DEFAULT 'N' NOT NULL,";

//now add the port_commodities stock column..

//cycle through commodities adding the relevent columns and values...

$comres = $db->select("*","commodities","commodity_id>0",0);

while($row = mysql_fetch_array($comres))
{

if($row[commodity_name] != "Special")
{

$sql .= "port_$row[commodity_name]_stock bigint(20) NOT NULL default 100000000,";

}

}

$sql .=
"PRIMARY KEY (sector_id)".
") TYPE=MyISAM;";

$db->query("DROP TABLE $quadname");
$db->query($sql);

//now fill the sectors...

$number = $db->select("*","commodities","commodity_id>1",0);
$numcommodities = mysql_num_rows($number);

$commoditydat = "";
for($f=1;$f<=$numcommodities;$f++)
{
$commoditydat .= ":100000000";
}

$x = 0;
$y = 1;

for($z=1;$z<=$numsectors;$z++)
{

$x++;

$portroll = Rand(1,$numcommodities);

$planetroll = Rand(1,5);
$portavailable = Rand(1,4);

if($portavailable==1)
{
$port = "Y";
}
else
{
$port = "N";
}

if($planetroll==1)
{
$planet="Y";
}
else
{
$planet="N";
}

if($x > $numalong)
{
$x=1;
$y++;
}

$insertdat = "$x:$y:unnamed:0:$portroll:$port:$planet:N:N$commoditydat";

$db->insert("$quadname","$insertdat",1);

}

}


return True;

}


if(!isset($action))
{

//generate an installer menu...

$installoptions = $page->FetchTemplate("installoptions");

$menu = newbox("Installation Options",$installoptions);

$content = $menu;

$page->Assign("content",$content);

$page->Display("template");

}
elseif($action=="newinstall")
{

}
elseif($action=="newuniverse")
{

if(!isset($step))
{

//show form
$newform = newbox("Create a new universe (options)",$page->FetchTemplate("generateuniverse"));
$page->Assign("content",$newform);
$page->Display("template");

}
elseif($step==2)
{

$returnresult = CreateUniverse($num_quads,$num_sectors);

if($returnresult = True)
{
$content = "Thankyou! your new universe has been created successfully<BR>click <A CLASS=\"nav\" HREF=\"install.php\">here</A> to return to the install script!";
}
else
{
$content = "Sorry! there was a problem creating your universe.";
}

$page->Assign("content",newbox("Creating universe (result)",$content));
$page->Display("template");

}

}

?>

das komische ist ja es geht rein garnichts, immer eißer bildschirm.
Wat passiert wenn du das als install.php nimmst ?

Code:
<?php

$require_login = false;
$gamescript = false;

include("common.php");
die('Wacken ist schon vorbei du spasti!');
//first, check to see if the required template engine tables are there, if not create them
//if they are, check for the required installer templates, if theyre not there, again duh create them


//function to create a new universe

function CreateUniverse($numquadrants,$numsectors)
{

global $db;


//numalong = numsectors squared

$numalong = sqrt($numsectors);

for($i=1;$i<=$numquadrants;$i++)
{

$quadname = "quadrant" . $i;


$sql = "";
$sql .=
"CREATE TABLE $quadname(".
"sector_id bigint(20) NOT NULL auto_increment,".
"sector_x bigint(20) NOT NULL,".
"sector_y bigint(20) NOT NULL,".
"sector_name text NOT NULL,".
"sector_owner bigint(20) NOT NULL default 0,".
"sector_portcontents int(3) NOT NULL,".

"port enum('Y','N') DEFAULT 'N' NOT NULL," .
"planet enum('Y','N') DEFAULT 'N' NOT NULL," .
"starbase enum('Y','N') DEFAULT 'N' NOT NULL," .
"base enum('Y','N') DEFAULT 'N' NOT NULL,";

//now add the port_commodities stock column..

//cycle through commodities adding the relevent columns and values...

$comres = $db->select("*","commodities","commodity_id>0",0);

while($row = mysql_fetch_array($comres))
{

if($row[commodity_name] != "Special")
{

$sql .= "port_$row[commodity_name]_stock bigint(20) NOT NULL default 100000000,";

}

}

$sql .=
"PRIMARY KEY (sector_id)".
") TYPE=MyISAM;";

$db->query("DROP TABLE $quadname");
$db->query($sql);

//now fill the sectors...

$number = $db->select("*","commodities","commodity_id>1",0);
$numcommodities = mysql_num_rows($number);

$commoditydat = "";
for($f=1;$f<=$numcommodities;$f++)
{
$commoditydat .= ":100000000";
}

$x = 0;
$y = 1;

for($z=1;$z<=$numsectors;$z++)
{

$x++;

$portroll = Rand(1,$numcommodities);

$planetroll = Rand(1,5);
$portavailable = Rand(1,4);

if($portavailable==1)
{
$port = "Y";
}
else
{
$port = "N";
}

if($planetroll==1)
{
$planet="Y";
}
else
{
$planet="N";
}

if($x > $numalong)
{
$x=1;
$y++;
}

$insertdat = "$x:$y:unnamed:0:$portroll:$port:$planet:N:N$commoditydat";

$db->insert("$quadname","$insertdat",1);

}

}


return True;

}


if(!isset($action))
{

//generate an installer menu...

$installoptions = $page->FetchTemplate("installoptions");

$menu = newbox("Installation Options",$installoptions);

$content = $menu;

$page->Assign("content",$content);

$page->Display("template");

}
elseif($action=="newinstall")
{

}
elseif($action=="newuniverse")
{

if(!isset($step))
{

//show form
$newform = newbox("Create a new universe (options)",$page->FetchTemplate("generateuniverse"));
$page->Assign("content",$newform);
$page->Display("template");

}
elseif($step==2)
{

$returnresult = CreateUniverse($num_quads,$num_sectors);

if($returnresult = True)
{
$content = "Thankyou! your new universe has been created successfully<BR>click <A CLASS=\"nav\" HREF=\"install.php\">here</A> to return to the install script!";
}
else
{
$content = "Sorry! there was a problem creating your universe.";
}

$page->Assign("content",newbox("Creating universe (result)",$content));
$page->Display("template");

}

}

?>
getan, habs gerade hochgeladen und es passiert das selbe.. ich lass es mal hochgeladen , kannst es dir angucken.. magste mich mal über icq anschreiben?dann geb ichd ir mal die zugangsdaten, vielelicht wirfste mal nen blick rein Biggrin

242099973
Nee lass mal, wir nähern uns dem Problem schon Wink

Was passiert damit? :


Code:
<?php

$require_login = false;
$gamescript = false;
die('Wacken ist schon vorbei du spasti!');
include("common.php");

//first, check to see if the required template engine tables are there, if not create them
//if they are, check for the required installer templates, if theyre not there, again duh create them


//function to create a new universe

function CreateUniverse($numquadrants,$numsectors)
{

global $db;


//numalong = numsectors squared

$numalong = sqrt($numsectors);

for($i=1;$i<=$numquadrants;$i++)
{

$quadname = "quadrant" . $i;


$sql = "";
$sql .=
"CREATE TABLE $quadname(".
"sector_id bigint(20) NOT NULL auto_increment,".
"sector_x bigint(20) NOT NULL,".
"sector_y bigint(20) NOT NULL,".
"sector_name text NOT NULL,".
"sector_owner bigint(20) NOT NULL default 0,".
"sector_portcontents int(3) NOT NULL,".

"port enum('Y','N') DEFAULT 'N' NOT NULL," .
"planet enum('Y','N') DEFAULT 'N' NOT NULL," .
"starbase enum('Y','N') DEFAULT 'N' NOT NULL," .
"base enum('Y','N') DEFAULT 'N' NOT NULL,";

//now add the port_commodities stock column..

//cycle through commodities adding the relevent columns and values...

$comres = $db->select("*","commodities","commodity_id>0",0);

while($row = mysql_fetch_array($comres))
{

if($row[commodity_name] != "Special")
{

$sql .= "port_$row[commodity_name]_stock bigint(20) NOT NULL default 100000000,";

}

}

$sql .=
"PRIMARY KEY (sector_id)".
") TYPE=MyISAM;";

$db->query("DROP TABLE $quadname");
$db->query($sql);

//now fill the sectors...

$number = $db->select("*","commodities","commodity_id>1",0);
$numcommodities = mysql_num_rows($number);

$commoditydat = "";
for($f=1;$f<=$numcommodities;$f++)
{
$commoditydat .= ":100000000";
}

$x = 0;
$y = 1;

for($z=1;$z<=$numsectors;$z++)
{

$x++;

$portroll = Rand(1,$numcommodities);

$planetroll = Rand(1,5);
$portavailable = Rand(1,4);

if($portavailable==1)
{
$port = "Y";
}
else
{
$port = "N";
}

if($planetroll==1)
{
$planet="Y";
}
else
{
$planet="N";
}

if($x > $numalong)
{
$x=1;
$y++;
}

$insertdat = "$x:$y:unnamed:0:$portroll:$port:$planet:N:N$commoditydat";

$db->insert("$quadname","$insertdat",1);

}

}


return True;

}


if(!isset($action))
{

//generate an installer menu...

$installoptions = $page->FetchTemplate("installoptions");

$menu = newbox("Installation Options",$installoptions);

$content = $menu;

$page->Assign("content",$content);

$page->Display("template");

}
elseif($action=="newinstall")
{

}
elseif($action=="newuniverse")
{

if(!isset($step))
{

//show form
$newform = newbox("Create a new universe (options)",$page->FetchTemplate("generateuniverse"));
$page->Assign("content",$newform);
$page->Display("template");

}
elseif($step==2)
{

$returnresult = CreateUniverse($num_quads,$num_sectors);

if($returnresult = True)
{
$content = "Thankyou! your new universe has been created successfully<BR>click <A CLASS=\"nav\" HREF=\"install.php\">here</A> to return to the install script!";
}
else
{
$content = "Sorry! there was a problem creating your universe.";
}

$page->Assign("content",newbox("Creating universe (result)",$content));
$page->Display("template");

}

}

?>
Hatte sich etwas verändert in der DB nachdem du die install.php ausgeführt hast?

Sage doch uns doch bitte mal, was du genau gemacht hast. Also nicht sagen das du das gemacht hast was da oben in Englisch steht, sondern mit eigenen Worten erklären wie du bisher vorgegangen bist.

Optional könntest du ganz oben in der install.php ja noch das hier reinschreiben.
Code:
error_reporting(E_ALL);
Virus schau mal was ich da hingeschrieben hab und dann meditier mal nen Moment woran das liegen könnte Wink

include("common.php");

scheint was damit zutun zu haben.
@greg : Wacken ist schon vorbei ..... ^^ wird angezeigt Biggrin

@ Virus:

ICh habe eine datenbank erstellt namens "d00270ac". Haben dann in der datei database.class.php den namen terranova in "d00270ac" umbenannt. Dann bin ich in den mysql Admin bereich und habe folgendes eingetragen:

Zitat:Code is zu lang XD na ja ich hab einfach die bereit gestellt sql editor datei hochgeladen Biggrin

Das zeigte er dann auch so an. Ja und dann bin ich wieder in die database.class.php und hab datenbankname und passwort eingegeben und ebenfalls hochgeladen. ja und dann gehts net weiter ;D
@joker: Was dagegen wenn ich ein wenig an den Dateien rummfummel?

Zitat:Parse error: syntax error, unexpected T_VAR in /www/htdocs/w00609dd/space-territory/config.php on line 3
Wusst ichs doch.
Seiten: 1 2 3 4
Referenz-URLs