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

The Amazing Spider-Man Online Movie Game: Missing letters in some text fields #14832

Open
n0samu opened this issue Jan 19, 2024 · 2 comments · May be fixed by #19143
Open

The Amazing Spider-Man Online Movie Game: Missing letters in some text fields #14832

n0samu opened this issue Jan 19, 2024 · 2 comments · May be fixed by #19143
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working text Issues relating to text rendering/input unimplemented Issues for functionality that hasn't been implemented yet

Comments

@n0samu
Copy link
Member

n0samu commented Jan 19, 2024

Describe the bug

In The Amazing Spider-Man Online Movie Game, letters are missing from some text fields:
image
image
image

Due to CORS and ExternalInterface errors, you'll need to test the game in the Ruffle desktop app:
ruffle https://media.numuki.com/spider-man/games/online-movie-game/main.swf --dummy-external-interface

Expected behavior

Text fields should not be missing letters.

Content Location

Page URL: https://www.numuki.com/game/spider-man-online-movie-game/
Main SWF URL: https://media.numuki.com/spider-man/games/online-movie-game/main.swf
This is a multiasset game, so downloading the main SWF is not enough to run it locally. If you want to inspect the files, I recommend using Flashpoint.

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

The game uses a separate fontLib.swf file to store the complete copies of its fonts. Most of the buttons and text fields with this problem are stored in the shellAssets.swf file. This file has incomplete copies of the required fonts with only enough characters to display the text fields' default/initial text. The fontLib.swf file gives custom names to the fonts: AKZIGBEB, AKZIGBER, etc. The text seen in the game is loaded via the config.xml (or config.preloader.php in the Flashpoint version). The font is set via CSS. For example, here's the PLAY NOW button:
<play style="tall_btn" ><![CDATA[PLAY NOW]]></play>
And later in the XML, here's the applicable CSS:
.tall_btn {font-family:AKZIGBEM;color:#bcbcbc;font-size:22px;}
So I think this needs CSS support in AVM2.

@n0samu n0samu added bug Something isn't working text Issues relating to text rendering/input unimplemented Issues for functionality that hasn't been implemented yet A-avm2 Area: AVM2 (ActionScript 3) labels Jan 19, 2024
@n0samu n0samu linked a pull request Jan 6, 2025 that will close this issue
@kjarosh
Copy link
Member

kjarosh commented Jan 6, 2025

Due to CORS and ExternalInterface errors, you'll need to test the game in the Ruffle desktop app:
ruffle https://media.numuki.com/spider-man/games/online-movie-game/main.swf --dummy-external-interface

Unfortunately that no longer works as the website shows "Forbidden Visit www . NuMuKi . com to play this game" page.

Edit: you need to set Referrer URL to https://www.numuki.com/game/spider-man-online-movie-game/

@kjarosh
Copy link
Member

kjarosh commented Jan 6, 2025

Will be fixed by #19143

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 text Issues relating to text rendering/input unimplemented Issues for functionality that hasn't been implemented yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants