View Single Post
  #186  
Old 12-17-2010, 07:37 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OldSchoolDSL View Post
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).
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01380 seconds
  • Memory Usage 1,781KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete