ruffle-rs / ruffle

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

Cannot start the menu (auth error) - https://www.4399.com/flash/yzzrhj.htm?g=1 #15012

Closed wsxarcher closed 4 months ago

wsxarcher commented 8 months ago

Describe the bug

When clicking the first button it shows "auth error"

ERROR core/src/avm2/events.rs:428 Error dispatching event EventObject(EventObject { type: "usePayApi", class: unit4399.events::PayEvent, ptr: 0x11ac34e8 }) to handler FunctionObject(FunctionObject { ptr: 0x30f09a0, name: Ok("shootgame.gameapi::Api4399CallBack/onPayEventHandler()") }) : TypeError: Error #1034: Type Coercion failed: cannot convert unit4399.events::PayEvent@00000000000 to unit4399.events.PayEvent.  at flash.events::EventDispatcher/flash::events::EventDispatcher::dispatchEvent()    at ctrl4399.proxy::MainProxy/setPayInfo()   at ctrl4399.proxy::MainProxy/loginRegSucBackFun()   at ctrl4399.proxy::MainProxy/checkUserInfoCompleted()   at unit4399.road.loader::BytesLoader/onCompleted()  at unit4399.road.loader::BytesLoader/__completed()

Expected behavior

Play the game

Content Location

https://www.4399.com/flash/yzzrhj.htm?g=1 Selectable (right) from https://www.4399.com/flash/yzzrhj.htm

Affected platform

Browser's extension

Operating system

Window 11

Browser

Edge/Chrome 120

Additional information

This game is part of a bigger effort to support 4399.com games. There might be other issues with this website, from how it handles Flash checks and many CORS issues. Unfortunately, some games cannot be easily debugged on desktop because the swf download other swf or do requests while logged in.

If Ruffle is not detected try to reload the page multiple times because of the known race condition on the Flash check. To avoid refreshing try this Tampermonkey user script 一键下载 flash 游戏 (greasyfork.org)

To solve these issues refers to previous issues such as:

wsxarcher commented 4 months ago

Now works

image