support php-arcade, and ibp arcade games

giorgio79 - October 16, 2008 - 08:29
Project:Arcade
Version:6.x-0.6-beta
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

Hi,

www.phpbb-arcade.co.uk had a very nice php mod, which knew how to handle pnflashgames, ibp and many other arcade modded games.

It would be great for this mod to handle all those games. :)

#1

Sophia - March 27, 2009 - 06:12

Hi Matt, first of all, thanks very much for this awesome module. (I am converting to Drupal from Proboards, if that is any help, and I would love to take the lill flash games I collected over the years with me :)

The games play well, but after hitting "Submit hightscore", the page trying to be displayed is "mydrupalurl/index.php?act=Arcade&do=newscore"

PS I know nothing about all this stuff, but I do know I have both version 2 and version 3 IPB games, and it seems that the score submitting system has changed from IBProArcade v2.x.x (newscore) to v3.x.x (verifyscore). Here a code snippet somebody found on the net responsible for board side score evaluation:

// Check for arcade actions
// IBPArcade v2.x.x Games support
elseif (isset($_REQUEST['act']) && strtolower($_REQUEST['act']) == 'arcade')
{
$_REQUEST['action'] = 'arcade';
$_REQUEST['ibpa'] = 2;

if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'newscore')
$_REQUEST['sa'] = 'ibpsubmit';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
// IBPArcade v3.x.x Games support
elseif (isset($_REQUEST['autocom']) && $_REQUEST['autocom'] == 'arcade')
{
$_REQUEST['action'] = 'arcade';
$_REQUEST['ibpa'] = 3;

if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'savescore')
$_REQUEST['sa'] = 'ibpsubmit';

elseif (isset($_REQUEST['do']) && $_REQUEST['do'] = 'verifyscore')
$_REQUEST['sa'] = 'ibpverify';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
I hope that is helpful at all, it is all greek to me but I am willing to learn :)

#2

matt2000 - April 9, 2009 - 07:29

Arcade module is architected to be easy to extend for other game protocols. See protocols/pnflashgames.inc for an example .

Feel free to contact me if you'd like to financially sponsor official support for IPB games.

#3

matt2000 - April 9, 2009 - 07:29
Status:active» postponed
 
 

Drupal is a registered trademark of Dries Buytaert.