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

feat: Add ExtendedSeasonLeaderboardFeature #2431

Merged
merged 4 commits into from
Apr 27, 2024

Conversation

kristofbolyai
Copy link
Collaborator

Wynncraft Default (original)

2024-04-25_21 56 06

Default with Wynntils

2024-04-25_21 55 34

Short scores - optional config

2024-04-25_21 55 51

@ShadowCat117
Copy link
Contributor

I think you need to change labelInfos to a map with the season as the key and the labelinfo as the value.

Changing to season 16 immediately shows the issue

2024-04-26_11 04 25

@magicus
Copy link
Member

magicus commented Apr 26, 2024

The code (incl the LabelHandler changes) look fine overall, but I guess you must address Jamie's complaints first. :)

@ShadowCat117
Copy link
Contributor

Issue is still present :( Might be related but you don't seem to be adding anything to liveLabels

image

@kristofbolyai
Copy link
Collaborator Author

Oh... It looked like it's working, but I guess I didn't do the math..

Comment on lines +133 to +138
try {
JsonElement jsonElem = Managers.Json.GSON.toJsonTree(storage.get(), storageTypes.get(storage));
storageJson.add(jsonName, jsonElem);
} catch (Throwable t) {
WynntilsMod.error("Failed to save storage " + jsonName, t);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Only used this for debugging, but I think it should be kept, to reduce the risk of "resetting" storage files.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I have seen some people reporting their storage file getting reset so hopefully this will help prevent that

@kristofbolyai
Copy link
Collaborator Author

@JamieCallan117 Should be fixed now

Copy link
Contributor

@ShadowCat117 ShadowCat117 left a comment

Choose a reason for hiding this comment

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

Looks good and works perfectly now! :)

@kristofbolyai kristofbolyai merged commit f4b68e6 into fuygg_features Apr 27, 2024
1 check passed
@kristofbolyai kristofbolyai deleted the season-leaderboard branch April 27, 2024 13:43
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

Successfully merging this pull request may close these issues.

None yet

3 participants