Open wsxarcher opened 5 months ago
ERROR core\src\avm2\events.rs:428 Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0x8349658 }) to handler FunctionObject(FunctionObject { ptr: 0x8c1cda0, name: Ok("com.unity::UnityContent/onEnterFrame()") }) : ReferenceError: Error #1069: Property setProgramConstantsFromByteArray not found on flash.display3D.Context3D and there is no default value. at com.unity::UnityNative$/Ext_Stage3D_Context_Set_ProgramConstants() at com.unity::UnityNative$/_ZN9GfxDevice14BeforeDrawCallEb() at com.unity::UnityNative$/_ZN14GfxMolehillVBO7DrawVBOERK14ChannelAssignsjj16GfxPrimitiveTypejj() at com.unity::UnityNative$/_ZN8DrawUtil11DrawMeshRawERK14ChannelAssignsR4Meshi() at com.unity::UnityNative$/_ZThn28_N12MeshRenderer6RenderEiRK14ChannelAssigns() at com.unity::UnityNative$/_ZN13BatchRenderer5FlushEv() at com.unity::UnityNative$/_Z25DoForwardShaderRenderLoopR17RenderLoopContextR13dynamic_arrayI16RenderObjectDataLj4EEbbP13RenderTextureR12ActiveLightsbb() at com.unity::UnityNative$/_Z12DoRenderLoopR10RenderLoop13RenderingPathR11CullResultsb() at com.unity::UnityNative$/_ZN6Camera6RenderER11CullResultsi() at com.unity::UnityNative$/_ZN13RenderManager13RenderCamerasEv() at com.unity::UnityNative$/NativeExt_PlayerLoop() at com.unity::UnityContentInternal/playerLoop() at com.unity::UnityContent/onEnterFrame()```
Describe the bug
The game does not load (black screen) and the whole page freeze/slows down
Expected behavior
Run the game
Content Location
https://www.4399.com/flash/187228_1.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:
--disable-web-security
or use https://chromewebstore.google.com/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf--referer "https://www.4399.com"
, the correct--spoof-url
(usually the page link) and--base
which is the relative URL where other resources are fetched.