Summary
Previously, granting gold to a player via item granter device “GrantItem()” in a scripted context (elimination rewards, random events, etc.) would correctly update both the player’s inventory and their persistent Gold Bars HUD counter.
Now, we are seeing that after a player receives any amount of gold for the first time, the gold HUD does not update to reflect the new amount. The player’s actual inventory count is correct, opening the inventory or a custom bank UI that queries the item count directly shows the right value but the HUD display where the materials are remains stuck at its previous value.
Verse code used:
using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /Fortnite.com/Game }
using { /Verse.org/SceneGraph }
using { /Verse.org/Simulation }
using { /Fortnite.com/Playspaces }
using { /UnrealEngine.com/Temporary/Diagnostics }
gold_hud_min_repro := class(creative_device):
@editable Spawners : player_spawner_device = array{}
@editable Collectibles : collectible_object_device = array{}
@editable GoldGranter : item_granter_device = item_granter_device{}
var InitializedPlayers : [player]logic = map{}
OnBegin<override>()<suspends>:void=
for(Spawner : Spawners) {Spawner.SpawnedEvent.Subscribe(InitilizePlayer)}
for(Collectible : Collectibles) {Collectible.CollectedEvent.Subscribe(OnCollected)}
InitilizePlayer(Agent : agent):void=
if:
Player := player[Agent]
FortChar := Agent.GetFortCharacter[]
then:
if(Existing := InitializedPlayers[Player]){}
else{if(set InitializedPlayers[Player] = true){FortChar.EliminatedEvent().Subscribe(OnPlayerEliminated)}}
OnPlayerEliminated(Result : elimination_result):void= # Gold Granted via Elim
if:
Eliminator := Result.EliminatingCharacter?
Agent := Eliminator.GetAgent[]
then:
GoldGranter.GrantItem(Agent)
OnCollected(Agent : agent):void= # Gold Granted via Collectible
GoldGranter.GrantItem(Agent)
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
- Be in a map that grants a Gold Bars item to a player from Verse (e.g. on an elimination reward).
- Have a player receive gold for the first time in a session (e.g. get an elimination or collectible pickup).
- Observe the persistent gold HUD counter.
- Open the player’s inventory and observe the actual gold count.
Expected Result
The gold HUD updates to reflect the newly granted gold amount, matching the player’s actual inventory count.
Observed Result
The gold HUD does not update after the first gold grant of the session, even though the player’s inventory correctly reflects the new gold amount.
Platform(s)
ALL
Island Code
2786-2114-8349