Summary
Verse compiler does not detect vector3 as a key in a map as incompatible and does not mark it as an error.
( Example variable: ExampleMap: [vector3]int = map{vector3{}=> 3}
Verse therefore builds normally and launches the game normally.
But running a function that accesses “ExampleMap” will cause a “Network Connection Lost” crash. Basically freezing the UEFN experience and crashing it.
Verse Documentation clearly shows vector3 are incompatible, yet the compiler does not mark this incompatibility as an error.
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
Create a verse device with this function:
OnBegin<override>()<suspends>:void=
ExampleMap: [vector3]int = map{vector3{}=> 1}
Sleep(60.0) # You can remove/edit this sleep(), its here so the UEFN Experience can launch without instantly crashing to showcase this bug.
Print("Starting game crasher lmao") # Prints before accessing code so you can see that the lines that follow (Accessing ExampleMap) causes a crash.
Sleep(0.1)
for (Key->Value: ExampleMap):
Print ("Filled map has an item")
Add and enable said device to your UEFN experience.
Expected Result
Compiler should already be marking the “ExampleMap” as invalid, specifically pointing at the vector3 variable as the problem.
Verse code build should therefore fail.
Observed Result
Verse code builds normally. Project launches normally. UEFN experience freezes and crashes the moment the ExampleMap is accessed.
Platform(s)
windows