Quote:
Originally Posted by OldSchoolDSL
Was originally setup for Auto. Changed to Binary, just to be sure. Same results.
Attached is a simple v3Arcade games I've tried to import. No luck.
(Would upload the IB game also for an example, but can not upload tar files here)
|
{After looking at the zip file}.... the problem you're running into there is that it is a rather old file and the database names & installation methods have changed the last few years for v3A formatted games.
For that particular games, unzip the file to a folder, then modify the PHP file to replace the entire contents of the file to be this instead:
Code:
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile: airfox.game.php,v $ - $Revision: 1.35 $');
define('NO_REGISTER_GLOBALS', 1);
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array();
$specialtemplates = array();
require_once('./global.php');
print_cp_header("v3 Arcade - AirFox");
// welcome step
if (!isset($_POST['do']))
{
$gameexists = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "v3arcade_games WHERE shortname='airfox'");
if ($DB_site->num_rows($gameexists)==0) {
print_form_header('airfox.game', 'stepone');
print_table_header("v3 Arcade - AirFox");
print_description_row("This script will install AirFox for your v3 Arcade.<p>
Make sure you upload the following files:<br>
airfox1.gif -> /images/arcade/airfox1.gif<br>
airfox2.gif -> /images/arcade/airfox2.gif<br>
airfox.swf -> /games/airfox.swf<p>
Click on \"Install AirFox\" to begin the installation.");
print_submit_row("Install AirFox", 0);
} else {
print_form_header('airfox.game', 'stepone');
print_table_header("v3 Arcade - AirFox");
print_description_row("AirFox is already installed!");
}
}
// #############################################################################
// step 1
if ($_POST['do'] == "stepone")
{
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "v3arcade_games (shortname, gameid, title, descr, file, width, height, miniimage, stdimage, gamesettings, highscorerid, highscore) VALUES ('airfox', NULL, 'AirFox', 'Blast your way thru enemy ships in this space shooter.', 'airfox.swf', 300, 320, 'airfox2.gif', 'airfox1.gif', 29, NULL, NULL)");
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "gamenews (newstext,newstype,datestamp) VALUES ('New game installed, <b>AirFox</b>','newgame'," . TIMENOW . ")
");
print_form_header('airfox.game', '');
print_table_header("v3 Arcade - AirFox");
print_description_row("Installation Complete! (PLEASE DELETE THIS FILE.)");
}
?>
The only change being that the table name is now "v3arcade_games" instead of just "games" (the table name changes were done as of v3A 2.0.0).
After that, upload the two .gif files to your /images/arcade folder and the .swf file to your /games folder. Upload the .php file to your /admincp folder and run the PHP file (eg:http://www.mysite.com/forums/admincp/airfox.game.php) and that will install the games settings for you into the tables. After that delete the airfox.game.php file from your server (but leave the rest).