Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Daniel Hofverberg

1
Quote from: Chen Zhen on November 22, 2020, 09:09:09 PMThe arcade has a setting for the url, ensure its root url (prior to /Games) is set to your canonical url.
My "Url To Games" setting in the Arcade has the correct URL, including www; but this particular game doesn't seem to acknowledge that.

Does anyone else have the same problem with Jungle Highway Escape?
2
I have a problem with another game, which doesn't start either; Jungle Highway Escape. The opening screen shows, but then the "Loading" screen never appears.
https://ipsproarcade.com/index.php?/ipsproarcade/playgame/25562-jungle-highway-escape/

And on my site:
https://www.dubbningshemsidan.se/forum/index.php?action=arcade;sa=play;game=256;#playgame

Does that also have to do with UTF-8/ISO-8859-1, or is it a different issue? At a first glance, it looks like a different problem to me.

From the Console:
QuoteUncaught DOMException: Blocked a frame with origin "https://www.dubbningshemsidan.se" from accessing a cross-origin frame.
Access to internal resource at 'https://www.dubbningshemsidan.se/felhantering.php'; (redirected from 'https://dubbningshemsidan.se/forum/Games/JungleHighwayEscape_Origon/gamedata/JungleHighwayEscape_Origon/manifest.json';) from origin 'https://dubbningshemsidan.se' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

To me it looks like the game is trying to access https://dubbningshemsidan.se instead of https://www.dubbningshemsidan.se; I e without the leading www - which of course won't work as it would technically be a different domain.
3
Thank you - I had no idea that script used Hindi variable names. I'll look into it. :)

Quote from: Chen Zhen on November 21, 2020, 05:00:30 PMIf you look at the console log in this arcade (SMF 2.1) or perhaps on Ronald's Arcade (SMF 2.0.17) you will see that this error does not occur.
It is likely from another mod you have installed that has the meta tag displaying on all or many pages of your website.
The problem with the Console warning "The Content Security Policy 'upgrade-insecure-requests' was delivered via a <meta> element outside the document's <head>, which is disallowed. The policy has been ignored." does not seem to originate with another mod. I have searched through all files on the entire server for the string 'upgrade-insecure-requests' and the only matches were in ArcadeSources/ArcadeGame.php and Sources/Arcade.php - I assume both of those files originate from SMF Arcade, unless I still have some garbage left from e-Arcade...?

And that warning has most definitely nothing to do with UTF-8, and appears on all pages belonging to the Arcade.
4
Quote from: Chen Zhen on November 20, 2020, 10:23:08 PMCan I see a link to your arcade so I can test playing the game on your website?
Sure. My web site is in Swedish, so you may not understand everything, but here is a direct link to this particular game:
https://www.dubbningshemsidan.se/forum/index.php?action=arcade;sa=play;game=263#playgame

At least for me, the opening screen displays fine as well as the "Loading..." progress bar, but then only a black screen along with the JavaScript errors mentioned in the Console.

All other games I've tested with works fine.


For all pages in the Arcade, the Console also displays this warning:
"The Content Security Policy 'upgrade-insecure-requests' was delivered via a <meta> element outside the document's <head>, which is disallowed. The policy has been ignored."

But I assume that has nothing to do with the problem with this particular game?
5
Quote from: Chen Zhen on November 20, 2020, 07:02:32 PMAre you uploading it using the HTML5 script?
Yes, I am.
6
Quote from: Chen Zhen on November 18, 2020, 06:27:46 PMIt should be working as I don't see any issues with it at the moment.

The shoutbox has been changed from when it was E-Arcade to a javascript + ajax auto refresh.
However it uses the same database table.

Does your shoutbox still have shouts in it from when you used E-Arcade?
Perhaps try clearing the shoutbox contents in the Arcade maintenance section & then try it again.
The old shouts from e-Arcade didn't transfer over automatically, as the database table is apparently named smf_arcade_newshouts now, whereas e-Arcade used the table name smf_arcade_shouts. It was easy to move over the old shouts from e-Arcade though, by moving over the posts automatically to the new table (as it had the same structure as the old one).

With or without shots made no difference though. I can still shout manually by typing a message in the text box and clicking "Shout", but no shouts are made automatically when someone scores in any of the games. :(
7
Quote from: Chen Zhen on November 19, 2020, 11:08:29 PMIt seems to be working when I test it on WebDev.
Strange - it seems to work fine when I play it on this site as well, but it doesn't work on my site.

Wonder why...? I'm not sure why the JavaScript would result in "gamevars is not defined"...
8
The game Magical Driving from Ipsproarcade (one of the sites you link to from here) doesn't seem to work on SMF Arcade, even though it works on their site.
https://ipsproarcade.com/index.php?/ipsproarcade/playgame/25581-magical-driving/

On my installation, I only get a black screen and the Console reports the following JavaScript errors:

Quotelgapi.min.js:20 Uncaught SyntaxError: Invalid or unexpected token
magical_driving.js?1525801996639:1 Uncaught ReferenceError: gamevars is not defined
    at _0xf834x4.<computed>.<computed> [as frame_1] (magical_driving.js?1525801996639:1)
    at a.b._runActions (createjs-2015.11.26.min.js??kversion=1.0.0:17)
    at a.b.setPosition (createjs-2015.11.26.min.js??kversion=1.0.0:17)
    at a.b.setPosition (createjs-2015.11.26.min.js??kversion=1.0.0:17)
    at _0xf834x4.<computed>.c._updateTimeline (createjs-2015.11.26.min.js??kversion=1.0.0:14)
    at _0xf834x4.<computed>.c.advance (createjs-2015.11.26.min.js??kversion=1.0.0:14)
    at _0xf834x4.<computed>.c._tick (createjs-2015.11.26.min.js??kversion=1.0.0:14)
    at _0xf834x4.<computed>.b._tick (createjs-2015.11.26.min.js??kversion=1.0.0:13)
    at _0xf834x4.<computed>.b.tick (createjs-2015.11.26.min.js??kversion=1.0.0:13)
    at _0xf834x4.<computed>.b.update (createjs-2015.11.26.min.js??kversion=1.0.0:13)

Am I doing something wrong, is the game broken or is this particular game not compatible with SMF Arcade?
9
Quote from: Chen Zhen on November 17, 2020, 05:33:28 PMIf you have that enabled and saved in arcade settings the member scores should be posted to the arcade shoutbox. Arena and guest scores also have a setting for it.
Sounds strange, because I have all three options enabled in Arcade Settings and nothing has been posted to the shoutbox.

Is there anything else I need to do besides checking the checkboxes in the Arcade Settings? Or doesn't scores from administrators count, as it's only me who has played so far? Or can you think of any other reason why it wouldn't post scores to the shout?
10
Quote from: Chen Zhen on November 13, 2020, 10:10:56 PMI assume this is only occurring for games from E-Arcade?

If you have the "Auto Adjust Improper Save Types" option enabled then it is likely adjusting the save type the first time when played and a score save has been attempted.

E-Arcade did not have game save types in the database therefore some games that were from E-Arcade & never played on SMF Arcade will have the wrong save type in the database (default is SMF v1).
With the above option enabled, SMF Arcade should attempt to adjust the save type for you as scores are saved to the database.
Unfortunately the game may not save a score the first time because the arcade had to adjust it afterward. 

You can also use "Enable save type debug logging" temporarily in the arcade settings to see if this is happening so when it adjusts a game it will put a message in the error log.
You don't have to keep the setting enabled all the time but it's there to debug these type of problems so you can see what's going on.
Yes, it's only happening with games from e-Arcade. So far it seems to work the second time when the game has been played once, with the "Auto Adjust Improper Save Types" enabled.


One question though: Is the purpose of the setting "Shout Member Scores" so that new scores will be added to the arcade shout, just like it was in e-Arcade? If it is, then it doesn't seem to work. When I play games and submit scores, the scores appear in the "Latest scores" section at the bottom of the arcade index, but nothing is added to the arcade shout.
11
Quote from: Skhilled on November 14, 2020, 09:19:27 PM
Quote from: Daniel Hofverberg on November 09, 2020, 06:18:30 AMNote: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.17, while your database is at version 2.0. The above error might possibly go away if you execute the latest version of upgrade.php."

What does that mean, and how do I resolve this?


It means that you've probably upgraded your forum via the admin link in SMF instead of doing it manually. This is a long time bug that they refuse to acknowledge or fix. To fix it, follow this article I've created long ago in the link below. Just make sure that you download the large upgrade package for the SMF version that you are currently using (2.0.17) found here:

https://download.simplemachines.org/

Then follow the article I've made here:

https://www.docskillz.com/docs/index.php?page=page202
Thank you. I have managed to upgrade the database now.

It had nothing to do with this issue, as was resolved in this thread, apart from getting rid of the message about the outdated database - but of course it's good to have the latest database structure for SMF.
12
Quote from: Chen Zhen on November 13, 2020, 07:18:29 AMYou need to copy the arcade folder from your files you had on your old host.

It contains gamedata files that are necessary for some IBP flash games.
Thank you. I thought I had copied everything over from the old host, but I see now that some files and folders under arcade was corrupt in the backup for some strange reason.

I have now copied over everything again manually, and it seems to work. :)

2 or 3 times I have received this error message when submitting scores though:
"Score was not saved because session is missing"

But so far I haven't been able to get the same message twice, and it seems to work when re-playing the same game one more time. Still a little bit annoying to not get to save the score, when you have played for quite some time though... :( Any idea why?
13
Quote from: Chen Zhen on November 12, 2020, 07:35:02 PMDid you end up using the RC version I gave you to keep your E-Arcade scores?
I'm curious about my adjustments working properly for people switching from E-Arcade.
Yes, I'm using the RC version. All games from e-Arcade shows up, as well as all old scores. Some of them also submits and saves correctly. But with a lot of games, I can't submit/save the score, because I keep getting the following error message after submitting:
"This game requires a score greater than 0."

Even though I have scored greater than zero.

This applies at least to Avalanche Run, Sonic Bowling, ScoobyDoo Plane Trip, SpongeBob SquarePants: The Snowboard Race, Tom And Jerry In Midnight Snack, Tom & Jerry - Run Jerry Run, Bugs Bunny Hopping Carrot Hunt and Krabby Ball - probably other games as well. But some games do work properly, so I'm not sure what makes some games work and some result in that error message.

Any idea why?
14
Quote from: Chen Zhen on October 21, 2020, 08:24:20 PMThere is a skin & list available that is close to what you had in E-Arcade as well.
Could you please tell me what skin and list type (and possibly other settings) I should choose, in order to get a look as close to e-Arcade as possible?

I have tried looking around in the Arcade Settings, but there isn't a lot of information available on what everything means...
15
That worked, thank you so much for your helå. :) I have been able to install it now.

For some reason, the database had a default collation of that weird utf8_mb4_0900_ai_ci, which I have never willingly opted for.

I can only assume it must have happened when I recently switched to a new server host (as the old host shut down) - it seems that utf8mb4_0900_ai_ci is the default collation since MySQL 8.0 (for some strange reason), so apparently it must have used the default for the database itself when I imported the dump from the old server. Very annoying... :(

I'm so sorry for wasting your time with something that apparently wasn't SMF Arcade's fault. :-[