Calling TeleportTo() on an empty mutator_zone_device causes verse to crash

Reference ID

5dc91a08-4e5b-321e-dcb0-cb912323ad73

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Verse

Summary

Creating a CreativeDevice Verse variable that is @editable and is left at the default value of , and then attempting to teleport that device, causes the Verse runtime to throw an exception / error with the following text

LogVerse: Error: VerseRuntimeErrors: Unknown error in GetTransform()

Steps to Reproduce

  1. Load private island 8236-4974-0140
  2. Start the game (launch off the starting platform)
  3. Play for approximately 10 seconds

β€”orβ€”

  1. Create a custom verse device with the following code:
    @editable MyZone : mutator_zone_device  := mutator_zone_device{}

    MoveMyZone():void=
        if:
            MyZone.TeleportTo[vector3{ X:=0.0, Y:=0.0, Z:=0.0}, rotation{}]
  1. Start the map and execute the function MoveMyZone(). Make sure that you do not assign a value to MyZone in the editor (leave it as None)

Expected Result

Verse ignores the request to teleport a device that is left at the default None value, and continues to run properly and execute user code.

Observed Result

The following log appears in the Output Log:

LogVerse: Error: VerseRuntimeErrors: Unknown error in GetTransform()

Verse code stops executing (or, OnBegin() suspending function exits)

Platform(s)

windows

Island Code

8236-4974-0140

Not especially related to mutator_zone_device, allow me

1 Like