Calling this crashes the game 100% repro:
Func(Agent:agent):void={
if(X := set GlobalInt[GetSession()] = if (Y := GlobalInt[GetSession()]) then Y + 1 else 0){Print("{X}")}
}
All details here:
Calling this crashes the game 100% repro:
Func(Agent:agent):void={
if(X := set GlobalInt[GetSession()] = if (Y := GlobalInt[GetSession()]) then Y + 1 else 0){Print("{X}")}
}
All details here:
Thank you for your report! We would like to look into this further, would you be able to submit a bug report using the form available here? Fortnite Creative
its weird it works for normal map but not for weak_map
Hey Finest.
@JoeriDukker - could you send me over the code you’re using with plain map that doesn’t fail?
Func(Agent:agent):void={
if(X := set GlobalInt[GetSession()] = if (Y := GlobalInt[GetSession()]) then Y + 1 else 0){Print("{X}")}
}
FuncFromEpicPost(Agent:agent):void={
X := if (Y := GlobalInt[GetSession()]) then Y + 1 else 0
if:
set GlobalInt[GetSession()] = X
Print("{X}")
}
Func3(Agent:agent):void={
var RegularMap:[int]int = map{}
if(X := set RegularMap[0] = if (Y := RegularMap[0]) then Y + 1 else 0){Print("{X}")}
}
Func3 uses regular map
Thank you!
Confirmed broken for round based games. GetSession and weak_map work fine in game modes that don’t have rounds.
Same here, also having session crashes when using weak map.