Skip to content

Conversation

@int80x0
Copy link

@int80x0 int80x0 commented Oct 10, 2025

This overlay is based on an old gosumemory overlay I downloaded years ago. The original base is not my work, but I unfortunately can no longer find it online and don't remember the original creator's name - otherwise I would have gladly credited and linked them in this project.

Since I've been using this overlay on my Twitch stream for a very long time, I decided to modernize it and migrate it to the tosu v2 API to keep it functional and up-to-date.

image image

Users must now specify complete filename with extension (e.g., GothicRD.ttf) in settings. This prevents the overlay
  from attempting to load non-existent font formats.
@int80x0
Copy link
Author

int80x0 commented Oct 11, 2025

Song-Select In-Game

Copy link
Member

@GabuTheDev GabuTheDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks alright overall.

Please read the individual comments and adjust your code as needed.
Some suggestions, but not needed for approval:

  • I would suggest that for the In-Game.png, you also provide a background.
  • The js deps can be minified.

@int80x0 int80x0 requested a review from GabuTheDev November 26, 2025 04:31
@int80x0
Copy link
Author

int80x0 commented Nov 26, 2025

Thanks for the review!

I'd like to leave it without a background for now if that's alright. Actually, would it be possible to use the screenshots I sent initially?
Those had backgrounds included.

Also switched to the official tosu WebSocketManager like you mentioned.

Cheers!

GabuTheDev
GabuTheDev previously approved these changes Nov 26, 2025
@GabuTheDev GabuTheDev dismissed their stale review November 26, 2025 11:37

forgot something

@int80x0
Copy link
Author

int80x0 commented Nov 26, 2025

Alright, everything should be correct now, right?

@int80x0 int80x0 requested a review from GabuTheDev November 29, 2025 05:51
@GabuTheDev GabuTheDev requested a review from cyperdark November 29, 2025 10:18
Comment on lines 3 to 5
if (!window.COUNTER_PATH) {
window.COUNTER_PATH = window.location.pathname;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont think this one is needed, because tosu add this one when you using overlay via http://127.0.0.1:24050/OVERLAY_NAME

Comment on lines 45 to 48
const fontPath = `fonts/${fontFileName}`;

try {
const fontFace = new FontFace('CustomFont', `url(${fontPath})`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fontPath used only once, so you can do this

Suggested change
const fontPath = `fonts/${fontFileName}`;
try {
const fontFace = new FontFace('CustomFont', `url(${fontPath})`);
try {
const fontFace = new FontFace('CustomFont', `url(fonts/${fontFileName})`);

@cyperdark
Copy link
Collaborator

@int80x0 check requested changes

@int80x0 int80x0 requested a review from cyperdark December 26, 2025 09:45
- Remove unused fontPath variable in loadCustomFont()
- Remove redundant window.COUNTER_PATH initialization (handled by tosu)
@int80x0
Copy link
Author

int80x0 commented Dec 26, 2025

@cyperdark
Thanks for the review! I've implemented both requested changes:

  1. Removed the fontPath variable and used the value directly inline
  2. Removed the window.COUNTER_PATH check as tosu handles this automatically

Should be good to go now!

@GabuTheDev
Copy link
Member

@int80x0 you didn't commit the changes.

@int80x0
Copy link
Author

int80x0 commented Dec 28, 2025

@int80x0 you didn't commit the changes.

oooops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants