51 (edited by dharmil 2006-04-16 14:20)

Re: My Mod Arcade beta 1

yeah i iwll check on that...
is what game did you get the error...
and i am not getting any erros did you ediyt any file..
go to my forum and try a game and see if you get an error
http://forum1.dharmil.info/

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

52 (edited by dharmil 2006-04-16 20:22)

Re: My Mod Arcade beta 1

Arcade Mod 1.0 Addons
    - Install FIle

Download - [url]http://forum1.dharmil.info/Punbb_Arcade_Game_Mod 1.0.zip[/url]
_______________________________________________________________________________________


Arcade Mod 1.1 Addons
    - Admin Plugin
        - Add Games
        - Delete Games
        - Edit Games
**** NO MORE GOING TO PHPMYADMIN TO RUN THE QURIES ****

Download - [url]http://forum1.dharmil.info/Punbb_Arcade_Game_Mod 1.1.zip[/url]
_______________________________________________________________________________________


Arcade Mod 1.2 Addons
    - Admin Plugin Fixed
        - Fixed Some Spelling erros
        - Fixed Some other erros when adding a game
    - Added a ReadMe File.
    - Also Uploaded the Language Files on to it
Download - [url]http://forum1.dharmil.info/Punbb_Arcade_Game_Mod 1.2.zip[/url]

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

53

Re: My Mod Arcade beta 1

Nice package dharmil ... a good combination of all released punbb arcade mods. thx ...

My PunBB Arcade Mod & Game Packs 1-9 (update 01-06-2007):
Test and download here !

54 (edited by dharmil 2006-04-17 16:40)

Re: My Mod Arcade beta 1

No Problem

and also read this http://forum1.dharmil.info/viewtopic.php?pid=308#p308

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

55 (edited by ango 2006-04-19 17:26)

Re: My Mod Arcade beta 1

I´ve also made some changes again.
- added languages (english/german/french)
- rearranged the naming of all var´s in all .php files into english for future postprocessing
- added date and time to the highscore table
- added tables for game category and date/time for future implementation
- some optical adjustments
- now all games are placed in /games folder, not in img/games
- removed mismatches from games and sql querys
- fixed some errors in the administration plugin

The database structure of this release differ from further releases!
Please use this one for testing.
This mod comes with 10 pre-installed games. Additional games (nearly 100!) come as extension.

My PunBB Arcade Mod & Game Packs 1-9 (update 01-06-2007):
Test and download here !

56 (edited by dharmil 2006-04-19 12:31)

Re: My Mod Arcade beta 1

It doesnt work you cant play the Games

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

57

Re: My Mod Arcade beta 1

Sorry, uploaded wrong file ... link fixed.

My PunBB Arcade Mod & Game Packs 1-9 (update 01-06-2007):
Test and download here !

58 (edited by dharmil 2006-04-20 00:30)

Re: My Mod Arcade beta 1

k i wll test it and where can i get the 100 games (and the mod still doesnt work)

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

59 (edited by ango 2006-04-20 10:59)

Re: My Mod Arcade beta 1

dharmil wrote:

k i wll test it and where can i get the 100 games (and the mod still doesnt work)

hmm... I´ve tested the mod on a clean install and it works ok.  You can test it here. Wich error do you have?
I´m working on the other games and release the package if all works ok.

My PunBB Arcade Mod & Game Packs 1-9 (update 01-06-2007):
Test and download here !

Re: My Mod Arcade beta 1

well erros messages are diable on my host so i dont know it its just when i pick a game to play its a white screen

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

61

Re: My Mod Arcade beta 1

If all games have a white screen , the game path is wrong and not in pun root.

|-[punbb root]
|         |-[img]
|         |-[include]
|         |-[plugins]
|         |-[lang]
|         |-[games]
|         |        |-[xxxxx.swf]
|         |-[arcade.php]
|         |-[arcade_play.php]
|         |-[arcade_ranking.php]
|         |-[newscore.php]

You can enable punbb debugmode to get more error messages. (edit: /iclude/common.php and remove the two slashes of: //define('PUN_DEBUG', 1); )

My PunBB Arcade Mod & Game Packs 1-9 (update 01-06-2007):
Test and download here !

Re: My Mod Arcade beta 1

no the erros is the hold plage doent show up its all blank

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

Re: My Mod Arcade beta 1

well on your new mod i got it to work

but i change the install file a little i set up seprate quries for each game so you know if one of the games had and error installing and you know where the problem was i yeah here is the fixed install_mod.php


<?php
/***********************************************************************/

// Some info about your mod.
$mod_title      = 'Punbb_Arcade_Games';
$mod_version    = '1.0';
$release_date   = '2006-04-20';
$author         = 'Dharmil';
$author_email   = 'dharmil@gmail.com';

// Versions of PunBB this mod was created for. Minor variations (i.e. 1.2.4 vs 1.2.5) will be allowed, but a warning will be displayed.
$punbb_versions    = array('1.2.10', '1.2.11');

// Set this to false if you haven't implemented the restore function (see below)
$mod_restore    = true;


// This following function will be called when the user presses the "Install" button
function install()
{
    global $db, $db_type, $pun_config;

            $db->query("CREATE TABLE ".$db->prefix."arcade_ranking (
            `rank_id` SMALLINT(5) NOT NULL auto_increment,            
            `rank_game` varchar(50) NOT NULL default '0',
            `rank_player` SMALLINT(5) NOT NULL default '0',
            `rank_score` double NOT NULL default '0',
            `rank_date` INTEGER UNSIGNED default NULL,            
            PRIMARY KEY  (`rank_id`)
            ) ENGINE=MyISAM ") or error('Unable to add Table "arcade_ranking" ', __FILE__, __LINE__, $db->error());
                    
            $db->query("CREATE TABLE ".$db->prefix."arcade_games (
              `game_id` SMALLINT(5) NOT NULL auto_increment,
              `game_name` varchar(30) NOT NULL default '',
              `game_filename` varchar(30) NOT NULL default '',
              `game_desc` text NOT NULL,
              `game_image` varchar(200) NOT NULL default '',
              `game_width` smallint(5) NOT NULL default '550',
              `game_height` smallint(5) NOT NULL default '400',
              `game_cat` smallint(2) NOT NULL default '0',              
              PRIMARY KEY  (`game_id`)
            ) ENGINE=MyISAM AUTO_INCREMENT=6") or error('Unable to add Table "arcade_games" ', __FILE__, __LINE__, $db->error());


// Add some games. Game_id is not needed because the database is using auto_increment
$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("Balloon Hunter", "balloonhunter", "Shoot down the balloons before they leave your reach.<br>Accuracy, timing and power are everything in this game.", "balloonhunter.jpg", "550", "400", 0)') or error('Unable to add Balloon Hunter', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("Breakit", "breakit", "Use YOUR MOUSE to move the base, hit the ball against the brick wall to breakthrough and proceed onto the next level.<br>Be sure to collect the points and power ups. Avoid power downs! There are 50 unique stages to play.", "breakit.jpg", "640", "480", 0)') or error('Unable to add Breakit', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("Diamond Mines", "diamondmine", "The screen is full of gems and you must move the checks around to create three of the same kind of gem in a row.", "diamondmine.gif", "550", "400", 0)') or error('Unable to add Diamond Mines', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("Tetrollapse", "tetrollapse", "You should not only escape the over-filling of the board but also sort out the figures which are on the board.<br>If the figure disappears you will pass to the next level where another figure is preparing for you.", "tetrollapse.jpg", "640", "480", 0)') or error('Unable to add Tetrollapse', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("Frogger", "frogger", "Classic 80s Arcade Game.", "frogger.jpg", "400", "450", 0)') or error('Unable to add Frogger', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("Space Invaders", "invaders", "Taito had the inspired idea around 1978 that killing aliens was extremely good fun.<br>So they invented a game called Space Invaders.", "invaders.jpg", "520", "440", 0)') or error('Unable to add Space Invaders', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("Reel Gold", "reelgold", "Move your cart around on the rails and fire the rope down to reel in gold but avoid hitting rocks.", "reelgold.jpg", "550", "450", 0)') or error('Unable to add Reel Gold', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("Spank The Monkey", "spankmonkey", "Spank the monkey as hard as you can.", "spankmonkey.jpg", "850", "400", 0),("Wheelchair Speartoss", "speartoss", "Wheelchair spear throwing.", "speartoss.gif", "625", "360", 0)') or error('Unable to add Spank The Monkey', __FILE__, __LINE__, $db->error());

$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("Speartoss 5 Shots", "speartoss5shots", "Spear throwing.", "speartoss5shots.jpg", "400", "310", 0)') or error('Unable to add Speartoss 5 Shots', __FILE__, __LINE__, $db->error());
}


// This following function will be called when the user presses the "Restore" button (only if $mod_uninstall is true (see above))
function restore()
{
    global $db, $db_type, $pun_config;


    switch ($db_type)
    {
        default:
    $db->query('DROP TABLE '.$db->prefix.'arcade_ranking') or error('Unable to drop table "arcade_ranking"', __FILE__, __LINE__, $db->error());
    $db->query('DROP TABLE '.$db->prefix.'arcade_games') or error('Unable to drop table "arcade_games"', __FILE__, __LINE__, $db->error());
            break;
    }

}

/***********************************************************************/

// DO NOT EDIT ANYTHING BELOW THIS LINE!


// Circumvent maintenance mode
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

// We want the complete error message if the script fails
if (!defined('PUN_DEBUG'))
    define('PUN_DEBUG', 1);

// Make sure we are running a PunBB version that this mod works with
$version_warning = false;
if(!in_array($pun_config['o_cur_version'], $punbb_versions))
{
    foreach ($punbb_versions as $temp)
    {
        if (substr($temp, 0, 3) == substr($pun_config['o_cur_version'], 0, 3))
        {
            $version_warning = true;
            break;
        }
    }

    if (!$version_warning)
        exit('You are running a version of PunBB ('.$pun_config['o_cur_version'].') that this mod does not support. This mod supports PunBB versions: '.implode(', ', $punbb_versions));
}


$style = (isset($cur_user)) ? $cur_user['style'] : $pun_config['o_default_style'];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $mod_title ?> installation</title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_config['o_default_style'].'.css' ?>" />
</head>
<body>

<div id="punwrap">
<div id="puninstall" class="pun" style="margin: 10% 20% auto 20%">

<?php

if (isset($_POST['form_sent']))
{
    if (isset($_POST['install']))
    {
        // Run the install function (defined above)
        install();

?>
<div class="block">
    <h2><span>Installation successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully prepared for <?php echo pun_htmlspecialchars($mod_title) ?>. See readme.txt for further instructions.</p>
        </div>
    </div>
</div>
<?php

    }
    else
    {
        // Run the restore function (defined above)
        restore();

?>
<div class="block">
    <h2><span>Restore successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully restored.</p>
        </div>
    </div>
</div>
<?php

    }
}
else
{

?>
<div class="blockform">
    <h2><span>Mod installation</span></h2>
    <div class="box">
        <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>?foo=bar">
            <div><input type="hidden" name="form_sent" value="1" /></div>
            <div class="inform">
                <p>This script will update your database to work with the following modification:</p>
                <p><strong>Mod title:</strong> <?php echo pun_htmlspecialchars($mod_title).' '.$mod_version ?></p>
                <p><strong>Author:</strong> <?php echo pun_htmlspecialchars($author) ?> (<a href="mailto:<?php echo pun_htmlspecialchars($author_email) ?>"><?php echo pun_htmlspecialchars($author_email) ?></a>)</p>
                <p><strong>Disclaimer:</strong> Mods are not officially supported by PunBB. Mods generally can't be uninstalled without running SQL queries manually against the database. Make backups of all data you deem necessary before installing.</p>
<?php if ($mod_restore): ?>                <p>If you've previously installed this mod and would like to uninstall it, you can click the restore button below to restore the database.</p>
<?php endif; ?><?php if ($version_warning): ?>                <p style="color: #a00"><strong>Warning:</strong> The mod you are about to install was not made specifically to support your current version of PunBB (<?php echo $pun_config['o_cur_version']; ?>). However, in most cases this is not a problem and the mod will most likely work with your version as well. If you are uncertain about installning the mod due to this potential version conflict, contact the mod author.</p>
<?php endif; ?>            </div>
            <p><input type="submit" name="install" value="Install" /><?php if ($mod_restore): ?><input type="submit" name="restore" value="Restore" /><?php endif; ?></p>
        </form>
    </div>
</div>
<?php

}

?>

</div>
</div>

</body>
</html>
http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

64 (edited by dharmil 2006-04-23 02:55)

Re: My Mod Arcade beta 1

k i made some new packs you can down load with the fixed intall
and
I added a optional install file for the extra game

reed this
http://forum1.dharmil.info/viewtopic.php?pid=308#p308 - Punbb Arcade Game Mod Beta 1
http://forum1.dharmil.info/viewtopic.php?pid=335#p335 - Punbb Arcade Game Mod 1.0
http://forum1.dharmil.info/viewtopic.php?pid=336#p336 - Punbb Arcade Game Mod 2.0


edit now i just added to ablity to change the number of games displayed on arcade.php through admin plugin...

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

65 (edited by ango 2006-04-25 08:11)

Re: My Mod Arcade beta 1

Yep you´re right dharmil. Think its better to seperate the query to add a game for better error handling.
I´ve made a smal statistic block wich displays the topscorer and the newest highscores.

Next wich I try is to insert a game-search function ...

You can see it here. User: punbb, PW: test

My PunBB Arcade Mod & Game Packs 1-9 (update 01-06-2007):
Test and download here !

66 (edited by dharmil 2006-04-25 10:47)

Re: My Mod Arcade beta 1

wow look great can you post the modification here so i can see it or add it in 2.3 and creat a package

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

67 (edited by dharmil 2006-04-26 02:03)

Re: My Mod Arcade beta 1

ok i had added new admin fucntions it allows admin to enable or disable the arcade and one where you can select how many games to display on a page in the arcade...

download avalabe
[url]http://forum1.dharmil.info/Punbb_Arcade_Game_Mod 2.3.zip[/url]
http://forum1.dharmil.info/Punbb_Arcade_Game_Mod 2.3.zip


um can you get me the modifcations for the top 3 high scores so i can add it on to the next pack age 2.4

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

68

Re: My Mod Arcade beta 1

hello im very interested in this mod and i cant wait until iam able to get it to work. I have a problem......i dont know if its the version of mysql or what.....my database is perfectly fine and i install the mod properly. When i go in to arcade.php the games show up and everything......and when i go to play any game this is the error i get:

Impossible to select this page.

A little help please?

69

Re: My Mod Arcade beta 1

Open in your punbb root folder /include/common.phph and remove the two slashes in front of:

// define('PUN_DEBUG', 1);

This is for a detailed error description.
Try again and post the error ...

Wich mod version do you use? At the moment Dharmil, Pandark and myself are making some improvements of NicoSomb´s first releases arcade mod. Our modifications are different.

My PunBB Arcade Mod & Game Packs 1-9 (update 01-06-2007):
Test and download here !

70

Re: My Mod Arcade beta 1

yes i know and i have just downloaded one of your modifications i believe it was your 2.2 version

71

Re: My Mod Arcade beta 1

ok i did what you asked me to do and then it gave me this error:

File: 
Line: 

PunBB reported: Impossible to select this page

Any suggestions?

Re: My Mod Arcade beta 1

I have installed your mod, it's great, but for some player, it don't update the date in the score. why ?


Sorry for my poor english, i'm french

73 (edited by ango 2006-05-01 14:28)

Re: My Mod Arcade beta 1

Ok, I´ve made again some updates.
This version is based on NICO_SOMB´s arcade mod and modifications by PANDARK and DHARMIL. Thanx to all.

I´m not a programmer, so they may be errors. Maybe the programming code could be better...
Anyway, it makes fun and I hope its working for you. :-)

This version fixed some errors.  I didn´t give this a version number, cause I thinks it is still a beta version.
I also added some statistics to the main page and options to the admin panel.
English, german and french language included.

Read the readme.txt for install.

Screenshot of the main page:
http://img48.imageshack.us/img48/4249/screenshotmain6dc.th.jpg

Screenshot of the game page:
http://img157.imageshack.us/img157/6301/screenshotgame8mu.th.jpg

Screenshot of the highscore page:
http://img48.imageshack.us/img48/7600/screenshotscores6fg.jpg

You can download it here and test it on my little forum.

My PunBB Arcade Mod & Game Packs 1-9 (update 01-06-2007):
Test and download here !

Re: My Mod Arcade beta 1

yes i found a lot fo erros i am working on fixing them i got most of them done most of the erros you where working with data base

http://www.dharmil.info/ - My site

http://www.yourarcadesite.1.vg/ - My Arcade, Play 250 games online for free and Save your high score!

http://www.forums.dharmil.info/ - My forums i created using php/mysql still working on them about 15% or more done

75 (edited by ango 2006-04-29 17:14)

Re: My Mod Arcade beta 1

ok, Thanx. So I can make it better on future updates

Well, you know spaghetti code ?  :-)

My PunBB Arcade Mod & Game Packs 1-9 (update 01-06-2007):
Test and download here !