You are browsing as a guest. Sign up (or log in) to start making projects!

4h 46m 46s logged

Monicraft - Offline Player List, Async Player Data Fetching & More :python:


Monicraft’s second-to-last devlog has arrived :hack: . I’ve now added the last feature I wanted to add, the “include offline player list” button. It works by simply getting the whole usercache.json file and getting all the names and UUID’s in it. After that it’s just using my old function to retrieve the saved data and stats on the server. I still wanna optimize it and take some time to fix and improve the application overall.


New Features:

  • Include Offline Players: A toggle which toggles (yeah, the toggle toggles something :yayayayayay: ) the visibility of offline players in the Player List. Also added a extra column to the table to see who’s online and who’s not. Online players will allways show up at the top. You’re also able to use some of the Player Manager’s features on offline players.
  • Async Player Data Fetching: The fetching of playerdata (stored in {UUID}.dat) now operates in parralel, so bigger servers don’t have to wait for seconds every time the table is built. This brings up the problem that the default rate limit for the client API is 240 requests/min, so really big servers with more than 40 recent (offline) players or even online players will exceed this limit. This is why I wanted to implement offline player caching, more on that in future plans.
  • Improved Stats UI: The statistics pop-up was a bit too small and not all the data could fit in. So I made it a bit cooler by making it bigger :sunglas:
  • Small Fixes
    • Only ping the server when it’s running to prevent errors.
    • Fixed a problem where my Unicode characters got turned into ugly emoji’s :angry-fart: . I didn’t discover this until I ran it in my native terminal, I’ve done all the testing in my built-in terminal in my IDE.

Future Plans:

I think I will be doing one more devlog where I will add these features and polish it for the first SHIP.

  • Fix a bug where you suddenly select the first row of the table after rebuilding it
  • Create a cache for offline players
  • Add disk usage resource data
  • Settings: Changing the loop delay
  • Settings: Chat mode and message prefixes
  • Make the GitHub workflow files
  • Make an installation guide in the README
0
22

Comments 0

No comments yet. Be the first!