ruffle-rs / ruffle

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

`Golf Solitaire` Sound and Display bugs #14289

Open yangyangdaji opened 7 months ago

yangyangdaji commented 7 months ago

Describe the bug

Sound and Display bugs

https://github.com/ruffle-rs/ruffle/assets/108261729/f63e061d-18f6-4539-839c-8d9068bf89a5

Expected behavior

https://github.com/ruffle-rs/ruffle/assets/108261729/10bdf41e-24e3-4821-8150-d7f81fd39939

Content Location

SWF: http://www.cn0-6.com/upload/2012/4/201246102834903.swf

Affected platform

Desktop app

nightly-2023-12-03

Operating system

Windows 11

Additional information

No response

n0samu commented 7 months ago

This needs SharedObject.objectEncoding:

ERROR run_frame:run_all_phases_avm2: ruffle_core::display_object::movie_clip: Got AVM2 error ReferenceError: Error #1056: Cannot create property objectEncoding on flash.net.SharedObject.
        at com.novelgames.flashgames.common::_-6P$/_-HS()
        at com.novelgames.flashgames.common::_-6P$cinit()
        at global$init() [TU=]
        at global$init() [TU=]
        at flash.display::MovieClip/flash::display::MovieClip::gotoAndStop()
        at MethodInfo-412()
        at gos.obyoAPI::_-Ao/end()
        at MethodInfo-39() when attempting to assign symbol class _-NW._-KY

There's a few other errors that may or may not be related:

ERROR run_frame:run_all_phases_avm2: ruffle_core::display_object::movie_clip: Got "TypeError: Error #1010: A term is undefined and has no properties. (accessing field: volume)
        at com.novelgames.flashgames.common::SoundButton()
        at flash.display::DisplayObject/flash.display::DisplayObject()
        at flash.display::InteractiveObject/flash.display::InteractiveObject()
        at flash.display::DisplayObjectContainer/flash.display::DisplayObjectContainer()
        at flash.display::Sprite()
        at flash.display::MovieClip()
        at com.novelgames.flashgames.common::_-FM()
        at flash.display::DisplayObject/flash.display::DisplayObject()
        at flash.display::InteractiveObject/flash.display::InteractiveObject()
        at flash.display::DisplayObjectContainer/flash.display::DisplayObjectContainer()
        at flash.display::Sprite()
        at flash.display::MovieClip()
        at com.novelgames.flashgames.common::_-Ef()
        at _-NW::_-7f()
        at flash.display::MovieClip/flash::display::MovieClip::gotoAndStop()
        at MethodInfo-412()
        at gos.obyoAPI::_-Ao/end()
        at MethodInfo-39()" when constructing AVM2 side of movie clip of type com.novelgames.flashgames.common::SoundButton
ERROR run_frame:run_all_phases_avm2: ruffle_core::display_object::movie_clip: Got "TypeError: Error #1115: _-NW::_-KS is not a constructor.
        at _-NW::_-7f/getButtonSoundOver()
        at com.novelgames.flashgames.common::_-Ef/checkTitle()
        at com.novelgames.flashgames.common::_-Ef()
        at _-NW::_-7f()
        at flash.display::MovieClip/flash::display::MovieClip::gotoAndStop()
        at MethodInfo-412()
        at gos.obyoAPI::_-Ao/end()
        at MethodInfo-39()" when constructing AVM2 side of movie clip of type _-NW::_-7f

This game is by the same developer as #11998 and has essentially the same issue.