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 - Chen Zhen

1

It's one of those games I have to fix.
You can use the report button in the arcade to put it on my admin list.
If the button is not available it means someone or myself has already reported it.

2

This one works for Invision Arcade & SMF Arcade

possible file: arcade.html52.js
/*
 * SMF Arcade
 *
 * @package SMF Arcade
 * @version 2.6
 * @license https://web-develop.ca/index.php?page=arcade_license_BSD2 BSD 2
 */

function Html52_scorepost(href, named, scored, scoreid, scoretoken, scoretimex, gamepop, gamefull, gameexit, savetype) {
var currentArcadeTime = Math.floor(new Date().getTime() / 1000);
var gform = document.createElement('form');
gform.method = 'post';
gform.action = href;
gform.id = "anygameid";
gform.target = '_parent';
var input = document.createElement('input');
input.setAttribute('name', 'game_name');
input.setAttribute('value', named);
gform.appendChild(input);
var input2 = document.createElement('input');
input2.setAttribute('name', 'score');
input2.setAttribute('value', scored);
gform.appendChild(input2);
var input3 = document.createElement('input');
input3.setAttribute('name', 'game');
input3.setAttribute('value', scoreid);
gform.appendChild(input3);
var input4 = document.createElement('input');
input4.setAttribute('name', 'gtime');
input4.setAttribute('value', currentArcadeTime);
gform.appendChild(input4);
var input5 = document.createElement('input');
input5.setAttribute('name', 'gamesessid');
input5.setAttribute('value', scoretoken);
gform.appendChild(input5);
var input6 = document.createElement('input');
input6.setAttribute('name', 'popup');
input6.setAttribute('value', gamepop);
gform.appendChild(input6);
var input7 = document.createElement('input');
input7.setAttribute('name', 'smfgametime');
input7.setAttribute('value', scoretimex);
gform.appendChild(input7);
var input8 = document.createElement('input');
input8.setAttribute('name', 'gameSmfFullscreen');
input8.setAttribute('value', gamefull);
gform.appendChild(input8);
var input9 = document.createElement('input');
input9.setAttribute('name', 'gameexit');
input9.setAttribute('value', gameexit);
gform.appendChild(input9);
var input10 = document.createElement('input');
input10.setAttribute('name', 'html52');
input10.setAttribute('value', savetype);
gform.appendChild(input10);
document.body.appendChild(gform);
gform.submit();
document.body.removeChild(gform);
return true;
}
function Html52_scorepostSimple(href, named, scored) {
var currentArcadeTime = Math.floor(new Date().getTime() / 1000);
var gform = document.createElement('form');
gform.id = "anygameid";
gform.method = 'post';
gform.action = href;
gform.target = '_parent';
var input = document.createElement('input');
input.setAttribute('name', 'gname');
input.setAttribute('value', named);
gform.appendChild(input);
var input2 = document.createElement('input');
input2.setAttribute('name', 'gscore');
input2.setAttribute('value', scored);
gform.appendChild(input2);
document.body.appendChild(gform);
gform.submit();
document.body.removeChild(gform);
return true;
}
function saveHtml5GameHtml52(newhighscore, gamename)
{
var gamename = typeof gamename != "undefined" ? gamename : "";
if (parent.document.getElementById("gameSmfToken") && parent.document.getElementById("gameSmfToken").value)
var gameSessid = parent.document.getElementById("gameSmfToken").value;
else
gameSessid = "";

if (gameSessid != "")
{
var siteUrl = parent.document.getElementById("html5smfGameUrl").value;
var gameFull = parent.document.getElementById("gameSmfFullscreen").value;
var gameExit = parent.document.getElementById("gameexit").value;
var gameTimex = parent.document.getElementById("smfgametime").value;
var gameId = parent.document.getElementById("game").value;
var gname = parent.document.getElementById("game_name").value;
var gamePop = parent.document.getElementById("popup").value;
var gameSessid = parent.document.getElementById("gameSmfToken").value;
var gscore = parseInt(newhighscore);
var saveType = "html5";
var n = siteUrl.lastIndexOf("/");
//send data using Ajax
// sessionStorage.clear();
if (gameSessid && !sessionStorage.getItem("scoreLoop_" + gameSessid))
{
var newUrl = siteUrl.slice(0, n) + "/index.php?action=arcade;sa=html52Game";
sessionStorage.setItem("scoreLoop_" + gameSessid, new Date().getTime() / 1000);
Html52_scorepost(newUrl, gname, gscore, gameId, gameSessid, gameTimex, gamePop, gameFull, gameExit, saveType);
throw new Error("saving score...");
}
else
{
//sessionStorage.setItem("scoreLoop_" + gameSessid, new Date().getTime() / 1000);
if (new Date().getTime() / 1000 - (sessionStorage.getItem("scoreLoop_" + gameSessid)) < 1)
throw new Error("saving score...");
else
throw new Error("");
//window.location.assign(siteUrl.slice(0, n) + "/index.php?action=arcade;sa=highscore;game=" + gameId);
}
}
else
{
var gameFrameSrc, arcadeHtml52Pop = getArcadeUrlParamHtml52("pop");
if (arcadeHtml52Pop == 1)
gameFrameSrc = window.location.href;
else
gameFrameSrc = typeof window.frameElement.src != "undefined" ? window.frameElement.src : "";
var gameSessid = parent.document.getElementById("gameSmfToken") && parent.document.getElementById("gameSmfToken").value ? parent.document.getElementById("gameSmfToken").value : "";
var gnameQuery = gameFrameSrc.substr(gameFrameSrc.lastIndexOf('/') + 1);
var gscore = parseInt(newhighscore);
var gname = gamename;
var gameId = parent.document.getElementById("game") && parent.document.getElementById("game").value ? parent.document.getElementById("game").value : 0;
var siteUrl = parent.window.location.href;
var n = siteUrl.lastIndexOf("/");
var newUrl = siteUrl.slice(0, n) + "/index.php?act=Arcade&do=newscore";
//send data using Ajax
if (gameSessid && !sessionStorage.getItem("scoreLoop_" + gameSessid))
{
sessionStorage.setItem("scoreLoop_" + gameSessid, new Date().getTime() / 1000);
Html52_scorepostSimple(newUrl, gname, gscore);
throw new Error("saving score...");
}
else if(siteUrl.includes("playgame"))
{
var o = siteUrl.lastIndexOf("/index.php");
var newInvisionUrl = siteUrl.slice(0, o) + "/index.php?act=Arcade&do=newscore";
Html52_scorepostSimple(newInvisionUrl, gname, gscore);
throw new Error("saving score...");
}
else
{
sessionStorage.setItem("scoreLoop_" + gameSessid, new Date().getTime() / 1000);
}
}
return false;
}
function getArcadeUrlParamHtml52(name)
{
var qs = (function(a) {
if (a == "")
return {};
var b = {};
for (var i = 0; i < a.length; ++i)
{
var p=a[i].split("=", 2);
if (p.length == 1)
b[p[0]] = "";
else
b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
}
return b;
})(parent.window.location.search.substr(1).split(";"));
return qs[name] !== "undefined" ? qs[name] : "";
}
function Html52_scorepostExec(gamescore, gameid, gamename, gametoken) {
saveHtml5GameHtml52(gamescore, gamename);
}
3
SMF Arcade 2.6.1 is now available in the download section.

The download link is here:
https://web-develop.ca/index.php?action=downloads;area=stable_smf_arcade

The changelog can be seen here:
https://web-develop.ca/index.php?page=arcade_changelog


Thanks to all that help contribute by beta testing, reporting issues/errors in the forum and for giving suggestions regarding its development.

We hope you & your users will enjoy the updated SMF gaming platform.

Please report any bug reports or issues in this section of the forum.
4

Actually the app/tool seems to have been lost.
A few years ago I lost a lot of older files on a previous server that were never recovered.
Some of which I no longer have copies of on my own drives and this appears to be one that I can't locate.
5
I'm not sure it will work anymore.

What you can do is backup your database via phpmyadmin (possibly to a compressed zip file) and then attempt to run the tool.
Afterward you can install SMF Arcade and see if your games and scores are all showing/available.

If it doesn't work you can always restore the copy of the database that you made.

The games you had for E-Arcade should work in SMF Arcade either way its just that you will likely have to reinstall all of them & start scores from scratch.
There is a skin & list available that is close to what you had in E-Arcade as well.
Keep in mind that flash will not be available in main stream browsers as of Dec.31 of this year.
This means most people will have to download a non main stream browser that supports flash to play those old games.

HTML5/javascript is the new format for games now.
An updated version of this arcade is due for release within the next week or so.
It supports most of the HTML5 games you see on sites these days.
There is a list of sites that allow downloading of games in this support section.
The updated version of the arcade will play them but you will have to wait about a week as we have a few things to sort out prior to its release.
6

Oh? You could have asked for beta access and I would give that to you.
Keep in mind that there may be issues with it although at this point most have been resolved.
Do I have some permission setting wrong here or did someone give it to you?
7

I apologize but v2.6.0 was revoked.

v2.6.1 will be released likely within a few days.
8
General Code/Script Inquiries / Re: Domain name change
October 16, 2020, 01:32:59 PM
SMF has a repair settings file available on their website.
It makes necessary database changes for url's and paths.
You need to get that file, make the changes, save the settings and then delete the repair file.
9
EhPortal Support / Eh Portal v1.28 Released!
September 20, 2020, 02:40:32 PM
Eh Portal v1.28

You must uninstall any previous version of Eh Portal prior to commencing this installation.

EhPortal 1.28
===============================================================================================================
+ added desktop/mobile display option for blocks
+ added additional css for mobile display
+ added SMF Arcade 2.6(+) scores option to shoutbox settings
+ updated HTML output to be HTML5 compliant
! adjusted container width for mobile/responsive shoutbox
! fixed duplicate style attributes added to copyright
! fixed position of title bars & cat bars for mobile/responsive display
! fixed missing database key columns for installer
! fixed shoutbox refresh & shout entries (new refresh range -> 0 = disabled | 10 to 600 seconds)
! fixed shoutbox audio
! fixed calendar block





Eh Portal is now fully HTML5 compliant (literal tables changed to div css tables).
It uses mobile detection and a bootstrap to adjust any of SMF's or a modification's HTML5 to be mobile friendly.

If you come across a popular mod, theme or SMF itself that still causes any mobile display issues please report it in this board.
10
I can tell you removed the sub-directory forum already as I just uploaded & installed 2 games on your forum without a problem.

This very same thing happened to me.
I used to be able to have child test forums off of the main one in the past but Imo something with how SMF does their cookies won't allow it without problems.
You can play around with the cookie settings all you want but it won't work properly.
The best way to have test forums that works is to create new forums in your DNS, Apache config settings & registrar.
My current VPS host allows me to create/control my own reverse DNS entries as well which is great.

Other than that you can just do local testing.
I use Wampserver where I updated the SSL, MariaDB & PHP to current for proper testing.
11

The maxredirect=10 is something I tried a few days ago and it is already removed.

I don't see anything else related to the arcade
The upload script works on 2 local test forums (SMF 2.1 & SMF 2.0).
It works here on this forum (SMF 2.1) and I just tested it on doc skhills (smf 2.0).
All of them are using RC7 for the latest arcade version.


Imo something is not right with your Apache settings.
Also note that having a test forum in a child directory of that forum will cause cookie problems for both forums.
I've been through that myself.
12
You can try looking at your actual php error log from your website control panel (ie. CPanel, Plesk, etc.).
Try to see if there are errors from the arcade files within the last day.
Any error messages there might give us a clue as to what is causing the upload script to fail.
13

I tried uninstalling all your other mods to see if something was conflicting but had the same issue.
Then I just tried to go back to RC6 of the arcade but same problem.

RC7 works fine when I test uploading games via the HTML5 script in on SMF 2.0 & SMF2.1.

The one thing I keep seeing on your forum is some sort of cookie/session issue.
It repeatedly boots me out.

I tried messing with your cookie settings but it didn't fix it so I put them back to the default (the way it was before I made changes for a test).

In my opinion it's a cookie problem with your forum itself.
The HTML5 uploader splits a file into chunks so it can do large files because most HTML5 games are bigger than most flash games.
So in the background it's reloading the same page several times.
In doing that your forum is likely logging the user (you/me) out.

Something in your Apache settings has gone awry.
Also if you recently installed/enabled mod security you need to disable it.
The arcade will not work properly with that enabled.

14

I see one of your mods invokes an jquery load via document.write.
It is showing on the game upload page and might be causing a problem.

What is the most recent mod you installed before seeing these errors?
15

There is something wrong with your cookie settings because a few times now I have had trouble logging in.

Are you running any sub-forums (testing or live) off of the main forum path?