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

Bring back page How to install a counter & bug fixes #186

Merged
merged 4 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/common/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ENABLE_GOSU_OVERLAY=false
# Enables logs for tosu developers, not very intuitive for you, the end user.
# best not to include without developer's request.
DEBUG_LOG=false
OPEN_DASHBOARD_ON_STARTUP=false
OPEN_DASHBOARD_ON_STARTUP=true

# IP address where the websocket api server will be registered
# 127.0.0.1 = localhost
Expand Down
1 change: 1 addition & 0 deletions packages/server/assets/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
</a>
<a href="/?tab=0" class="indent-left tab-item">Installed</a>
<a href="/?tab=1" class="tab-item">Available</a>
<a href="/?tab=3" class="tab-item">How to install a counter</a>
<!-- <a href="/?tab=3" class="tab-item">How to add counter</a> -->
<div class="indent-left">
<input class="search-bar" type="text" placeholder="search">
Expand Down
10 changes: 8 additions & 2 deletions packages/tosu/src/entities/BeatmapPpData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,19 @@ export class BeatmapPPData extends AbstractEntity {
this.PerformanceAttributes.free();
} catch (error) {
wLogger.debug(
`BPPD(updateMapMetadata) Can't get map: ${mapPath}`
`BPPD(updateMapMetadata) Can't get map`,
{
mapPath,
currentMods,
currentMode
},
(error as Error).stack
);
return 'not-ready';
}

this.beatmap = new rosu.Beatmap(this.beatmapContent);
if (this.beatmap.mode !== currentMode)
if (this.beatmap.mode === 0 && this.beatmap.mode !== currentMode)
this.beatmap.convert(currentMode);

const beatmapCheckTime = performance.now();
Expand Down
Loading