Skip to content

Player profile data, dev origin fix, debug enhancements#14

Open
NineOfGaming wants to merge 1 commit into
DFOnline:mainfrom
NineOfGaming:main
Open

Player profile data, dev origin fix, debug enhancements#14
NineOfGaming wants to merge 1 commit into
DFOnline:mainfrom
NineOfGaming:main

Conversation

@NineOfGaming
Copy link
Copy Markdown

Summary

Adds structured player profile/location lookup support, expands debug tooling, and improves plot state tracking.

Added

  • Added /whois profile parsing with caching and timeout handling.
  • Added public player lookup APIs:
    • FlintAPI.requestPlayerProfile()
    • FlintAPI.requestPlayerProfile(String)
    • FlintAPI.requestPlayerLocation()
    • FlintAPI.requestPlayerLocation(String)
  • Added profile/location data models:
    • PlayerProfile
    • PlayerLocation
    • PlayerRanks
    • PlayerRank
    • PlayerRankCategory
    • PlayerBadge
  • Added current user profile/rank state through Flint.getUser().getProfile() and Flint.getUser().getRanks().
  • Added plot owner profile/rank state through Plot.getOwnerProfile() and Plot.getOwnerRanks().
  • Added separate API opt-ins for confirmed location tracking, user profile fetching, and plot owner profile fetching.
  • Added /flint debug controls for debug display, location confirmation, user profile fetching, and plot owner profile fetching.
  • Added /flint test locate and /flint test whois commands with detailed debug output.

Fixed / Changed

  • Replaced the internal locate result type with PlayerLocation so stored and requested location data use the same public model.
  • Fixed plot dev origin calculation being offset.
  • Fixed plot size detection caused by incorrect dev origin tracking.
  • Fixed code-space bounds check.
  • Improved underground code-space detection consistency.
  • Fixed crash due to async locate, whois, and toast UI updates running off the client thread.

Documentation

  • Documented profile/rank access, player lookup APIs, and the new API opt-ins in the README.
  • Improved README readability in several places.

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.

1 participant