ruffle-rs / ruffle

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

New York Taxi License 3D: Property setVector not found on flash.display.BitmapData and there is no default value #10259

Open MartySVK opened 1 year ago

MartySVK commented 1 year ago

Describe the bug

After clicking on PLAY, there are errors:

ERROR ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "addedToStage", class: flash.events::Event, ptr: 0x2941f005d20 }) to handler FunctionObject(FunctionObject { ptr: 0x2941f06bd40 }) : ReferenceError: Error #1069: Property setVector not found on flash.display.BitmapData and there is no default value. ERROR ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0x2941f142b30 }) to handler FunctionObject(FunctionObject { ptr: 0x2941f1673e0 }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: soundEnabled)

SWF - https://data.gameflare.com/games/3945/EyPXBggwZOKwEB.swf

Expected behavior

Progress the game

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

No response

MartySVK commented 1 year ago

After setVector PR, new error is: Property pointAt not found on flash.geom.Matrix3D and there is no default value

SuchAFuriousDeath commented 1 year ago

After stubbing flash.geom.Matrix3D.pointAt, it needs flash.geom.Matrix3D.interpolateTo and after that, it needs BitmapData.draw, which is being implemented in #12559