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

WIP: Highscores #4152

Closed
wants to merge 1 commit into from
Closed

WIP: Highscores #4152

wants to merge 1 commit into from

Conversation

reyaleman
Copy link
Contributor

Pull Request Prelude

Changes Proposed

  • Added in-game highscores feature...
  • Easy to add custom highscores like "Most deaths, online times, storage checks, etc..."
  • configurable (highscores.lua)

Needs testing, suggestions & code review

Issues addressed:
Highscores functionality

needs testing & code review
@kygov
Copy link
Contributor

kygov commented Jun 4, 2022

This could be done using DatabaseTasks to make it async.

@ghost ghost requested review from DSpeichert and a team June 4, 2022 08:54
}

scriptInterface.resetScriptEnv();
}
Copy link
Member

Choose a reason for hiding this comment

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

I believe you can do the network messaging in Lua and avoid messing with the table here. Something in #4043 might be helpful

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean sending the HighscoresWindow part or handling the packets received from the client?

Copy link
Member

Choose a reason for hiding this comment

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

I mean Player:onRequestHighscores should return nothing, and should create a NetworkMessage and fill it in Lua instead of returning a table and filling the network message in C++

@omarcopires omarcopires mentioned this pull request Jun 14, 2022
3 tasks
@reyaleman reyaleman closed this Apr 23, 2023
@reyaleman reyaleman deleted the highscores branch June 12, 2024 23:34
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.

3 participants