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

Bad Piggies: Property Bytes not found on flash.display.Loader and there is no default value #10179

Closed
MartySVK opened this issue Mar 17, 2023 · 3 comments
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working

Comments

@MartySVK
Copy link
Contributor

Describe the bug

Game - https://www.gameflare.com/online-game/bad-piggies/
SWF - https://data.gameflare.com/games/3371/IpvdsF8mGgh7u4.swf

error:

ERROR ruffle_core::avm2::activation: AVM2 error: Object(ErrorObject(ErrorObject { class: ReferenceError, ptr: 0x2811dd76080 }))
ERROR ruffle_core::avm2::activation: ReferenceError: Error #1069: Property Bytes not found on flash.display.Loader and there is no default value.
ERROR ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "addedToStage", class: flash.events::Event, ptr: 0x2811db5f200 }) to handler FunctionObject(FunctionObject { ptr: 0x2811d7967f0 }) : AvmError(Object(ErrorObject(ErrorObject { class: ReferenceError, ptr: 0x2811dd76080 })))

Expected behavior

progress the game

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

No response

@MartySVK MartySVK added the bug Something isn't working label Mar 17, 2023
@n0samu n0samu added the A-avm2 Area: AVM2 (ActionScript 3) label Mar 17, 2023
@Lord-McSweeney
Copy link
Collaborator

Lord-McSweeney commented Jun 9, 2023

This is because of an bad implementation of a String function that causes an operation to return "Bytes" instead of "loadBytes".

@MartySVK
Copy link
Contributor Author

With these PRs, game looks fully playable...great job 🥳

@Lord-McSweeney
Copy link
Collaborator

Still one minor issue- the "resume" button which can be accessed from the pause menu is in the wrong location, but that's a relatively small issue.

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
Projects
None yet
Development

No branches or pull requests

3 participants