RSDKModding / RSDKv3-Decompilation

A Full Decompilation of Sonic CD (2011) & Retro Engine (v3)
Other
591 stars 120 forks source link

Tails' tails clipping through foreground objects #220

Closed MediumSizeBoy closed 1 year ago

MediumSizeBoy commented 1 year ago

Expected Behavior

Tails' entire sprite should be hidden behind sprites that are in the foreground.

Actual Behavior

Most of the sprite is hidden, but his tails continue to show through when he's standing still or jumping (not if he's running).

Steps to Reproduce

Go to literally any area that has a sprite in the foreground, which Tails will pass behind. The pseudo-3D area at the beginning of Palmtree Panic 1 is an obvious one.

Screenshots

tails3 tails1 tails2

Log File

No response

Decompilation Version

v1.3.1

Game Version

Blit Release (Steam/XBOX 360/PS3)

Game Revision

No response

Script Platform Type

Standard

Renderer Type

Software Renderer

Platform

Windows 11

Additional Comments

Every YouTube video of "Tails in Sonic CD" gameplay doesn't have this happen, and I can't find anyone else who's reported the same problem. I'm not using any mods or unusual settings. I've tried it on both the hardware and software renderers and both are the same. Possibly related: comparing my game with YouTube videos, it seems that in his standing and jumping poses, Tails' tails animate much more quickly than in other versions of the game, seeming to whip around as if the animation is playing at double speed.

UPDATE: Setting TxtScripts=false in settings.ini fixes the problem (the speed of his tails and the clipping through other sprites issue is gone), but it also means I'm unable to use any mods. Would still like a fix for this if possible!

MegAmi24 commented 1 year ago

This happens because Origins added an extra draw layer that the Blit releases didn't have. We've already added some checks to make sure this layer isn't active when on the latter version.

Setting TxtScripts=false in settings.ini fixes the problem

This means you're on an older version of the decompiled scripts. Newer versions include a workaround for this issue, so updating the scripts should fix the problem.

MediumSizeBoy commented 1 year ago

Thanks, seems I had the old scripts mistakenly downloaded, as you said!