WebDev

SMF Arcade => SMF Arcade Support + Plugins => Topic started by: Phantom_Hugger on November 06, 2020, 04:40:46 PM

Title: Arcade not saving scores
Post by: Phantom_Hugger on November 06, 2020, 04:40:46 PM
Hi Chen,
  I'm a total newb about setting up the the arcade saving new scores.

Because every time I play a game it takes me to a blank page.

http://dmtclan.com/Games/index.php?act=Arcade&do=newscore  <== this is my test site

Do I create " arcade.html52.js " and put everything you posted in it?
Where do I put it?
Or Does it get copied into the index.php?
I'm so lost. :o
Title: Re: Arcade not saving scores
Post by: Phantom_Hugger on November 06, 2020, 05:11:23 PM
The game I installed is Jewel, which is a html5 game.
Title: Re: Arcade not saving scores
Post by: Phantom_Hugger on November 06, 2020, 05:18:25 PM
Sorry for all the post... I didn't see how to modify my previous post.
I'm using SMF 2.0.17 by the way ;D
Title: Re: Arcade not saving scores
Post by: Chen Zhen on November 06, 2020, 07:00:43 PM
The reference to the file is for people that want to adapt/edit games to save on this arcade that normally would not do so.
Almost all the games you download from here or the sites in the games resource list should already work on this arcade.
If they save a score on this website or any other SMF Arcade website then they should work on your site.
Almost all the IBP Arcade HTML5 games should also work & save score for your arcade.
There must be something in your site settings or arcade settings specifically that is causing the problem.

Title: Re: Arcade not saving scores
Post by: Phantom_Hugger on November 06, 2020, 07:35:35 PM
Thanks for the reply, Chen ;D
Everything checks out with everything you wrote.
Could it be that the game settings is incorrect?
I attach a picture of it.
Title: Re: Arcade not saving scores
Post by: Chen Zhen on November 06, 2020, 07:50:03 PM
That looks correct.

In your arcade admin for Url to Games & Path to Games Directory, did you click on the recommended links to adjust those settings & then save those settings?
Title: Re: Arcade not saving scores
Post by: Chen Zhen on November 06, 2020, 07:52:31 PM
Actually that game is HTML5 v2 .. not v1.
When you installed that game it should have set it properly.
Did you edit that saving setting?
Change it to IBP HTML5 v2
Title: Re: Arcade not saving scores
Post by: Phantom_Hugger on November 06, 2020, 09:22:22 PM
I put it back to this after I had tried it originally at v2 ibp.
Figured let me try it at v1 to see if this made a difference.
I took the picture, then put it back to the original settings.

The game works but after playing it... but still goes to the blank high score page.
http://dmtclan.com/Games/index.php?act=Arcade&do=newscore
I tried one more game, installed Plumber Duck same thing happens.

Even when I check the High score tab, it's empty

Attaching pictures of arcade screen and high sore tab screen.
Title: Re: Arcade not saving scores
Post by: Chen Zhen on November 06, 2020, 09:32:04 PM

From the list of things to check you stated all is ok but your site is not secure.
You need to set up SSL ( https )
Title: Re: Arcade not saving scores
Post by: Phantom_Hugger on November 06, 2020, 09:48:22 PM
OMG! I forgot that This site is not Https
I'll install it on my main site now and see what happens, which is https ;D
I'll get back to you :)
Title: Re: Arcade not saving scores
Post by: Phantom_Hugger on November 06, 2020, 10:00:51 PM
Same thing happens at my main site.
https://phantomhugger.com/Games/index.php?act=Arcade&do=newscore
It's going to a page that doesn't exist.
This is for Jewel Dash

This is driving me crazy  :o lol
Title: Re: Arcade not saving scores
Post by: Chen Zhen on November 06, 2020, 10:30:06 PM
"Games" shouldn't be coming up in the url for saving a score.
I can take a look at your admin settings if you want to grant me temp access but that is up to you but do that in a PM.
Title: Re: Arcade not saving scores
Post by: Phantom_Hugger on November 07, 2020, 12:39:20 AM
I might take you up on that , Chen 8)
Weird thing I installed your game packs:
Gamepack 23
HTML5 v1    

Gamepack 24
HTML5 v1    

Gamepack 25    
HTML5 v1

And all these games worked perfect!
Title: Re: Arcade not saving scores
Post by: Phantom_Hugger on November 07, 2020, 02:24:48 AM
I think for now, I'll keep using your awesome packs and figure things out on a later date.
I'm so busy with video editing, recording and streaming. ;D
I'll talk to you again, Chen.
I did give you access as a member for now on my forums.
Thanks again for a awesome program, Chen and all your help.
Title: Re: Arcade not saving scores
Post by: Chen Zhen on November 07, 2020, 10:25:06 AM

If that game type is working then your settings should be correct.

Are there any errors in the log after trying to save a score from a IBP Arcade game?
Title: Re: Arcade not saving scores
Post by: Chen Zhen on November 08, 2020, 11:22:31 AM

If you're still interested then you can attach your index.php from your main forum directory & I can take a look.
The only way I was able to reproduce the problem is if the edits to that file are not in place or if the $sourcedir variable is missing from the globals in that file/function.
EhPortal 1.39.6 © 2024, WebDev