ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.77k stars 819 forks source link

[Hedgehog Launch 2] Upgrade screen doesn't show descriptions or prices #8384

Open TheGentleChainsaw opened 2 years ago

TheGentleChainsaw commented 2 years ago

Describe the bug

The flying gameplay seems to work just fine with only minor cosmetic flaws (e.g. the parachute deploying immediately even if you haven't bought the parachute upgrade), but then on the upgrade screen you can't actually click any of the buttons that you would use to buy the various upgrades.

Expected behavior

On the "Upgrade Your Stuff" screen, clicking on one of the lit-up checkboxes should buy the corresponding item and add it to the hedgehog in the flying section.

Affected platform

Self-hosted version

Operating system

Windows 10

Browser

Mozilla Firefox 105

Additional information

No response

TheGentleChainsaw commented 1 year ago

Alright, looks like the Upgrade screen is mostly functional as of build 2022-12-19, although there's still a glaring graphical issue where the bottom-right corner doesn't show an item description, or (more importantly) an item price, when you mouse over the corresponding purchase button. Once that last bit can be rectified, then I'll close the issue.

TheGentleChainsaw commented 1 year ago

Also turns out you can't actually move on to Mars once you reach the Moon, since the "Continue" button on this screen doesn't do anything...

image

CUB3D commented 1 year ago

This letter is managed by the "FirstEnding" class, on frame 420 it should add a click listener to this button: this.continueButton.addEventListener(MouseEvent.CLICK,this.playHead);

However in Ruffle this produces the following error: Error occured when running AVM2 frame script: RustError("Cannot access property ::addEventListener of null or undefined")

Not sure why the button is null here, it gets created on frame 420 as well.

TheGentleChainsaw commented 1 year ago

This letter is managed by the "FirstEnding" class, on frame 420 it should add a click listener to this button: this.continueButton.addEventListener(MouseEvent.CLICK,this.playHead);

However in Ruffle this produces the following error: Error occured when running AVM2 frame script: RustError("Cannot access property ::addEventListener of null or undefined")

Not sure why the button is null here, it gets created on frame 420 as well.

Are you sure about this frame 420 stuff? 'Cause I've retried the game in newer builds that have the debug tools, and the game never seems to move past frame 3 on its own. Not only that, but trying to forcibly play any frame after 3 just gives me this screen: image

TheGentleChainsaw commented 1 year ago

I think I can safely say the progression block is now gone, as of nightly 2023-06-16.

The descriptions and prices still don't show on the Upgrade screen though, so leaving this open for now.