ruffle-rs / ruffle

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

Sacred Treasure - Can't Click on New Hero #12034

Open desertking opened 1 year ago

desertking commented 1 year ago

Describe the bug

After the game loaded and I want to start a game by clicking on New Hero an error comes up.

Loading SWF file https://www.spiele-umsonst.de/azad/downloads/flashgames/sacredtreasure.swf viewtopic,p,10610.html#10610:1

ERROR core/src/avm2/events.rs:419 Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0xceec8c0 }) to handler FunctionObject(FunctionObject { ptr: 0x1a1ca80 }) : Error: Data error!

Expected behavior

Start the game

Affected platform

Online demo

Operating system

All

Browser

All

Additional information

No response

desertking commented 11 months ago

Clicking on New Hero works now and you can come into the game but if I hit the goblin now the follow-up error appears..

ERROR core/src/avm2/events.rs:424 Error dispatching event EventObject(EventObject { type: "complete", class: flash.events::Event, ptr: 0x666b378 }) to handler FunctionObject(FunctionObject { ptr: 0x15080418 }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: http://adobe.com/AS3/2006/builtin::indexOf)

desertking commented 8 months ago

I could progress to the tutorial and get to the city. Anyone wanna test further :)