SMF Arcade

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

Previous topic - Next topic

niko

Quote from: DoW Kid Rock on December 18, 2004, 01:21:55 PM
ok I did the beta5b upgrade and am able to go in and fill the information in, but when I go back to the arcade and select the game it comes to the screen that has the game name, but the swf file doesn't load.

I thought it might be mozilla, but have tried it in IE and nothing. 

also does anyone have a good site to download the thumbnails needed?

thank you

is your html code correct?

Quote from: johnm on December 18, 2004, 09:37:28 AM
just a question about installing new games can you make up a class id for the games or does it have to be some thing specific?

i.e duck hunt game id =classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
and say tetris game =classid="clsid:d27cdb6e-ae6d-11cf-96b8-4445535569872"

thanks

Both seems to be working but use first one :)
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

DoW Kid Rock

ok this is going to sound stupid, but what html code do I put in there?

I tried putting in this:

on (press){
   set (score,high);
   set (act,"submit"); // No longer required
   set (game,"<game id>"); // Use same for filename and you don't need to write it to some where if you are lazy
   getURL (index.php?action=arcade", "_self", "POST");
}




which was suggested somewhere in this thread, but all it did what print the code on the screen

help!

thank you

johnm

im guessing you want to know what html code do you put in use some thing like:

<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"> <param name="allowScriptAccess" value="sameDomain"> <param name="movie" value="Games/duckhunt.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#000000"><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"></object>

thats what i did and it seems fine you will need to change the classid to some thing uniqe
and change the name of the swf file

TodaysXt

Quote from: johnm on December 18, 2004, 08:44:05 PM
im guessing you want to know what html code do you put in use some thing like:

<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"> <param name="allowScriptAccess" value="sameDomain"> <param name="movie" value="Games/duckhunt.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#000000"><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"></object>

thats what i did and it seems fine you will need to change the classid to some thing uniqe
and change the name of the swf file

Thanks so much , just what I needed.  Works great , thanks
Xt.

TodaysXt

_complex

Quote from: DoW Kid Rock on December 15, 2004, 12:17:52 PM
I tried the auto install, but had to unzip the folder first then zip the contents. then I installed from the package manager and it said it worked, but ended up doing everything by hand.

anyway my problem is that when I go to the arcade and click on admin, then try to change the options it says "Invalid action"

I try to add a game, but it just comes to the main arcade screen again.

looks like it would be an awesome mod if I could get it working

I have RC2 just in case you need to know that

Okay i am having the same problem as this person.

So when i added snake.swf and went into the games admin panel and clicked on snake.swf

it came up with this error
Fatal error: Cannot instantiate non-existent class: swfheader in /public_html/smf1/Sources/Arcade.php on line 322

what's the problem with this?

DoW Kid Rock

did you install the beta5b?

I had that same problem and it was fixed with b.  also did you run the sql query to add the tables to your database?

_complex

Quote from: DoW Kid Rock on December 19, 2004, 01:42:30 AM
did you install the beta5b?

I had that same problem and it was fixed with b. also did you run the sql query to add the tables to your database?

yes i did install betab and i just ran the install.php function that came with the mod...

TodaysXt

Quote from: nviceversa on December 19, 2004, 01:37:25 AM
Quote from: DoW Kid Rock on December 15, 2004, 12:17:52 PM
I tried the auto install, but had to unzip the folder first then zip the contents. then I installed from the package manager and it said it worked, but ended up doing everything by hand.

anyway my problem is that when I go to the arcade and click on admin, then try to change the options it says "Invalid action"

I try to add a game, but it just comes to the main arcade screen again.

looks like it would be an awesome mod if I could get it working

I have RC2 just in case you need to know that

Okay i am having the same problem as this person.

So when i added snake.swf and went into the games admin panel and clicked on snake.swf

it came up with this error
Fatal error: Cannot instantiate non-existent class: swfheader in /public_html/smf1/Sources/Arcade.php on line 322

what's the problem with this?

I don't know if my Arcade.php is the same as yours?  What do you have on line 322 of that file?

Anyway it might have to do with this .. .
include 'swfheader.php';
I think it goes in the root of your smf dir. CHMOD to 777.
Try that. 

TodaysXt

_complex

Lol thanks^ forgot to upload that file  ;D

TodaysXt

Quote from: nviceversa on December 19, 2004, 03:43:05 AM
Lol thanks^ forgot to upload that file  ;D

No Problem, I hope that's all it was.
I'm trying to get this ready and give it to the board as a Christmas present.  Games for everyone.
Merry Christmas
Xt.

TodaysXt

diplomat.

im having a few errors
i can get to the arcade section, but at the very top it has this error


Notice: Undefined index: install in /var/www/html/forums/Sources/Arcade.php on line 35


and between the Arcade panel and the games table, has these errors

Notice: Undefined variable: i in /var/www/html/forums/Themes/default/Arcade.template.php on line 105
Notice: Undefined variable: i in /var/www/html/forums/Themes/default/Arcade.template.php on line 107
Notice: Undefined variable: i in /var/www/html/forums/Themes/default/Arcade.template.php on line 108
Notice: Undefined variable: i in /var/www/html/forums/Themes/default/Arcade.template.php on line 110


:-\
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

amiga

Hello!

In the admin , when i clic on "arcade setting"  (index.php?action=arcade;do=admin;sub=settings)...all i have is the message: invalid action

what can i do?

:-*

diplomat.

yeah i have that and these also


Notice: Undefined index: sub_action in /var/www/html/forums/Themes/BlueChill/Arcade.template.php on line 185
Notice: Undefined index: sub_action in /var/www/html/forums/Themes/BlueChill/Arcade.template.php on line 236
Notice: Undefined index: sub_action in /var/www/html/forums/Themes/BlueChill/Arcade.template.php on line 246
Notice: Undefined index: sub_action in /var/www/html/forums/Themes/BlueChill/Arcade.template.php on line 249
Notice: Undefined index: sub_action in /var/www/html/forums/Themes/BlueChill/Arcade.template.php on line 295
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

niko

Settings are not yet changable but...

Notices shows because i have missing some isset() checks but you can set to not display them...
i will fix these to 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

diplomat.

how do i set to not display them because i turned off that display_errors thing in php.ini but that doesnt turn those Notices off.
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

niko

error_reporting(E_NONE); i think
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

4dd1ct

I got a game to work by adding it using phpmadmin, however no matter where I enter the $games= array into my arcade.php no new games show up. Am I doing something stupid here?

Pause

Quote from: 4dd1ct on December 21, 2004, 07:02:11 AM
I got a game to work by adding it using phpmadmin, however no matter where I enter the $games= array into my arcade.php no new games show up. Am I doing something stupid here?
try going to index.php?action=arcade&do=admin and installing that way - that should do it.
"You and me, inside that box, now." - The Doctor

Bite Fusion
Fusion Web Network
VG Fusion
Wrestling Fusion

4dd1ct

#138
Thanks for the reply.

Unfortunately,  that's my second problem - if I visit the admin section I just get a blank-ish forum page with my username at the top. I am logged into smf as admin but that doesn't seem to change anything. I've tried reinstalling the mod and with different versions but that doesn't seem to make any difference.

As I say, seems to be installed ok though because if I add games manually they work. :(

Pause

Quote from: 4dd1ct on December 21, 2004, 08:24:31 AM
Thanks for the reply.

Unfortunately,  that's my second problem - if I visit the admin section I just get a blank-ish forum page with my username at the top. I am logged into smf as admin but that doesn't seem to change anything. I've tried reinstalling the mod and with different versions but that doesn't seem to make any difference.

As I say, seems to be installed ok though because if I add games manually they work. :(
Which forum version are you using?
"You and me, inside that box, now." - The Doctor

Bite Fusion
Fusion Web Network
VG Fusion
Wrestling Fusion

Advertisement: