Skip to content

Jet Velocity: Cannot start game #10639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
n0samu opened this issue Apr 11, 2023 · 4 comments
Closed

Jet Velocity: Cannot start game #10639

n0samu opened this issue Apr 11, 2023 · 4 comments
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working xml

Comments

@n0samu
Copy link
Member

n0samu commented Apr 11, 2023

Describe the bug

Link to SWF: https://uploads.ungrounded.net/553000/553350_jet_velocity_viral.swf

After the loading screen, Jet Velocity shows nothing but a black screen.

In the current version of Ruffle, the game is blocked by XML.hasComplexContent being unimplemented. With #10638, the error no longer occurs, but the game still doesn't load.

Expected behavior

The game should load.

Note: when testing in the Flash projector, you'll need to load the game via the provided SWF URL (File => Open, then paste the URL). Due to Flash's security restrictions, the game doesn't load locally.

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

Here is a decrypted version of the game with some trace statements added: jetvelocity_trace.zip

I recommend loading the game via a local web server so you can compare the trace output with the debug Flash projector.

Notice that both Flash and Ruffle trace "loading image bytes" many times, but only Flash ever traces "onLoaderComplete start!"
The relevant function is onZipComplete in com.devm.util.misc.BitmapZipDispenser.

(_loc8_ = new Loader()).name = _loc5_.filename;
_loc8_.loadBytes(_loc5_.content);
_loc8_.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoaderComplete,false,0,true);

The COMPLETE event of the Loader is never dispatched. I think this may have the same cause as #10463.

@n0samu n0samu added bug Something isn't working A-avm2 Area: AVM2 (ActionScript 3) labels Apr 11, 2023
@n0samu n0samu added the xml label May 21, 2023
@n0samu
Copy link
Member Author

n0samu commented May 21, 2023

Progressed by #10638, #11045, and #11084. With all of those merged in, the main menu background gradient and music load correctly, but that's about it. The new error is:

ERROR run_frame:run_all_phases_avm2: ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "addedToStage", class: flash.events::Event, ptr: 0x13f0bf50df8 }) to handler FunctionObject(FunctionObject { ptr: 0x13f0d061cd8 }) : ReferenceError: Error #1069: Property http://www.collada.org/2005/11/COLLADASchema::asset not found on XML and there is no default value.
        at org.ascollada.core::DaeEntity/getNode()
        at org.ascollada.core::DaeDocument/read()
        at org.ascollada.core::DaeEntity()
        at org.ascollada.core::DaeDocument()
        at org.ascollada.io::DaeReader/loadDocument()
        at org.papervision3d.objects.parsers::DAE/load()
        at com.devm.hover.game.racers.models::RacerBModel()
        at com.devm.hover.game.racers::Racer/createModel()
        at com.devm.hover.game.racers::Racer()
        at com.devm.hover.menu::FakeRaceBg/setRacer()
        at com.devm.hover.menu::MainMenu/onEvent()
        at flash.display::DisplayObjectContainer/flash::display::DisplayObjectContainer::addChild()
        at com.devm.hover::Main/onMenu()
        at com.devm.hover::HoverDispatcher$/onMenu()
        at com.devm.hover::Main/afterIntro()
        at flash.events::EventDispatcher/flash::events::EventDispatcher::dispatchEvent()
        at com.devm.util.fx::DevmIntro/remove()
        at Function/apply()
        at gs::TweenLite/complete()
        at gs::TweenLite/render()
        at gs::TweenLite$/executeAll()

@evilpie
Copy link
Collaborator

evilpie commented May 21, 2023

Amazingly enough this does seem like a legit use of namespaces: param1.collada::[param2][0]. It's just uncommon to actually find that.

@n0samu
Copy link
Member Author

n0samu commented Jul 5, 2023

The main menu looks a lot better now:
image

Error is still the same though, it's just a visual improvement.

@torokati44
Copy link
Member

Allegedly fixed by #12540.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working xml
Projects
None yet
Development

No branches or pull requests

3 participants