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

Enabling Counters+ causes energy bar to be affected by debris distortion effects #51

Closed
chenxiaolong opened this issue May 14, 2020 · 7 comments

Comments

@chenxiaolong
Copy link

Describe the Bug

When reduced debris is enabled and Settings -> Advanced Graphics -> Screen Distortion Effects is also enabled, Counters+ seems to cause the energy bar to be affected by the distortion effects. The whole energy bar will "vibrate"/displace with every note slice. This is visible in both the Camera+ rendering and the HMD. If Counters+ is disabled via the menu option, then the energy bar behaves normally and stays in place.

I've tested this with a clean installation and only the following mods installed:

  • BSIPA 4.0.5
  • CameraPlus 4.1.2
  • Counters+ 1.8.4
  • (SongCore + its dependencies)

Attach or Link Files

Counters+ log file from the run exhibiting the issue (bottom left quadrant of the video below): https://gist.github.com/chenxiaolong/940b0e26a8401d6f531cd64490965c57

The default generated CountersPlus.ini configs were used: https://gist.github.com/chenxiaolong/ee90b501dda57ffaee329174c4a04879

Probable Culprit

I've briefly looked over the code and I haven't had any luck finding what might be causing this. It seems that Counters+ doesn't use the energy bar for anything except positioning a counter.

Screenshots or Video

Video: https://youtu.be/r3miYbZJG4M (original 4K .mp4 in case YouTube's compression makes it hard to see: https://noobdev.io/BeatSaber/20200513_Counters+_Distortion_Bug.mp4)

The top two quadrants show the base game behavior with no mods. The energy bar always remains in place regardless of which effects are enabled or which debris mode is used.

The bottom left quadrant shows the problematic behavior when Counters+ is installed. The energy bar will move with each slice of a note. The bottom right quadrant shows that this problem doesn't occur if distortion effects are disabled while Counters+ is enabled.

Additional context

I've also tried building the latest code from the master branch (commit 12e1ca5 at the time of writing) and the behavior is still the same. If there's any other information that's needed, I'd be happy to provide it.

@chenxiaolong
Copy link
Author

Actually, now that I look at the video more closely, it seems that the Counters+ counters are being affected by the distortion effects too. Maybe this is somehow impacting the entire HUD?

@Caeden117
Copy link
Collaborator

If I had to guess, the shockwave effect is ignoring a certain layer ID that the base game HUD is assigned to, but that Counters+'s HUD isn't.

I'll try copying over the layer ID from the base game HUD.

@chenxiaolong
Copy link
Author

Wow, thanks for the quick reply! I'd be happy to compile and test the change when ready.

@Caeden117
Copy link
Collaborator

Try this build.

@chenxiaolong
Copy link
Author

Unfortunately, that didn't do the trick. Logs:
2020.05.13.23.22.58.log

@Caeden117
Copy link
Collaborator

@chenxiaolong
Copy link
Author

Confirmed; it's working great. Thank you!

rakkyo150 pushed a commit to rakkyo150/CounterPlus-Improved that referenced this issue Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants