News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Arcade

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

Previous topic - Next topic

Phoenixoverlord

Quote from: Libo on August 05, 2005, 09:07:22 AM


did u run arcade_sql? This is how, www.yoursite.com/arcade_sql.php . Replace the yoursite.com with your sites adress...

Aye aye, I ran it and no problem there. But I only get this when I install the games. Everything else works fine. I think it's because I forgot one instance of ?action somewhere...

DemonicInfluence

what version are u using? maybe reupload sources?

Phoenixoverlord

I'm using 1.1.3. as the 1.2.something is for SMF 1.1 (I'm using SMF 1.0.5.)

niko

I'll try to get a really working version this week or first part of next week... when i get time to setup it to my testing server... (smf 1.0.5 and smf 1.1 beta 3)
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

Col

Hi,

Installed on an unmodded forum, but get the following when I click on games:

QuoteTable 'xxxxxx_smf5.smf_games_category' doesn't exist
File: /home/xxxxxx/public_html/community/Sources/ArcadeAdmin.php
Line: 191

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

And similar messages in Games Installer, and Categories.

I also get the follwing when trying to view posts:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: /home/xxxxxx/public_html/community/Sources/Display.php
Line: 546

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

Help greatly appreciated. :-[

redone

You need to upgrade your forum to SMF 1.05 and install the mod again. Basically your forum and its database versions don't match.

Upgrading and reinstalling the mod should fix that for you.


Col

Hi,

Sorry, no. The forum is a fresh install, version 1.0.5, using fantistico. The forum was workimg fine untill the arcade install.

Col

OK, I've sorted out the problems above, but now I have new ones. :-[

First, why is there no explanation the you must run http://www.YOUR SITE.COM/FORUM NAME/arcade_sql.php? I've looked through the first two pages of this thread, and no mention. It should be in first post! - Is it in a read me file? When you install using the package manager you would see that anyway. :-[

Anyway, the new problem. I now get:

Quote2: Division by zero
File: /home/xxxxxx/public_html/community/Sources/Subs.php
Line: 582

....when I try to use the arcade. :-\

Anyone? - Thanks.

Col

I had to enter some values in the Arcade Settings, it appears to be working now.

This is a fantastic mod, and huge effort has been made to provide some great games, and I am hugely appreciative, but why isn't there a guide at the beginning of this thread. I've managed to work this out, just, and by the skin of my teeth. For the want of a little documentation, this mod package is seriously let down. I do mean this constructively, even if it doesn't come across that way.

Anyway, huge thanks, despite the difficulties.

Col


Fiery

#1170
Quote from: Libo on August 04, 2005, 01:50:40 AM
Go to regular users and check the permissions. Also the admin arcade has the enable arcade thing. make sure its enabled.

Yea I tried to do that but, I got this error:

Parse error: parse error, unexpected ',', expecting ')' in /home/***/public_html/forums/Sources/ManagePermissions.php on line 1045

what do I need to modify on line 1045?

Is there some easy way to find line 1045?

thanks

oldmanwolf

Quote from: pmp6nl on August 05, 2005, 10:27:38 PM
Quote from: Libo on August 04, 2005, 01:50:40 AM
Go to regular users and check the permissions. Also the admin arcade has the enable arcade thing. make sure its enabled.

Yea I tried to do that but, I got this error:

Parse error: parse error, unexpected ',', expecting ')' in /home/***/public_html/forums/Sources/ManagePermissions.php on line 1045

what do I need to modify on line 1045?

Is there some easy way to find line 1045?

thanks

The easiest way to find line 1045 is to open it up in Dreamweaver or some other code editing program.  I think Dreamweaver may even have a trial version you can d/l and try for 30 days, too...  Then just check that line and take out the extra code in it...

Fiery

Quote from: oldmanwolf on August 06, 2005, 01:01:40 AM
Quote from: pmp6nl on August 05, 2005, 10:27:38 PM
Quote from: Libo on August 04, 2005, 01:50:40 AM
Go to regular users and check the permissions. Also the admin arcade has the enable arcade thing. make sure its enabled.

Yea I tried to do that but, I got this error:

Parse error: parse error, unexpected ',', expecting ')' in /home/***/public_html/forums/Sources/ManagePermissions.php on line 1045

what do I need to modify on line 1045?

Is there some easy way to find line 1045?

thanks

The easiest way to find line 1045 is to open it up in Dreamweaver or some other code editing program.  I think Dreamweaver may even have a trial version you can d/l and try for 30 days, too...  Then just check that line and take out the extra code in it...

That fixed that now I got:


Parse error: parse error, unexpected ',' in /home/***/public_html/forums/Sources/ManagePermissions.php on line 1061
From 1049-1080
   

),
         'arcade' => array(
            'view_arcade' => true,
            'play_arcade' => true,
            'submit_score' => true,
            'challenge_send' => true,
            'challenge_view' => true,
            'admin_arcade' => true,
         ),      



      ),
      'board' => array(
         'general_board' => array(
            'moderate_board' => false,
         ),
         'topic' => array(
            'post_new' => false,
            'merge_any' => false,
            'split_any' => false,
            'send_topic' => false,
            'make_sticky' => false,
            'make_gsticky' => false,
            'move' => true,
            'lock' => true,
            'delete' => true,
            'post_reply' => true,
            'modify_replies' => false,
            'remove_replies' => false,
            'announce_topic' => false,
         ),

The error causer is in red.  What do I need to fix now?

Thanks

DemonicInfluence

         'arcade' => array(
'view_arcade' => true,
'play_arcade' => true,
'submit_score' => true,
'challenge_send' => true,
'challenge_view' => true,
'admin_arcade' => true,
),
'board' => array(
'general_board' => array(
'moderate_board' => false,
),
'topic' => array(
'post_new' => false,
'merge_any' => false,
'split_any' => false,
'send_topic' => false,
'make_sticky' => false,
'make_gsticky' => false,
'move' => true,
'lock' => true,
'delete' => true,
'post_reply' => true,
'modify_replies' => false,
'remove_replies' => false,
'announce_topic' => false,
),


THis is waht u need

Fiery

#1174
Quote from: Libo on August 06, 2005, 02:05:31 AM
         'arcade' => array(
'view_arcade' => true,
'play_arcade' => true,
'submit_score' => true,
'challenge_send' => true,
'challenge_view' => true,
'admin_arcade' => true,
),
'board' => array(
'general_board' => array(
'moderate_board' => false,
),
'topic' => array(
'post_new' => false,
'merge_any' => false,
'split_any' => false,
'send_topic' => false,
'make_sticky' => false,
'make_gsticky' => false,
'move' => true,
'lock' => true,
'delete' => true,
'post_reply' => true,
'modify_replies' => false,
'remove_replies' => false,
'announce_topic' => false,
),


THis is waht u need

Thanks for fixing that now I get:

2: Invalid argument supplied for foreach()
File: /home/***/public_html/forums/Sources/ManagePermissions.php
Line: 1150

1148-1153

);

         foreach ($permissionArray as $perm => $has_own_any)
         {
            if (isset($context['group']['id']) && $context['group']['id'] == -1 && in_array($perm, $non_guest_permissions))
               continue;

Is my coding totally messed up or what?

trenchteam

Im using 1.05 of SMF.  Can I use the latest Arcade?

Fiery

Quote from: trenchteam on August 06, 2005, 03:21:12 AM
Im using 1.05 of SMF.  Can I use the latest Arcade?

Dont bother with it... too many errors.  Im going back to older version

nokonium

#1177
Quote from: pmp6nl on August 06, 2005, 02:30:32 AM

Thanks for fixing that now I get:

2: Invalid argument supplied for foreach()
File: /home/***/public_html/forums/Sources/ManagePermissions.php
Line: 1150

1148-1153

);

         foreach ($permissionArray as $perm => $has_own_any)
         {
            if (isset($context['group']['id']) && $context['group']['id'] == -1 && in_array($perm, $non_guest_permissions))
               continue;

Is my coding totally messed up or what?


[edited 7 Aug]
I've been trying to sort Arcade out on my test site and I have done it with a manual install of 1.1.3 (following a manual uninstall of 1.2rp. The arcade install creates the problem.

I may be out of my tree here as I cannot code php, but this isn't a WAG.  8)  I took the permissionlist array apart and came to the conclusion that the problem is caused by the 'arcade' array not being part of the 'membergroup' array. Before you install Arcade the 'membergroup' array and the last child array in it, are closed by the  )  ), following the 'profile' array. I have moved the ) from the 'profile' array to follow the 'arcade' array. Thus 'profile' ends ), and 'arcade' ends ) ),   

I can now set all permissions including arcade and arcade permissions can be set for each membergroup.

This is my modified code.

                      'profile' => array(
                                'profile_view' => true,
                                'profile_identity' => true,
                                'profile_extra' => true,
                                'profile_title' => true,
                                'profile_remove' => true,
                                'profile_remote_avatar' => false,
                         
                        ),
                        'arcade' => array(
                                'view_arcade' => false,
                                'play_arcade' => false,
                                'submit_score' => false,
                                'challenge_send' => false,
                                'challenge_view' => false,
                                'admin_arcade' => false,
                        )
                    ),


Now all I have to do is get rid of the 8: Undefined index: version error



nokonium

Quote from: nokonium on August 06, 2005, 07:36:38 AM
.. now all I have to do is get rid of the 8: Undefined index: version error

I may have a handle on this now, I found the answer on SMF Games.

Line 421 in ArcadeAdmin.Template.php is the offender

        echo "<span class=\"smalltext\"><a href=\"http://www.pahajoki.info\">SMF Arcade {$context['arcade']['version']}</a> &copy; Niko Pahajoki 2004-2005</span>";

Replace it with

        echo "<span class=\"smalltext\"><a href=\"http://www.pahajoki.info\">SMF Arcade 1.1.3</a> &copy; Niko Pahajoki 2004-2005</span>";     



AlexHobbs

Hey guys, im back from my holiday
Anyone need help with the arcade?
Tell me and ill try to help  ;)

Advertisement: