Skip to content
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

Rebuild 2 - can't start game #12406

Closed
theonlypwner opened this issue Jul 29, 2023 · 3 comments · Fixed by #13255
Closed

Rebuild 2 - can't start game #12406

theonlypwner opened this issue Jul 29, 2023 · 3 comments · Fixed by #13255
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working unimplemented Issues for functionality that hasn't been implemented yet xml

Comments

@theonlypwner
Copy link

Describe the bug

  1. Download SWF from https://uploads.ungrounded.net/581000/581493_Rebuild2.swf
  2. Load SWF at https://ruffle.rs/demo/
  3. Try to start a new game.

It just reloads the same screen rather than starting the game.

After trying to start a few times, I see this in the DevTools console:

ruffle_web-wasm_extensions.js:716 WARN core/src/stub.rs:126 Encountered stub: AVM2 flash.text.TextField.restrict setter
ruffle_web-wasm_extensions.js:716 WARN core/src/stub.rs:126 Encountered stub: AVM2 flash.media.Sound constructor with arguments
ruffle_web-wasm_extensions.js:716 WARN core/src/stub.rs:126 Encountered stub: AVM2 flash.media.Sound.bytesLoaded getter
ruffle_web-wasm_extensions.js:716 ERROR core/src/avm2/events.rs:419 Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0x568f3f8 }) to handler FunctionObject(FunctionObject { ptr: 0x433eff0 }) : RustError("Modifying an XMLList object is not supported for Multiname { ns: Multiple([Namespace(Private(\"rebuild2.game:SaveManager\")), Namespace(Namespace(\"rebuild2\")), Namespace(Namespace(\"\")), Namespace(Namespace(\"rebuild2.game\")), Namespace(StaticProtected(\"rebuild2.game:SaveManager\")), Namespace(Private(\"SaveManager.as$21\")), Namespace(PackageInternal(\"rebuild2.game\")), Namespace(Namespace(\"http://adobe.com/AS3/2006/builtin\")), Namespace(Namespace(\"rebuild2.events\")), Namespace(Namespace(\"rebuild2.fort\")), Namespace(Namespace(\"rebuild2.gui\")), Namespace(Namespace(\"rebuild2.map\")), Namespace(Namespace(\"rebuild2.mission\")), Namespace(Protected(\"rebuild2.game:SaveManager\"))]), name: Some(\"food\"), param: None, flags: MultinameFlags(0x0) } = Integer(75)")
ruffle_web-wasm_extensions.js:716 ERROR core/src/avm2/events.rs:419 Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0x9a01ec0 }) to handler FunctionObject(FunctionObject { ptr: 0x433eff0 }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: setHighlightGlow)
ruffle_web-wasm_extensions.js:716 ERROR core/src/avm2/events.rs:419 Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0xdc715b8 }) to handler FunctionObject(FunctionObject { ptr: 0x433eff0 }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: setHighlightGlow)
ruffle_web-wasm_extensions.js:716 ERROR core/src/avm2/events.rs:419 Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0xa6565e8 }) to handler FunctionObject(FunctionObject { ptr: 0x433eff0 }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: setHighlightGlow)

Expected behavior

I expect the game to start.

Affected platform

Online demo

Operating system

Windows 11

Browser

Chrome 115.0.5790.102

Additional information

No response

@theonlypwner theonlypwner added the bug Something isn't working label Jul 29, 2023
@Lord-McSweeney Lord-McSweeney added unimplemented Issues for functionality that hasn't been implemented yet A-avm2 Area: AVM2 (ActionScript 3) xml labels Jul 29, 2023
@Lord-McSweeney
Copy link
Collaborator

See also #2444 for the same issue with the original Rebuild.

@Lord-McSweeney
Copy link
Collaborator

This now errors on Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0x55d8a11ea230 }) to handler FunctionObject(FunctionObject { ptr: 0x55d8a11c6200 }) : RustError("Modifying an XMLList object is not yet implemented: need to resolve").

@theonlypwner
Copy link
Author

theonlypwner commented Oct 12, 2023

The game starts now, but this game still has issues, so I opened #13525.

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 unimplemented Issues for functionality that hasn't been implemented yet xml
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants