ruffle-rs / ruffle

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

Zayo 2 - Endless Intro Loop #10923

Open desertking opened 1 year ago

desertking commented 1 year ago

Describe the bug

https://www.newgrounds.com/portal/view/441985?emulate=flash - Throws an error and got an endless intro loop.

ERROR core/src/display_object.rs:1384 Got error when setting AVM2 child named "preloader": AvmError(Object(ErrorObject(ErrorObject { class: TypeError, ptr: 0x18e9954 }))) ruffle_web-wasm_extensions.js:685 ERROR core/src/display_object/movie_clip.rs:2531 Error occured when running AVM2 frame script: TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: stop)

Expected behavior

Load & Run

Affected platform

Online demo

Operating system

All

Browser

All

Additional information

No response

n0samu commented 1 year ago

There are a lot of warnings like this: WARN run_frame: ruffle_core::display_object::movie_clip: Symbol class Preloader cannot be assigned to invalid character id 413

This is the cause of the errors you mentioned. The final error happens at Copyofold__FRESH_START_fla::MainTimeline/frame1(): preloader.stop(); Creating the preloader AVM object failed, so that line causes an error, and the rest of the function is not executed.

desertking commented 1 year ago

Game is still stuck this is the new error:

ruffle_web-wasm_extensions.js:716 ERROR core/src/display_object.rs:1384 Got error when setting AVM2 child named "preloader": TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@00000000000 to Preloader. ruffle_web-wasm_extensions.js:716 ERROR core/src/display_object/movie_clip.rs:2538 Error occured when running AVM2 frame script: TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: sto