ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.48k stars 803 forks source link

ActionScript 1.0 Adobe Flash Game Fails to Run Any Network Connection #14388

Closed TechXPlays closed 9 months ago

TechXPlays commented 9 months ago

Describe the bug

when opening the SWF file for my game, which connects to a server to check version number, it never makes the network connection. Game is based on AS1.0, game originally came out in 2001, final update (version we are using) was 2006, a game called Nitto 1320 Challenge. Also tried adding URL for main server to the Advanced section of ruffle

Expected behavior

Connect to server, check version number and other network connections in the game

Content Location

Tourney2.zip Here's the swf for the full game.

Affected platform

Desktop app

Operating system

Windows 11

Browser

local Windows Player

Additional information

No response

n0samu commented 9 months ago

It doesn't work in Flash Player either. The server responds with 401 Unauthorized.

TechXPlays commented 9 months ago

It doesn't work in Flash Player either. The server responds with 401 Unauthorized.

I know it works in regular flash player because I'm playing it right now with Flash Player 7. FP9 and newer give an error on connection at times unless you run them as a combined exe. We generally have a FP32 combined exe and FP7 exe for players to try as we've noticed FP7 works better for people without gpu's.

image image

we generally use this site to combine the swf with an exe for our players who download the game, but it gives false positives on virus scans, so i wanted to try ruffle to see if that would fix it https://pdfrecover.herokuapp.com/swftoexe/

So yes, there's still a bug it seems, but not sure what/why. I did also try spoofing the flashplayer version.

n0samu commented 9 months ago

The server is also returning 401 Unauthorized to Ruffle. I think your server has a user agent rule set up to only accept the Flash projector and not browsers. If you have control over the server you will need to disable rules like this to properly test whether there is a bug. Until then I cannot help you.

TDelmore commented 9 months ago

Just confirming that I did indeed have a check for the User Agent as a rudimentary anti-cheat - I've removed that now.

n0samu commented 9 months ago

And that fixed the game in Ruffle, correct? I see the login screen showing up now.