ruffle icon indicating copy to clipboard operation
ruffle copied to clipboard

Neopets: Deckball - Unclickable Menus

Open Chromagram opened this issue 3 years ago • 0 comments

Describe the bug

I noticed several people commenting on using Ruffle for Neopets. First off, thanks for developing Ruffle. With the additional UserScript, I can still submit scores to the leaderboards, which is awesome.

My current issue is really specific to one game on Neopets so far, Deckball. Basically a simple game where you control a slippery character and try to kick a ball into your opponent's net. The game only allows scores on the hardest difficulty to be submitted and provides some drop down menus to click if you want to change from the default Easy mode.

The error is that while Ruffle can click the single use buttons to go to the Instructions page or to start the game itself, it cannot interact with any of the drop down menus, locking you into playing the default mode only, which is Easy difficulty on the Survival mode.

Expected behavior

When you click any of the drop down menus, a menu should expand out with alternative options you can select. There are several:

  • Pawkeet (Human) main character
  • Mirgle (CPU) computer or 2nd player
  • Difficulty (Swabby) with Captain being the hardest
  • Mode (Survival) with Timed and Score alternatives

Every other menu is preset to the correct setting to play for a high score, but with the difficulty box stuck on Swabby, it's impossible to send a score that will go to the high score boards.

I tried inspecting the .js and all of the other elements of the page to see if I could find something to forcefully change the difficulty myself, but there were just so many submenus and elements that I couldn't pin it down. Even if Ruffle itself cannot click these buttons, if anyone knows what bit of code to change in the Inspector to allow playing the game on the Captain difficulty, that would work as well.

Either way, the expected behaviour is that when you click the dropdown menus on the game, the menus should expand with alternate options.

Affected platform

Browser's extension

Operating system

macOS Ventura 13.0, Windows 11 (22622.450)

Browser

Google Chrome (103.0.5060.134)

Additional information

No response

Chromagram avatar Aug 07 '22 12:08 Chromagram

Investigation so far:

It's failing a hittest for each dropdown menu. The hittest coordinates seems to be off by some amount, which are also magical numbers used inside the game so I have no idea where they come from or why they're there (or why they're doing something else for us?). It's like the authors tried to compensate for something in the original flash player but that doesn't exist for us so it's overcorrecting.

Dinnerbone avatar Aug 12 '22 08:08 Dinnerbone

Think this may be caused by #5645

Dinnerbone avatar Aug 12 '22 09:08 Dinnerbone