Skip to content

Conversation

@OriginalTomPouce
Copy link

Add the starting inventory to the API static_tracker call.
The main reason why I'm adding this is because we can fetch the networks items, but not the starting ones, which means we can't get a full player's inventory using API in a bunch of cases.

I feel like that data should go on the static_tracker call because it never changes.

What is this fixing or adding?

Adding a PlayerStartingInventory list on the WebHostLib/api/tracker.py‎ fille
Using that list to fill the new field player_starting_inventory on the static_tracker result.

How was this tested?

With a local webhost, hosting a couple of multiworlds (30+ players).

If this makes graphical changes, please attach screenshots.

"player_starting_inventory":
    [
        {
            "items": [16777239, 16777240, 16777397],
            "player": 1,
            "team": 0
        },
        {
            "items": [234782070],
            "player": 2,
            "team": 0
        },
        {
            "items": [],
            "player": 3,
            "team": 0
        },
        {
            "items": [],
            "player": 4,
            "team": 0
        },
        {
            "items": [105, 119, 134, 3, 3, 3, 3, 3, 20],
            "player": 5,
            "team": 0
        }
    ]

@github-actions github-actions bot added affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant