ruffle-rs / ruffle

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

Wartune flash display and flash events avm2 #11223

Open zijad3002 opened 1 year ago

zijad3002 commented 1 year ago

Describe the bug

wartune.wan.com avm2 to load resource: the server responded with a status of 404 (Not Found) shenqu.js:17 Uncaught DOMException: Failed to set the 'domain' property on 'Document': 'r2games.com' is not a suffix of 's5-kong-sq.7road.net'.

at https://s5-kong-sq.7road.net/client/game.jsp?user=

shenqu.js:174 Uncaught ReferenceError: MzBrowser is not defined at checkScreen (shenqu.js:174:3) at onload (game.jsp?user=13 Error dispatching event EventObject(EventObject { type: "complete", class: flash.events::Event, ptr: 0x12790a4 }) to handler FunctionObject(FunctionObject { ptr: 0x1e4a87c }) : RustError("Adding a new attribute to XML object is not yet implemented: Multiname { ns: Multiple([Namespace(Private(\"Loading\")), Namespace(Protected(\"Loading\")), Namespace(StaticProtected(\"Loading\")), Namespace(StaticProtected(\"flash.display:Sprite\")), Namespace(StaticProtected(\"flash.display:DisplayObjectContainer\")), Namespace(StaticProtected(\"flash.display:InteractiveObject\")), Namespace(StaticProtected(\"flash.display:DisplayObject\")), Namespace(StaticProtected(\"flash.events:EventDispatcher\")), Namespace(StaticProtected(\"Object\")), Namespace(Namespace(\"\")), Namespace(PackageInternal(\"\")), Namespace(Private(\"FilePrivateNS:Loading\")), Namespace(Namespace(\"http://adobe.com/AS3/2006/builtin\"))]), name: Some(\"value\"), params: [], flags: MultinameFlags(ATTRIBUTE) } = String(\"s5-kong-sq.7road.net\")") vTools failed to load source map: Could not load content for https://static-bm.wan.com/static/7/sq/style/js/jquery.min.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Expected behavior

to load a 7road login icon and than a new character thing to put a name or to load a character inside a game and to load and it does not show any of it.

Affected platform

Browser's extension

Operating system

windows 11 revi os

Browser

brave browser

Additional information

No response

n0samu commented 1 year ago

This looks like a problem with the original site, not with Ruffle. But if you want me to look at it further you need to provide the link to the webpage where you're playing the game.

zijad3002 commented 1 year ago

Sure wartune.wan.com

zijad3002 commented 1 year ago

Player Info

Allows script access: true Renderer: wgpu Adapter Backend: Gl Adapter Name: "ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0)" Adapter Device Type: IntegratedGpu Adapter Driver Name: "" Adapter Driver Info: "" Enabled features: Features(TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES | PUSH_CONSTANTS) Available features: Features(TEXTURE_COMPRESSION_BC | CLEAR_TEXTURE | MULTIVIEW) Current limits: Limits { max_texture_dimension_1d: 16384, max_texture_dimension_2d: 16384, max_texture_dimension_3d: 2048, max_texture_array_layers: 256, max_bind_groups: 4, max_bindings_per_bind_group: 640, max_dynamic_uniform_buffers_per_pipeline_layout: 8, max_dynamic_storage_buffers_per_pipeline_layout: 0, max_sampled_textures_per_shader_stage: 16, max_samplers_per_shader_stage: 16, max_storage_buffers_per_shader_stage: 0, max_storage_textures_per_shader_stage: 0, max_uniform_buffers_per_shader_stage: 11, max_uniform_buffer_binding_size: 16384, max_storage_buffer_binding_size: 0, max_vertex_buffers: 8, max_buffer_size: 268435456, max_vertex_attributes: 16, max_vertex_buffer_array_stride: 255, min_uniform_buffer_offset_alignment: 256, min_storage_buffer_offset_alignment: 256, max_inter_stage_shader_components: 60, max_compute_workgroup_storage_size: 0, max_compute_invocations_per_workgroup: 0, max_compute_workgroup_size_x: 0, max_compute_workgroup_size_y: 0, max_compute_workgroup_size_z: 0, max_compute_workgroups_per_dimension: 0, max_push_constant_size: 96 } Surface quality: high Surface samples: 4 Surface size: Extent3d { width: 1366, height: 608, depth_or_array_layers: 1 } Player type: Object SWF URL: Loading.swf?rnd=1687896354716 Param menu: false Param quality: high Param AllowScriptAccess: always Param allowFullScreenInteractive: true Param wmode: direct Param flashvars: user=130939&key={83814282-6BD1-5648-9295-EAD5038AE436}&site=kong_0011&playfb=undefined&logintype=undefined Attribute 0: undefined Attribute 1: undefined Attribute 2: undefined Attribute 3: undefined Attribute 4: undefined Attribute 5: undefined

Page Info

Page URL: https://s5-kong-sq.7road.net/client/game.jsp?user=130939&key={83814282-6BD1-5648-9295-EAD5038AE436}&site=kong_0011 SWF URL: https://s5-kong-sq.7road.net/client/Loading.swf?rnd=1687896354716

Browser Info

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0 Platform: Win32 Has touch support: false

Ruffle Info

Version: 0.1.0 Name: nightly 2023-06-17 Channel: nightly Built: 2023-06-17T00:19:30.791Z Commit: 5e6366d14a18994431dc4de1d3665b765371b129 Is extension: true

Metadata

width: 1000 height: 600 frameRate: 25 numFrames: 1 swfVersion: 20 backgroundColor: #0E0805 isActionScript3: true uncompressedLength: 498310

from console error

Error dispatching event EventObject(EventObject { type: "complete", class: flash.events::Event, ptr: 0x767b84 }) to handler FunctionObject(FunctionObject { ptr: 0x1f6cdac }) : RustError("Cannot set an XML/XMLList object XmlListObject(XmlListObject { ptr: 0xf0171c }) as an attribute")