WebDev

SMF Arcade => SMF Arcade Support + Plugins => Topic started by: Dave on September 11, 2023, 11:24:30 AM

Title: Games flashing
Post by: Dave on September 11, 2023, 11:24:30 AM
On Quizland just recently we've had games, that seem to work perfectly well on other sites, but just flash when you go to play them on ours

I have attached one of those games. Any chance you could have a look please?
Title: Re: Games flashing
Post by: Chen Zhen on September 11, 2023, 06:19:39 PM

The browser is blocking it due to the use of document.write().
It's poor practice for the dev that used it in that game unless it's been done on purpose.
The game has to be rendered differently (asynchronous) for it to work.
I'll have to work on this.. thanks for the report.
Title: Re: Games flashing
Post by: Dave on September 12, 2023, 02:30:02 AM
Thanks Chen,

Of late there have been a lot of games doing this and we have removed them from the site. It would be good to get them back if we can.
Title: Re: Games flashing
Post by: Chen Zhen on September 12, 2023, 05:06:45 AM
I've been reading up on it & will work on something to fix it.
Title: Re: Games flashing
Post by: Dave on September 12, 2023, 08:09:26 AM
Quote from: Chen Zhen on September 12, 2023, 05:06:45 AMI've been reading up on it & will work on something to fix it.

Thank you
Title: Re: Games flashing
Post by: Chen Zhen on September 12, 2023, 05:47:58 PM
Does the game work on an invision/IBP Arcade platform?
Title: Re: Games flashing
Post by: Dave on September 13, 2023, 02:00:57 AM
Quote from: Chen Zhen on September 12, 2023, 05:47:58 PMDoes the game work on an invision/IBP Arcade platform?

Yes because it works on Ronald site.
Title: Re: Games flashing
Post by: Chen Zhen on September 13, 2023, 02:49:06 AM
Ya that arcade does the container differently so I assume they must have something that forces asynchronous behavior or they made some sort of patch or sandbox (just my guess). I'll have to take a look at it.
Title: Re: Games flashing
Post by: Dave on September 13, 2023, 07:27:39 AM
Thanks Chen
Title: Re: Games flashing
Post by: Ronald on September 13, 2023, 12:38:37 PM
Flashs on arcadeholics also. https://arcadeholics.net/index.php?index.php;action=arcade;sa=play;game=3126
Title: Re: Games flashing
Post by: Dave on September 13, 2023, 12:44:36 PM
Quote from: Ronald on September 13, 2023, 12:38:37 PMFlashs on arcadeholics also. https://arcadeholics.net/index.php?index.php;action=arcade;sa=play;game=3126

Not found Ron


Title: Re: Games flashing
Post by: Ronald on September 13, 2023, 01:03:43 PM
Quote from: Dave on September 13, 2023, 12:44:36 PM
Quote from: Ronald on September 13, 2023, 12:38:37 PMFlashs on arcadeholics also. https://arcadeholics.net/index.php?index.php;action=arcade;sa=play;game=3126

Not found Ron




I disabled it for now.
Title: Re: Games flashing
Post by: bolang on September 13, 2023, 03:58:34 PM
Hi guys

This version should work on SNF arcade  on my site works well.
game_PhilmontMiniBearDash_Doc.tar

Have a good day
Title: Re: Games flashing
Post by: Ronald on September 13, 2023, 10:32:31 PM
I install this game on arcadeholics https://arcadeholics.net/index.php?index.php;action=arcade;sa=play;game=13483

It works great. Download it Dave, try it should work for you also.
Title: Re: Games flashing
Post by: Dave on September 14, 2023, 02:08:05 AM
Yes it works for me too, thank you bolang. Now just need to figure out why the other games were flashing. I think Chen is on the case for that
Title: Re: Games flashing
Post by: Dave on September 14, 2023, 03:05:11 AM
I've done a comparison between the files in my attached and bolongs one.

The only difference is that 'app.js' in the 'gamedata\PhilmontMiniBearDash_Doc' folder is bigger than in my file. Also it seems that the contents of 'jquery-2.1.3.min.js' also seems to be in my version of 'app.js', which I might add is really Ronald's Arcade version because that's where I downloaded it from, but it does work on there OK as I've just played it and scored.
Title: Re: Games flashing
Post by: Ronald on September 14, 2023, 09:54:14 PM
Quote from: Dave on September 14, 2023, 03:05:11 AMI've done a comparison between the files in my attached and bolongs one.

The only difference is that 'app.js' in the 'gamedata\PhilmontMiniBearDash_Doc' folder is bigger than in my file. Also it seems that the contents of 'jquery-2.1.3.min.js' also seems to be in my version of 'app.js', which I might add is really Ronald's Arcade version because that's where I downloaded it from, but it does work on there OK as I've just played it and scored.

Funny how some games are.. They play on other arcades and not on some.
Title: Re: Games flashing
Post by: Dave on September 15, 2023, 01:51:50 AM
Yes I know and I'm now having issues with some flash games that have been played and and have scores and now they don't.
Title: Re: Games flashing
Post by: Chen Zhen on September 15, 2023, 08:45:47 AM

Can you upload one of the flash games that is doing that?



The HTML5 games that are flashing have some odd code in some of the files including the index.html.
I was wondering if they got corrupted when downloaded but when I replace the index.html with another version of the same game & leave the javascript files alone it works. That means IBP Arcade is able to use the file somehow.
Title: Re: Games flashing
Post by: Chen Zhen on September 15, 2023, 09:04:41 AM
I'm not messing with those games that are doing the flashing.
My Windows Defender has flagged the code as a virus!
Something looked fishy when I saw the strange code within the index.php file and JS files.

In my opinion find working copies of those games from another source.
Someone else that provides save codes likely released their versions.

Title: Re: Games flashing
Post by: Chen Zhen on September 15, 2023, 09:10:40 AM

QuoteIs Wacatac H ml a safe Trojan script?
How to Remove Trojan:Script/Wacatac.H!ml
Wacatac. h ml is recognized as a Trojan Horse, a deceptive type of malware often masquerading as legitimate software. Once activated, Trojans can grant unauthorized access, leading to data breaches or system harm.
Title: Re: Games flashing
Post by: Dave on September 15, 2023, 09:43:36 AM
Quote from: Chen Zhen on September 15, 2023, 09:10:40 AM
QuoteIs Wacatac H ml a safe Trojan script?
How to Remove Trojan:Script/Wacatac.H!ml
Wacatac. h ml is recognized as a Trojan Horse, a deceptive type of malware often masquerading as legitimate software. Once activated, Trojans can grant unauthorized access, leading to data breaches or system harm.
Quote from: Chen Zhen on September 15, 2023, 09:04:41 AMI'm not messing with those games that are doing the flashing.
My Windows Defender has flagged the code as a virus!
Something looked fishy when I saw the strange code within the index.php file and JS files.

In my opinion find working copies of those games from another source.
Someone else that provides save codes likely released their versions.



I've replaced the original with one the that boland supplied and now it works OK. I've also had to replace flash games today that were working but stopped, both of them had high scores so they did play once but something obviously changed them. I did manually update Ruffle but that didn't help them

I'm going to send your reply regarding the trojan to Lee the Arcade Admin on Quizland, so he can check them out if he now finds anymore flashing ones
Title: Re: Games flashing
Post by: Chen Zhen on September 15, 2023, 09:45:56 AM
Can you upload one of those flash games?
Title: Re: Games flashing
Post by: Dave on September 15, 2023, 09:53:42 AM
Quote from: Chen Zhen on September 15, 2023, 09:45:56 AMCan you upload one of those flash games?

Hmmm...that might be difficult as we immediately report them and what I've been doing is removing them from the site. I will have a look at my PM's to see if I can find one or two that were not working.
Title: Re: Games flashing
Post by: Dave on September 15, 2023, 09:57:31 AM
Ok I have found one on Ronald's Arcade (Invision)
Title: Re: Games flashing
Post by: Chen Zhen on September 15, 2023, 10:22:25 PM
I thought you were adding that you have flash type games that used to work but stopped or at least that's how I read it.
I don't want one of the infected HTML5 games that are "flashing".
You said a "flash game" as in Adobe Flash ..
Come on here.. I don't want that stuff on my PC at all.
Why would I ask for a malware infected file?
Title: Re: Games flashing
Post by: Dave on September 16, 2023, 03:18:29 AM
Quote from: Chen Zhen on September 15, 2023, 10:22:25 PMI thought you were adding that you have flash type games that used to work but stopped or at least that's how I read it.
I don't want one of the infected HTML5 games that are "flashing".
You said a "flash game" as in Adobe Flash ..
Come on here.. I don't want that stuff on my PC at all.
Why would I ask for a malware infected file?



Sorry Chen I misunderstood what you meant. I know you know your stuff about these things but my AV hasn't flagged any of those files as viruses, do you think it might be a false positive by Defender?

As far as the non working flash games are concerned I have replaced then now and they are working.

If it happens again I'll post one on here.
Title: Re: Games flashing
Post by: Chen Zhen on September 16, 2023, 05:06:58 AM
No I don't think it's a false positive.
The code I see in those files is not obfuscated javascript & I found it odd prior to my AV detecting it.

I used a basic javascript function to convert document.write() to DOM & it flagged it in more than 1 file from the same game.


Title: Re: Games flashing
Post by: Ronald on September 17, 2023, 06:05:18 PM
Quote from: bolang on September 13, 2023, 03:58:34 PMHi guys

This version should work on SNF arcade  on my site works well.
game_PhilmontMiniBearDash_Doc.tar

Have a good day

bolang where is your site? Link please?
Title: Re: Games flashing
Post by: Chen Zhen on September 18, 2023, 02:47:47 AM
Just to be clear..

Bolang's version is clean - thanks Bolang!

The version that was noted in the 1st post of the thread is the infected game.
Title: Re: Games flashing
Post by: Dave on September 26, 2023, 10:08:16 AM
Lee, the Arcade Admin on my site has found more flashing games yesterday, this is the list

QuoteTraffic_jvh5 - Traffic
S2onicRu2nRA - Sonic Run 2020
Spac2eRushRA - Space Rush 2
PinataPary_jvh5 - Pinata Party
Phi2nbWizrdH5 - Phinball Wizard
NinaFis2hingH5 - Ninja Fishing Arcade
MrLon2gLegs_jvh5 - Mr Long Legs
Mou1seR8un_jvh5 - Mouse Run
KnghtJu2mpH5 - Knight Jump

I've looked around for replacements but can't find any for those.

As they cam from your site Ron I wont download them again from you.

UPDATE: I was just looking in the arcade here for replacements and found that you also have a game that's flashing

https://web-develop.ca/index.php?action=arcade;game=1495

Title: Re: Games flashing
Post by: Chen Zhen on September 26, 2023, 10:49:18 PM
PhpBB3/jvh games usually have unwanted code added to them unless they've been altered to work on other arcades. SMF Arcade doesn't really support those.

The game you reported has been disabled.
Title: Re: Games flashing
Post by: Dave on September 27, 2023, 02:42:07 AM
Thank you
EhPortal 1.39.6 © 2024, WebDev