News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Arcade

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

Previous topic - Next topic

soapbath

nesianstyles; Have you got them arrays?

Elijah Bliss

Quote from: soapbath on November 11, 2004, 08:33:08 PM
nesianstyles; Have you got them arrays?

Here are some from the games I installed, hopefully this helps:
array('Duck Hunt', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'duckhunt\', \'Duck Hunt\', \'<center><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></center>\', \'\', \'Duck Hunt. Classic Arcade Game.\')'),
array('Tetris', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'tetris\', \'Tetris\', \'<center><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="tetris.swf" align="middle">\r\n<param name="allowScriptAccess" value="sameDomain" />\r\n<param name="movie" value="Games/tetris.swf" />\r\n<param name="quality" value="high" />\r\n<param name="bgcolor" value="#ffffff" />\r\n<embed src="Games/tetris.swf" quality="high" bgcolor="#ffffff" width="640" height="480" name="tetris" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\r\n</object></center>\', \'\', \'Shaped blocks fall into a pit where you must arrange them so they fit neatly.\');'),
array('Simon', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'simon\', \'Simon\', \'<center><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="simon.swf" align="middle">\r\n<param name="allowScriptAccess" value="sameDomain" />\r\n<param name="movie" value="Games/simon.swf" />\r\n<param name="quality" value="high" />\r\n<param name="bgcolor" value="#000000" />\r\n<embed src="Games/simon.swf" quality="high" bgcolor="#000000" width="640" height="480" name="simon" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\r\n</object></center>\', \'\', \'Follow the pattern of lights and sounds. \');'),
array('Space Hunter', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'spacehunter\', \'Space Hunter\', \'<center><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></center>\', \'\', \'Space Hunter. Classic Space Game.\')'),
array('Asteroids', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'asteroids\', \'Asteroids\', \'<center><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></center>\', \'\', \'Asteroids. Classic Arcade Game.\')'),
array('Invaders', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'invaders\', \'Invaders\', \'<center><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="invaders.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/invaders.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/invaders.swf" quality="high" bgcolor="#000000" width="450" height="393" name="invaders.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center>\', \'\', \'Invaders. Classic Arcade Game.\')'),
array('Eskiv', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'eskiv\', \'Eskiv\', \'<center><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="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></center>\', \'\', \'Collect blocks. But beware of the balls.\');'),
array('Ping Pong', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'pingpong\', \'Ping Pong\', \'<center><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="pingpong.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/pingpong.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/pingpong.swf" quality="high" bgcolor="#000000" width="450" height="393" name="pingpong.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center>\', \'\', \'Ping Pong. Classic Game.\')'),
array('Air Fox', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'airfox\', \'Air Fox\', \'<center><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="airfox.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/airfox.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/airfox.swf" quality="high" bgcolor="#000000" width="450" height="393" name="airfox.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center>\', \'\', \'Air Fox. Shoot enemies out of the sky.\')'),
array('Slots', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'slots\', \'Slots\', \'<center><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="slots.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/slots.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/slots.swf" quality="high" bgcolor="#000000" width="450" height="393" name="airfox.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center>\', \'\', \'Slots. Casino Game.\')'),
array('Video Poker', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'videopoker\', \'Video Poker\', \'<center><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="videopoker.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/videopoker.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/videopoker.swf" quality="high" bgcolor="#000000" width="450" height="393" name="videopoker.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center></center>\', \'\', \'Poker. Casino Game.\')'),
array('Seconds of Madness', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'secondsofmadness\', \'Seconds of Madness\', \'<center><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="secondsofmadness.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/secondsofmadness.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/secondsofmadness.swf" quality="high" bgcolor="#000000" width="450" height="393" name="secondsofmadness.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center>\', \'\', \'Seconds of Madness. Obstacle Game.\')'),
array('Pacman', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'pacman\', \'Pacman\', \'<center><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></center>\', \'\', \'Pacman. Classic Arcade Game.\')'),
array('Frogger', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'frogger\', \'Frogger\', \'<center><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="frogger.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/frogger.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/frogger.swf" quality="high" bgcolor="#000000" width="450" height="393" name="frogger.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center>\', \'\', \'Frogger. Classic Arcade Game\')'),
array('Breakout', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'breakout\', \'Breakout\', \'<center><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></center>\', \'\', \'Breakout. Classic Arcade Game.\')'),
array('Mumu', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'mumu\', \'Mumu\', \'<center><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="mumu.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/mumu.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/mumu.swf" quality="high" bgcolor="#000000" width="450" height="393" name="mumu.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center>\', \'\', \'Mumu. Puzzle Game.\')'),
array('Jewels', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'jewels\', \'Jewels\', \'<center><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="jewels.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/jewels.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/jewels.swf" quality="high" bgcolor="#000000" width="450" height="393" name="jewels.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center>\', \'\', \'Jewels. Classic Game.\')'),
array('Plasmanaut', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'plasmanaut\', \'Plasmanaut\', \'<center><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="plasmanaut.swf" align="middle">\r\n   <param name="allowScriptAccess" value="sameDomain">\r\n      <param name="movie" value="Games/plasmanaut.swf">\r\n      <param name="quality" value="high">\r\n      <param name="bgcolor" value="#000000">\r\n      <embed src="Games/plasmanaut.swf" quality="high" bgcolor="#000000" width="450" height="393" name="plasmanaut.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\r\n</object></center>\', \'\', \'Plasmanaut. Blast enemies out of space.\')'),
array('Karts', 'INSERT INTO '.$db_prefix.'games VALUES (\'\',\'karts\', \'Karts\', \'<center><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></center>\', \'\', \'Karts. Classic Racing Game.\')')

Hoolio

eh to get your own flash games from sites... download getright the downloading program. then look @ the page source and see what the .swf is called on that page put the url of it into getright and BAM! u have it on your pc

Bullcat Webhosting

Yes but not high scores !


Wij ondersteunen SMF forums & safe mode staat uit.

Oldiesmann

What about PNFlashGames.com? Has anybody contacted them yet? They've got a ton of great games.

Kindred

Not to mention, Hoolio... doing it that way (without permission from the author) and then posting the game to your site is illegal.

There are a number of SWF and Flash-optimized games available for download, both free and registered. Why do something illegal?

(BTW: I have a PNFlash component for Mambo, which allows the SMF games to be run under Mambo as well...  now I just have to get the SMF-scoring component installed correctly. LOL!)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Trekkie101

Right ive just downloaded the mod, installed it and well tried www.mydomain.com/place/index.php?=action=arcade but it doesnt work, any tips on howm to get to the actual page of the arcade, couldnt find anything here,

Also it was the bigger file beta 4 i downloaded is that wrong?

diplomat.

avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

niko

Quote from: kindred on November 12, 2004, 02:57:40 PM
Not to mention, Hoolio... doing it that way (without permission from the author) and then posting the game to your site is illegal.
Yes it is.

Quote from: kindred on November 12, 2004, 02:57:40 PM
There are a number of SWF and Flash-optimized games available for download, both free and registered. Why do something illegal?
True. flashkit.com is good place to find. Google also

Quote from: kindred on November 12, 2004, 02:57:40 PM
(BTW: I have a PNFlash component for Mambo, which allows the SMF games to be run under Mambo as well...  now I just have to get the SMF-scoring component installed correctly. LOL!)

SMF Games to be ran on PNFlash, maybe i should reprisal and make smf acade support pnflash games... or then not i don't have time :P
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

Trekkie101

Erm the address you gave me didnt work (i changed it) i still cant get my acracde working.

niko

Quote from: Trekkie101 on November 18, 2004, 01:20:38 PM
Erm the address you gave me didnt work (i changed it) i still cant get my acracde working.

So what's error that comes? If it's about sql queries read readme.
if board index shows up repair index.php's action array (add arcade there) line can be found at readme too
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

#91
Seems to work fine in 1.0 preview. I still think you should either center the games or make use of all that extra space and display your high score and the top 10 high scores for that game.

Did find one bug though.

Sources/Arcade.php

Find
array(
'Eskiv',
'INSERT INTO pahajoki_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 \');')
);


Replace
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 \');')
);


Otherwise Eskiv won't install.

Oldiesmann

I have a suggestion. Currently you have to add a query to Sources/Arcade.php everytime you want to add a game, and you can't uninstall a game without having to add a query for it or deleting it in phpMyAdmin. Why not have it read the Games directory, make an array of all the games in the directory, and then go through the games table and see which ones are installed? Then you can output an "install" link for every game that isn't installed and add an "uninstall" link for each game that is installed. This will prevent accidentally installing a game twice (you might want to make that a UNIQUE value) and will make things a bit easier to manage.

Oldiesmann

Quote from: nesianstyles on November 05, 2004, 02:48:53 PM
Downloads are now in categorys, I also have added a new design, more games, a cool web ftp thing to upload files and got permission from ghost to do seconds of madness (cool game) and mumu (like Trytrist). I am contacting matmi and ultimate arcade at the moment to see if I can do their games.

puzzel games:
secondsofmadness
mumu

classic games:
airfox
frogger
invaders
jewels
mahjong
pacman
pingpong
simon
tetris

download/view

I tried both Plasmanaut and Airfox and both of those went directly to .../index.php?action=arcade instead of .../index.php?action=arcade&do=submit when the game ended. (Plasmanaut you have to click submit, but still...)

niko

Quote from: Oldiesmann on November 19, 2004, 09:58:40 PM
I have a suggestion. Currently you have to add a query to Sources/Arcade.php everytime you want to add a game, and you can't uninstall a game without having to add a query for it or deleting it in phpMyAdmin. Why not have it read the Games directory, make an array of all the games in the directory, and then go through the games table and see which ones are installed? Then you can output an "install" link for every game that isn't installed and add an "uninstall" link for each game that is installed. This will prevent accidentally installing a game twice (you might want to make that a UNIQUE value) and will make things a bit easier to manage.

Next version has Games Area on arcade admin, also next version will generate html code for flash on fly. This makes easier for do this. I think i make something like this (Install/Unistall/Edit) curerntly edit and remove is working.


Quote from: Oldiesmann
Seems to work fine in 1.0 preview. I still think you should either center the games or make use of all that extra space and display your high score and the top 10 high scores for that game.

This will be too 'fixed' in next version
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

Cool. Can't wait. What about displaying the high scores on the main arcade page? Is that going to be taken care of in the next version?

crazystu

Quote from: Oldiesmann on November 19, 2004, 10:24:26 PM
I tried both Plasmanaut and Airfox and both of those went directly to .../index.php?action=arcade instead of .../index.php?action=arcade&do=submit when the game ended. (Plasmanaut you have to click submit, but still...)

Have you done this?
Quote from: Nikoin 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


RGSMDNR

can someone explain how to add the button?

thanks

RGSMDNR

i can only get 2 games to submit scores... duck hunt and Eskiv,

is there something im missing for the other games?

Bullcat Webhosting

Read this whole treath !! there a lots of games now !


Wij ondersteunen SMF forums & safe mode staat uit.

Advertisement: