You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLOP won't let me start the game in Ruffle.
Note: this affects both browser extension and ruffle desktop.
Game says click to start. This seems to be handled by an onFocus event: PlayState.as:730 private function onFocus(param1:Event) : void
This game uses Flixel. onFocus seems to be a Flixel thing that's called when event.ACTIVATE is called, but I'm not sure what calls that.
Note: In desktop flash player I can't start the game by just clicking.
I have to defocus the window and then click it again.
Apparently it worked fine in the flash browser plugin version though.
EDIT: I was able to test the page in a browser with the official flash player ("Basilisk Portable with Flash Player"), and indeed it works normally (handles the event.ACTIVATE event on the first click and starts the game).
In desktop ruffle, this doesn't work (additionally, the game doesn't pause when defocused).
NOTE: The SWF is site-locked.
To run it, the URL must be exactly: http://www.foddy.net/CLOP.html
(Note the www and the lack of https)
Some browsers (Chrome & Chrome-based?) force HTTPS. So you may need to use Firefox.
Alternatvely, you may mod the SWF to disable the URL check, or use the Ruffle player's SWF url spoofing feature.
I modded the SWF using FFDec.
Simply disable the if-check at org.flixel.system/FlxPreloader.as:76
i.e. I changed the if(...) to if (false && ...)
Brave Browser - Version 1.66.113 Chromium: 125.0.6422.76 (Official Build) (64-bit)
Additional information
Have made several attempts to modify the SWF in FFDec to make it work with Ruffle.
The relevant code is stage.addEventListener(Event.ACTIVATE,this.onFocus);
in org.flixel.FlxGame.as:create()
Apparently the Event.ACTIVATE is not handled in Ruffle.
So, I changed this to stage.addEventListener(MouseEvent.CLICK,this.onFocus);
and stage.addEventListener(MouseEvent.MOUSE_DOWN,this.onFocus);
but it seems these don't work in Ruffle either?
The text was updated successfully, but these errors were encountered:
Describe the bug
CLOP won't let me start the game in Ruffle.
Note: this affects both browser extension and ruffle desktop.
Game says click to start. This seems to be handled by an onFocus event:
PlayState.as:730 private function onFocus(param1:Event) : void
This game uses Flixel. onFocus seems to be a Flixel thing that's called when
event.ACTIVATE
is called, but I'm not sure what calls that.Note: In desktop flash player I can't start the game by just clicking.
I have to defocus the window and then click it again.
Apparently it worked fine in the flash browser plugin version though.
EDIT: I was able to test the page in a browser with the official flash player ("Basilisk Portable with Flash Player"), and indeed it works normally (handles the
event.ACTIVATE
event on the first click and starts the game).In desktop ruffle, this doesn't work (additionally, the game doesn't pause when defocused).
NOTE: The SWF is site-locked.
To run it, the URL must be exactly:
http://www.foddy.net/CLOP.html
(Note the www and the lack of https)
Some browsers (Chrome & Chrome-based?) force HTTPS. So you may need to use Firefox.
Alternatvely, you may mod the SWF to disable the URL check, or use the Ruffle player's SWF url spoofing feature.
I modded the SWF using FFDec.
Simply disable the if-check at
org.flixel.system/FlxPreloader.as:76
i.e. I changed the if(...) to if (false && ...)
See this issue:
#9440
Expected behavior
Click to start game
Content Location
http://www.foddy.net/CLOP.html
http://www.foddy.net/CLOP.swf
Affected platform
Browser's extension
Operating system
Windows 10
Browser
Brave Browser - Version 1.66.113 Chromium: 125.0.6422.76 (Official Build) (64-bit)
Additional information
Have made several attempts to modify the SWF in FFDec to make it work with Ruffle.
The relevant code is
stage.addEventListener(Event.ACTIVATE,this.onFocus);
in
org.flixel.FlxGame.as:create()
Apparently the Event.ACTIVATE is not handled in Ruffle.
So, I changed this to
stage.addEventListener(MouseEvent.CLICK,this.onFocus);
and
stage.addEventListener(MouseEvent.MOUSE_DOWN,this.onFocus);
but it seems these don't work in Ruffle either?
The text was updated successfully, but these errors were encountered: