ruffle-rs / ruffle

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

Deep Sea Hunter 2 - Works until the first dive is over #10876

Open desertking opened 1 year ago

desertking commented 1 year ago

Describe the bug

https://www.newgrounds.com/portal/view/631732?emulate=flash - The game runs well until you are out of fuel in the first dive then the game gets stuck there.

Game is throwing this error constantly so it's hard to see if an error occurs when te dive ends: ERROR core/src/avm2/events.rs:419 Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0x40b26bc }) to handler FunctionObject(FunctionObject { ptr: 0x3b46b7c }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: soundTransform)

Expected behavior

Get back to base after the dive.

Affected platform

Desktop app

Operating system

All

Browser

All

Additional information

No response

Lord-McSweeney commented 1 year ago

The game traces this before the errors: INFO web/src/log_adapter.rs:19 WARNING : Sound2D_c : The sound isn't map to anything.

Also, earlier, there are mentions of WARN core/src/stub.rs:126 Encountered stub: AVM2 flash.media.Sound constructor with arguments