ruffle-rs / ruffle

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

Pico School DX: Wrong Dialogue softlock #9933

Open waspennator opened 1 year ago

waspennator commented 1 year ago

Describe the bug

616353_secure_picoSchoolDX_cs6.zip Game is finally getting past the preloader now as of the latest nightly, however this game seems to have some issues keeping it from being considered playable.

1: Go south, east twice, north into the closet, grab the gun, then go back out and east again and you'll run into cyclops, use the gun in your inventory and the animation will play out, but Cyclops will say the wrong line of dialogue for some reason that you cant click past. (You can still kill him by clicking on the gun in your inventory.)

2: After killing Cyclops, go back west twice and then go north into the classroom. Cassandra ends up saying the wrong dialogue again, but the game ends up softlocking here because of it.

Pic example 1: DX Ruffle 1

Pic example 2: DX Ruffle 2

Expected behavior

The dialogue should proceed like normal like these pics.

DX Flash 1 DX Flash 2

Affected platform

Desktop app

Operating system

Windows 11

Browser

No response

Additional information

No response

waspennator commented 1 year ago

www.newgrounds.com-1678400097273.log Uploading console log from testing on NG and seeing if anything sticks out.

I also tried it out on mobile and for some reason the gate blocking off the bathrooms east of where you encounter cyclops was stuck on the top left of the screen.

I'm also noticing all the locker doors are silver colored, rather then being color specific, probably cause the first row of lockers are silver colored

waspennator commented 1 year ago

Update. dialogue issue is no longer a problem as of the latest build of ruffle, did a full playthrough and everyone seems to say their lines now without softlocking the game, meaning it's now possible to beat the game (Hanzo is a pain in the ass to fight though).

The issues with the locker doors being all colored silver and unopenable, as well as the gate blocking off the bathrooms stuck in the top left are still a problem though.

ruffle.rs-1678931517213.log

waspennator commented 1 year ago

The lockers and the gate are still bugged, but now i've got a feeling that this might be a culprit.

Error dispatching event EventObject(EventObject { type: "addedToStage", class: flash.events::Event, ptr: 0x12862c4 }) to handler FunctionObject(FunctionObject { ptr: 0x127ab04 }) : ReferenceError: Error # 1069: Property perspectiveProjection not found on flash.geom.Transform and there is no default value.

A bunch of these errors also pops up every time I change screens. Error occured when running AVM2 frame script: ReferenceError: Error # 1065: Variable flash.geom::PerspectiveProjection is not defined.

waspennator commented 1 year ago

Update, the lockers seem to be fixed and openable now, they don't seem to properly swing open, but they do still open up nonetheless, meaning the game should be fully playable with only slight visual glitches remaining now. Believe the locker animation not playing correctly might have something to do with this.

Encountered stub: AVM2 flash.geom.Transform.matrix3D setter

How it looks on Ruffle: Picos School DX Lockers Ruffle

How it looks on Flash: Picos School DX Lockers Flash

waspennator commented 7 months ago

Update: The gate still needs perspectiveprojection to look correct, but apparently there's also another issue where during gunfight encounters, the mouse doesn't properly change into a target article, providing video.

https://github.com/ruffle-rs/ruffle/assets/78768499/33e18419-d6cb-45f6-92f0-ac9f8df6e6d0

There also seems to be lag during full screen, though I'm guessing this might be related to filter effects.