ruffle-rs / ruffle

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

web: Ruffle does not load the shared_assets.swf #2365

Open desertking opened 3 years ago

desertking commented 3 years ago

Hey,

Gateway 2 has a version where it loads .swf files in the game. It works on the main file and it loads the nested swf. But it also has an "shared_assets.swf" which is loaded in every level. When I open one of the files in JPEX it asks instantly to load those files as well. So I don't know what kind of "connection-level" they have. But ruffle doesn't recognize it: Example:

https://www.kongregate.com/games/struma/gateway-ii

In the normal flash version it loads an shared_assets.swf, ruffle doesn't do that which makes the man to disappear after the level starts :D

n0samu commented 2 years ago

The game loads shared_assets.swf using an ImportAssets2 tag that looks like this: image Ruffle does not seem to support ImportAssets or ImportAssets2 tags. The repo has test SWFs (ImportAssets-CS6.swf and ImportAssets2-CS6.swf) in the swf/tests/swfs directory, but Ruffle shows a blank screen when loading them (instead of showing a small red box as expected).

Oh, and here is the direct link to the SWF: https://chat.kongregate.com/gamez/0000/3268/live/gateway_2.swf

olux997 commented 1 year ago

Can it be supported later? [ ImportAssets ] Because This is a SWF flash 6.0 version very old game, and much game use this funtion.

desertking commented 1 year ago

Just wanted to update the error, as it seems that all stuff gets loaded:

ERROR core/src/library.rs:198 Tried to instantiate non-registered character ID 112 ruffle_web-wasm_extensions.js:719 ERROR core/src/display_object/movie_clip.rs:1665 Unable to instantiate display node id 112, reason being: Character id doesn't exist

n0samu commented 3 months ago

This game is still not working even after #16420!