Open tsunamistate opened 1 year ago
On 7c280fc1716a98b400da96e28195bdebaad669d9 ruffle_core::avm2::activation
errors are gone, only 1 ruffle_core::avm2::events
error appears
Black screen after 44% loading still appears
Thanks to https://github.com/ruffle-rs/ruffle/pull/10864 menu works and goes ingame, but no characters appear, playable or not.
The game prints these messages on the screen: There is no BitmapData asset with an ID of "assets/flash/".
Console spams the following error message, changing only the pointer value:
2023-04-30T17:18:07.622100Z ERROR ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0x2605cbf7e68 }) to handler FunctionObject(FunctionObject { ptr: 0x26056939288 }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: name)
Same problem as https://github.com/ruffle-rs/ruffle/issues/2072#issuecomment-1529084833 - I guess this is the current issue with Haxe-compiled games
Somewhere around 333009b79fa31bafb16030b6c35ec79b671f8d61 game was fully playable, but after 08d6a7b6480cefb800a9da6363a17a9d5130a588 (https://github.com/ruffle-rs/ruffle/pull/13677) it regressed and started crashing, and from 3572367c8e99fd4361c349cd79e65a6d7c31213c (https://github.com/ruffle-rs/ruffle/pull/13818) until current commit as of moment of writing (f2b02acf444a5fa7a46e1e4f1b40c766e613706d) it is regressed with the following issues:
Still a problem as of the latest nightly.
As of d0a37b3b6150a0c5abf28962bd5f44558d3a8238 (2024-07-04) SFW just produces black screen with the following error:
ERROR ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "complete", class: flash.events::Event, ptr: 0x223918592a0 }) to handler FunctionObject(FunctionObject { ptr: 0x22394888820, name: Ok("ApplicationMain$/preloader_onComplete()") }) : TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.eclecticdesignstudio.spritesheet.importers::SpriteLoq$/parse()
at AssetLoader$/loadDynamicSpriteSheet()
at ResultScreen()
at CHEW()
at CHEW$/main()
at Function/apply()
at ApplicationMain$/begin()
at ApplicationMain$/preloader_onComplete()
at flash.events::EventDispatcher/flash::events::EventDispatcher::dispatchEvent()
at NMEPreloader/onLoaded()
at ApplicationMain$/onEnter()
As of d0a37b3 (2024-07-04) SFW just produces black screen with the following error:
ERROR ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "complete", class: flash.events::Event, ptr: 0x223918592a0 }) to handler FunctionObject(FunctionObject { ptr: 0x22394888820, name: Ok("ApplicationMain$/preloader_onComplete()") }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.eclecticdesignstudio.spritesheet.importers::SpriteLoq$/parse() at AssetLoader$/loadDynamicSpriteSheet() at ResultScreen() at CHEW() at CHEW$/main() at Function/apply() at ApplicationMain$/begin() at ApplicationMain$/preloader_onComplete() at flash.events::EventDispatcher/flash::events::EventDispatcher::dispatchEvent() at NMEPreloader/onLoaded() at ApplicationMain$/onEnter()
I can also confirm, could you narrow it down to the last version that worked before the black screen issue started?
@waspennator bisected to dc03f541dbf58d1eef8fef11e586ed683d09c44a as first bad commit
Copied from @Aaron1011's comments on discord:
I investigated more - it turns out that this issue is just the swf header 'Frame count = 1' bug we don't advance to the second frame because the header only delclares 1 frame if I edit the header to declare 2 frames, it works
Describe the bug
"Cho'gath Eats the World" reaches 44% in loading, then gets the black screen. Menu music is heard playing.
SWF file: https://www.mediafire.com/file/cx66edh8cp6oyc4/CHEW_%2528Full_Game%2529.swf/file (Providing Mediafire link because SWF exceeds GitHub limit of 25 Mb)
Errors from desktop console:
Web demo (Firefox 111) also has the following warnings in addition to errors above:
Expected behavior
Game is playable after needed APIs are implemented
Affected platform
Desktop app
Operating system
Windows 11
Browser
Firefox 111.0
Additional information
This is a companion issue to Astro Teemo (https://github.com/ruffle-rs/ruffle/issues/2072), Astro Teemo is an unlockable game in Cho'gath Eats the World