Quantcast
Channel: General - Epic Developer Community Forums
Viewing all articles
Browse latest Browse all 9450

weak_map is broken in 28.30

$
0
0

Reference ID

dd026f8f-4c1b-63e5-3a11-c4b97624fad5

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Summary

weak_map is now broken as of 28.30 for join in progress players

Steps to Reproduce

Use a weak_map and session to store global player data
When players join the game, try and add them to the map
They can’t be properly added

Expected Result

Session and weak_map should work and not go out of memory or reset

Observed Result

weak_map stops working for join in progress players

Platform(s)

windows

CODE:

using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

var GlobalData : weak_map(session, [player]game_player) = map{}

GamePlayers()<transacts>:[player]game_player=
    var Players : [player]game_player = map{}
    
    if (PlayerData:= GlobalData[GetSession()], set Players = PlayerData) {}
    Players

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 9450

Trending Articles