Daily Lucky Numbers:
8
12
19
29
39
40

Recent posts

#1
SMF Arcade Support + Plugins / Re: smf: errors in adminlog
Last post by AllMassive - January 29, 2023, 07:30:04 PM
Thank you - it seems not to happen anymore.
#2
Battle Support / Battle-Mod Code on Github
Last post by AllMassive - January 29, 2023, 07:28:09 PM
The Code for the Battle-Mod on the linked Github-Repo doesnt contain the latest Version.
Is there a reason for this?
#3
EhPortal Support / Re: sp_profiles missing
Last post by grandseb59 - January 27, 2023, 02:54:28 PM
to make a return, so the problem is not solved as such.
on 2 subdomains, we managed to install it on one, we don't know how... why we succeeded on one side and not on the other when we started from the same forum.
And we just copied and pasted the missing table to put it in the one where I had the error.

So for the moment the problem is solved but it's just a DIY job.
#4
SMF Arcade Support + Plugins / Re: Problem Saving Score - Clu...
Last post by Chen Zhen - January 16, 2023, 09:01:18 PM

Those were the original games released for SMF Arcade when I first introduced HTML5/JavaScript game support.
I don't think IBP (Invision) Arcade or other common forum Arcade platforms had HTML5 game support at that time (I could be wrong).
When IBP Arcade came out with support I came up with a different save sub-routine that works for both & for various forum directory scenarios. The save routine in the Arcade support board stickies will likely work properly if you know how to apply it.

I'll have a look at those older games in the first HTML5 gamepack & update their save codes.
Thanks for the report.
#5
SMF Arcade Support + Plugins / Re: Problem Saving Score - Clu...
Last post by phum - January 16, 2023, 12:38:28 PM
Quote from: phum on January 14, 2023, 12:15:07 PMOk.  So I seemed to have fixed the save game for Clumsy Bird on my site (maybe it is only a Clumsy Bird issue???)  Here is what I did: commented out the first line of code in saveGameSmf() that tries to grab the 'savegamescore' field.  I don't see this field existing in any code anywhere in Clumsy Bird, and it seems to be getting passed in as a parameter.  So is this a bug?

function saveGameSmf(newhighscore)
{
//var newhighscore = document.getElementById('savegamescore').innerHTML;
var gameSmfFullscreen = document.getElementById("gameSmfFullscreen") != undefined ? document.getElementById("gameSmfFullscreen").value : 0;
if (parseInt(gameSmfFullscreen) == 1)
...

Thought I would mention this bug seems to exist in several of the games that are part of the game pack downloads.  I have found it in at least Clumsy Bird, Digger, and Hextris.
#6
SMF Arcade Support + Plugins / Re: Problem Saving Score
Last post by phum - January 14, 2023, 12:15:07 PM
Ok.  So I seemed to have fixed the save game for Clumsy Bird on my site (maybe it is only a Clumsy Bird issue???)  Here is what I did: commented out the first line of code in saveGameSmf() that tries to grab the 'savegamescore' field.  I don't see this field existing in any code anywhere in Clumsy Bird, and it seems to be getting passed in as a parameter.  So is this a bug?

function saveGameSmf(newhighscore)
{
//var newhighscore = document.getElementById('savegamescore').innerHTML;
var gameSmfFullscreen = document.getElementById("gameSmfFullscreen") != undefined ? document.getElementById("gameSmfFullscreen").value : 0;
if (parseInt(gameSmfFullscreen) == 1)
...
#7
SMF Arcade Support + Plugins / Problem Saving Score - Clumsy ...
Last post by phum - January 14, 2023, 09:55:52 AM
I started a new topic because I think this is a larger issue my with config than just the one game - Clumsy Bird.  I see this error in the console when trying to save a game in Clumsy Bird:

gameoversave.js:3
    Uncaught TypeError: Cannot read properties of null (reading 'innerHTML')
    at saveGameSmf (gameoversave.js:3:61)
    at d.onResetEvent (clumsy-min.js:1:11000)
    at d.reset (melonJS-min.js:16:10724)
    at Object.f (melonJS-min.js:16:11650)

Interestingly, Pac Man does not seem to have any issues saving scores. 
Any ideas? 

I did confirm that it created an .htaccess file in the Games directory (code below):

#<!-- Apache File Created by SMF Arcade 2.6.9.4 -->
<IfModule mod_headers.c>
    <FilesMatch "\.(html)$">
        Header always set X-Frame-Options SAMEORIGIN
    </FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} arcade_score\.php
    RewriteRule ./* ../arcade/arcade_score.php?act=arcade&scoreprep=prepscore
    RewriteCond %{REQUEST_URI} highscore=1
    RewriteRule ./* ../arcade/arcade_score.php?scoreprep=1&gameid=45&highscore=1
    RewriteCond %{QUERY_STRING} ^act=Arcade&do=(.*)$
    RewriteRule ./* ../index.php?act=Arcade&do=newscore
</IfModule>
<IfModule mod_security.c>
    <FilesMatch ".(zip|tar|rar|gz)$">
        SecFilterEngine Off
        SecFilterScanPOST Off
    </FilesMatch>
</IfModule>
<Files ^(*.jpeg|*.jpg|*.png|*.gif|*.tiff|*.bmp|*.php|*.html)>
    Order Deny,Allow
    Deny from all
    Allow from localhost
</Files>
AddCharset UTF-8 .php
AddCharset UTF-8 .html
AddCharset UTF-8 .htm
AddCharset UTF-8 .js
RemoveHandler .php3 .phtml .cgi .fcgi .pl .fpl .shtml
#8
SMF Arcade Support + Plugins / Re: Users blocking popups
Last post by phum - January 14, 2023, 09:05:17 AM
So I was able to find the popup blocker setting and turned it off but it still is not submitting a score.  Maybe this is not a popup issue.  Does anyone know if popups are required in order to submit scores for any games?
#9
SMF Arcade Support + Plugins / Users blocking popups - Is thi...
Last post by phum - January 13, 2023, 02:18:23 PM
This may be a dumb question, but we just started playing around with the arcade in SMF and we had a few users who at some point answered "No" to the typical browser popup that asks if the site can send messages or whatever that message is.  Problem is that some games like Clumsy Bird require this little popup in order to submit a score.  Without that popup, it seems to just lock up or do nothing.

I've been looking through browser settings and I can find a place to have the user go back and enable it again.  Can someone point me in the right direction?

Thanks!
#10
EhPortal Support / Re: sp_profiles missing
Last post by Chen Zhen - January 12, 2023, 05:51:05 PM

My apologies for the late response as I've been rather busy this week.

You shouldn't have to run the SMF upgrade after a messed up EhPortal installation.
All you have to do is delete the package from your packages page, download & install the EhPortal removal package (if it shows errors it's ok - ignore them) & then delete it.

I think the problem may be the creation/update of the sp_parameters table indexes.

Try the attachment & let me know if it works afterward.