• Welcome to Simple Machines Community Forum. Please login or sign up.

SMF Arcade

Started by niko, October 01, 2004, 02:45:55 PM

Previous topic - Next topic

DoW Kid Rock

I had done that, but I didn't realize that when it installed in the package manager for some reason it didn't do the sql entries or edit the index.php.

it is working now, but just have to get the games working.  not easy entering them into phpmyadmin by hand and the games aren't working properly. tried games from ibproarcade, but it doesn't submit the scores properly.

will wait for later incarnations of this before going any further

niko

October 26, 2004, 04:23:08 PM #41 Last Edit: October 26, 2004, 04:28:42 PM by Niko
Quote from: DoW Kid Rock on October 26, 2004, 01:25:30 PM
I had done that, but I didn't realize that when it installed in the package manager for some reason it didn't do the sql entries or edit the index.php.

it is working now, but just have to get the games working.  not easy entering them into phpmyadmin by hand and the games aren't working properly. tried games from ibproarcade, but it doesn't submit the scores properly.

will wait for later incarnations of this before going any further

use index.php?action=arcade&do=admin to do sql queries

and remember Betas are never fully working howeover first 'full version' should be done soon

Ibproarcade games aren't supported howeover it would be cool if it would but i think ib uses diffrent style url's,  vbulltin arcade games support would be cool too, maybe sometime maybe not.

Of course you can edit games action script, but it's illegal without permisson, so ask gamemaker before you do that :)
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Oldiesmann

Niko - talk to the folks at PNFlashGames. They've got plenty of games you can use ;)
Michael Eshom
Cincy Space - now open!

umiya

all games at ibpro aracde have full write permissions

crazystu

October 27, 2004, 11:04:13 PM #44 Last Edit: February 02, 2005, 02:22:14 PM by nesianstyles
I didn't notice this mod, but I did now. I'll help by doing games for it

When I do games, they should be up here, but at the moment the page doesn't exist as I haven't started yet.

crazystu

October 28, 2004, 01:26:18 AM #45 Last Edit: February 02, 2005, 02:17:36 PM by nesianstyles
added 13 full games done for this mod today.
Hope you like them
Download/View

Bullcat Webhosting

I download breakout, no submit is done :(


Wij ondersteunen SMF forums & safe mode staat uit.

niko

Quote from: nesianstyles on October 28, 2004, 01:26:18 AM
added 13 full games done for this mod today.
Hope you like them
Download/View

thanks for these. but they have missing var do = submit; this is not big problem thought, since Beta 4+ repairs.

in Sources/Arcade.php
find:

if(isset($_POST['act'])) $_POST['do'] = $_POST['act'];

add after:

if(isset($_POST['game']) && isset($_POST['score']))   $_POST['do'] = "submit"; // If game and score is set then -> submit
elseif( isset($_GET['do']) && isset($_GET['game']))   $_GET['do'] == "play"; // If game is set but no play or highscore -> play

Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Bullcat Webhosting

October 29, 2004, 09:08:34 AM #48 Last Edit: October 29, 2004, 09:13:36 AM by Hans_de_Echte
YEs, thats works fine here, in breakout, now i download the other games, and take a look ! Thanks


Wij ondersteunen SMF forums & safe mode staat uit.

umiya

trying to add the new games but have no clue how :-/

crazystu

October 29, 2004, 02:56:57 PM #50 Last Edit: February 02, 2005, 02:20:01 PM by nesianstyles
Quote from: Niko on October 29, 2004, 08:40:29 AM
Quote from: nesianstyles on October 28, 2004, 01:26:18 AM
added 13 full games done for this mod today.
Hope you like them
Download/View

thanks for these. but they have missing var do = submit; this is not big problem thought, since Beta 4+ repairs.

in Sources/Arcade.php
find:

if(isset($_POST['act'])) $_POST['do'] = $_POST['act'];

add after:

if(isset($_POST['game']) && isset($_POST['score']))   $_POST['do'] = "submit"; // If game and score is set then -> submit
elseif( isset($_GET['do']) && isset($_GET['game']))   $_GET['do'] == "play"; // If game is set but no play or highscore -> play


I didn't realise games needed it, but I have been doing the games from another arcade mod and its hard to add another line of actionscript with the program I use.

ps. bug fixed in sagaofsai, redownload it here and also, check there soon as I have a bunch of games comming.

umiya

can someone inform me of how to add a game...i added the code to one of my own games and wish to add it but cant figure out how and there was no read me on how to install games :-|

Bullcat Webhosting

The code below, add all the download games to arcade.php, just download all the games, en add this code to arcade.php !

// Games list
// $games = array('Display name in install','Sql query to excute on install');
$games = array(
array('Duck Hunt', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'duckhunt\', \'Duck Hunt\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="duckhunt.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/duckhunt.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/duckhunt.swf" quality="high" bgcolor="#000000" width="450" height="393" name="duckhunt.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Hunt ducks. Classic game\')'),
array('Pinguin', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'pinguin\', \'Pinguin\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="pingviinikibpa.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/pingviinikibpa.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/pingviinikibpa.swf" quality="high" bgcolor="#000000" width="450" height="393" name="pingviinikibpa.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Pinguin. Classic game\')'),
array('Pacman', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'pacman\', \'Pacman\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="pacman.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/pacman.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/pacman.swf" quality="high" bgcolor="#000000" width="450" height="393" name="pacman.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Pacman. Classic game\')'),
array('Breakout', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'breakout\', \'Breakout\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="breakout.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/breakout.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/breakout.swf" quality="high" bgcolor="#000000" width="450" height="393" name="breakout.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Breakout. Classic game\')'),
array('Spacehunter', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'spacehunter\', \'Spacehunter\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="spacehunter.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/spacehunter.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/spacehunter.swf" quality="high" bgcolor="#000000" width="450" height="393" name="spacehunter.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Spacehunter. Classic game\')'),
array('Snake', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'snake\', \'Snake\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="snake.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/snake.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/breakout.swf" quality="high" bgcolor="#000000" width="450" height="393" name="snake.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Snake. Classic game\')'),
array('Simpsons', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'simpsons\', \'Simpsons\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="simpsons.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/simpsons.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/simpsons.swf" quality="high" bgcolor="#000000" width="450" height="393" name="simpsons.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Simpsons. Classic game\')'),
array('Sagaofsai', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'sagaofsai\', \'Sagaofsai\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="sagaofsai.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/sagaofsai.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/sagaofsai.swf" quality="high" bgcolor="#000000" width="450" height="393" name="sagaofsai.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Sagaofsai. Classic game\')'),
array('Rshot3', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'rshot3\', \'Rshot3\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="rshot3.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/rshot3.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/rshot3.swf" quality="high" bgcolor="#000000" width="450" height="393" name="rshot3.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Rshot3. Classic game\')'),
array('Project_orion', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'project_orion\', \'Project_orion\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="project_orion.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/project_orion.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/project_orion.swf" quality="high" bgcolor="#000000" width="450" height="393" name="project_orion.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Project_orion. Classic game\')'),
array('Pingbrick', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'pingbrick\', \'Pingbrick\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="pingbrick.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/pingbrickbreakout.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/pingbrick.swf" quality="high" bgcolor="#000000" width="450" height="393" name="pingbrick.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Pingbrick. Classic game\')'),
array('Paul', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'paul\', \'Paul\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="paul.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/paul.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/paul.swf" quality="high" bgcolor="#000000" width="450" height="393" name="paul.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Paul. Classic game\')'),
array('Karts', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'karts\', \'Karts\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="karts.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/karts.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/karts.swf" quality="high" bgcolor="#000000" width="450" height="393" name="karts.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Karts. Classic game\')'),
array('Hexxagon', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'hexxagon\', \'Hexxagon\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="hexxagon.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/hexxagon.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/hexxagon.swf" quality="high" bgcolor="#000000" width="450" height="393" name="hexxagon.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Hexxagon. Classic game\')'),
array('Asteroids', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'asteroids\', \'Asteroids\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="asteroids.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/asteroids.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/asteroids.swf" quality="high" bgcolor="#000000" width="450" height="393" name="asteroids.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Asteroids. Classic game\')'),
array('Xmas-boarding', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'xmas-boarding\', \'Xmas-boarding\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="xmas-boarding.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/xmas-boarding.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/xmas-boarding.swf" quality="high" bgcolor="#000000" width="450" height="393" name="xmas-boarding.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Xmas-boarding. Classic game\')'),
array('Eskiv', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'eskiv\', \'Eskiv\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="200" height="150" id="eskivbw" align="middle">\r\n<param name="allowScriptAccess" value="sameDomain" />\r\n<param name="movie" value="Games/eskivbw.swf" />\r\n<param name="quality" value="high" />\r\n<param name="bgcolor" value="#ffffff" />\r\n<embed src="Games/eskivbw.swf" quality="high" bgcolor="#ffffff" width="640" height="480" name="eskivbw" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\r\n</object>\', \'\', \'Collect blocks. But be aware of balls \');')
);


Wij ondersteunen SMF forums & safe mode staat uit.

umiya

so u have to edit arcade .php every tiem u want to add a game:|

diplomat.

yeah you just have to add it in the game list..like another line

array('NAME', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'name\', \'NAME\', \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="450" height="393" id="NAME.swf" align="middle">\r\n <param name="allowScriptAccess" value="sameDomain">\r\n <param name="movie" value="Games/NAME.swf">\r\n <param name="quality" value="high">\r\n <param name="bgcolor" value="#000000">\r\n <embed src="Games/NAME.swf" quality="high" bgcolor="#000000" width="450" height="393" name="paul.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object>\', \'\', \'Paul. Classic game\')'),

and install it using the arcade admin section thingy .. fairly easy, and im a n00b ;)
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

crazystu

October 29, 2004, 08:52:10 PM #55 Last Edit: February 02, 2005, 02:18:42 PM by nesianstyles
added 8 more games:
ameriman
dragndrop
funkypong
target_shoot
rsnake
cheetah_race
squid_hunter
star_wars

download/view
Also put up a example arcade and a board for support and stuff.

Elijah Bliss

Quote from: nesianstyles on October 29, 2004, 08:52:10 PM
added 8 more games:
ameriman
dragndrop
funkypong
target_shoot
rsnake
cheetah_race
squid_hunter
star_wars

download/view
Also put up a example arcade and a board for support and stuff.

You rock! Would it be too much to ask to throw in a couple of card games like Poker and Black Jack if possible?

Elijah Bliss

October 29, 2004, 09:26:48 PM #57 Last Edit: October 29, 2004, 09:31:12 PM by Elijah Bliss
Question about the Arcade mod

Will the arcade board's permission system function like the regular board permissions in SMF? For example if I only want particular post count/non post count groups accessing the board, and deny entry to lurkers, would that work?

crazystu

QuoteYou rock! Would it be too much to ask to throw in a couple of card games like Poker and Black Jack if possible?
Sure thing, I know a video poker game and a few slot games which are open source. I have 2 blackjack games I can convert, but the authors don't seem contactable since there sites are about webdesign.

smacktalk

Quote from: Elijah Bliss on October 29, 2004, 09:23:44 PM
Quote from: nesianstyles on October 29, 2004, 08:52:10 PM
added 8 more games:
ameriman
dragndrop
funkypong
target_shoot
rsnake
cheetah_race
squid_hunter
star_wars

download/view
Also put up a example arcade and a board for support and stuff.

You rock! Would it be too much to ask to throw in a couple of card games like Poker and Black Jack if possible?

A couple of games where multiple members can play at the same time would be awsome!!

Advertisement: