# Error when using teleporter device or movement modulator device in Verse.

**URL:** <https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, bug-report, fortnite\
**Created:** [May 31, 2024, 5:47am UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960 "2024-05-31T05:47:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yamabuki\_Iro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yamabuki_iro/32/927970_2.png) [@Yamabuki\_Iro](https://forums.unrealengine.com/u/Yamabuki_Iro)\
**Post date:** [May 31, 2024, 5:47am UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/1 "2024-05-31T05:47:46Z")

</div>

### Reference ID

c62305f1-4ad5-954d-d6ee-e4914cfc9df6

### Please select what you are reporting on:

Unreal Editor for Fortnite

### What Type of Bug are you experiencing?

Devices

### Summary

I get an error when I activate my teleporter device or movement modulator device with Verse

```auto
Verse unrecoverable error: ErrRuntime_Internal: An internal runtime error occurred. There is no other information available.

Truncated callstack follows:
teleporter?ice:(/Fortnite.com/Devices/teleporter_device:)Teleport(:agent) (Unknown source) (Source: Unknown(0,0, 0,0))
team_manager:(/projects.epicgames.com/_7eae41eebd8d452b8c3e9f798b7cb8d8/team_manager:)TeamCaseTeleporters(:agent,:role) (Unknown source) (Source: Unknown(0,0, 0,0))
task_team_manager$TeleportChangeTeam(:role,:agent):Update (Unknown source) (Source: Unknown(0,0, 0,0))
team_manager:(/projects.epicgames.com/_7eae41eebd8d452b8c3e9f798b7cb8d8/team_manager:)HunterChoice(:volume_device) (Unknown source) (Source: Unknown(0,0, 0,0))
task_team_manager$SetUpSelectHunterTeam(:volume_device,:int):Update (Unknown source) (Source: Unknown(0,0, 0,0))

```

Probably it caused by activating the device with a non-spawned player or a player who left the match.

### Steps to Reproduce

This bug is not a definite occurrence.

1. Player leaves the match.
2. Using Teleport, a function of the teleporter device in Verse

### Expected Result

The player is teleported.

### Observed Result

Runtime errors occur.

### Platform(s)

windows

### Additional Notes

We can avoid this by checking Agents with IsActive

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [May 31, 2024, 6:18am UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/2 "2024-05-31T06:18:46Z")

</div>

hi @Yamabuki_Iro ,  
There is several posts on runtime errors and how to trap them in Verse code with the `<decides>` inside a function.

[What happens when verse runtime error occurs - Programming & Scripting / Verse - Epic Developer Community Forums (unrealengine.com)](https://forums.unrealengine.com/t/what-happens-when-verse-runtime-error-occurs/1863257/2)

---

<div class="post-metadata">

**Author:** ![Yamabuki\_Iro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yamabuki_iro/32/927970_2.png) [@Yamabuki\_Iro](https://forums.unrealengine.com/u/Yamabuki_Iro)\
**Post date:** [May 31, 2024, 7:55am UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/4 "2024-05-31T07:55:01Z")

</div>

```auto
<decides><transacts>

```

Do I use these in a function that uses the device if I want to avoid errors？

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [May 31, 2024, 11:25am UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/5 "2024-05-31T11:25:53Z")

</div>

The status of FORT-752117 incident has been moved from ‘Ready for QA’ to ‘Closed’. Resolution Reason: ‘Duplicate’

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [May 31, 2024, 10:11pm UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/6 "2024-05-31T22:11:33Z")

</div>

Hi @Yamabuki_Iro ,

Well @Yamabuki_Iro @Punkcat ,  
Wont allow me a new post so Replacing this one with  
from Code Snippets [Dynamic Player Teleporter Device](https://dev.epicgames.com/community/snippets/1WAo/fortnite-dynamic-player-teleporter-device)  
This has been changed to effectively adding failure recovery and when a failure occurs it retries.

The teleport function is possibly broken, this attempts to program verse code to stop runtime errors

```auto
using { /Fortnite.com/Devices }

using { /Verse.org/Simulation }

using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }

# To use this device, create a prop and attach a teleporter device to it. Ensure the teleport device
# has zero local position and rotation. Assign the prop and teleporter device to the editable
# properties and then call `TeleportAgentTo`.

dynamic_player_teleporter_device_log := class(log_channel){}

dynamic_player_teleporter_device := class(creative_device):

    Logger : log = log{Channel:=dynamic_player_teleporter_device_log}

    @editable
    TeleporterDevice: teleporter_device = teleporter_device{}

    @editable
    TeleporterRoot: creative_prop = creative_prop{}

    # Teleports an agent to a given translation and rotation. Note, only the yaw axis is used
    # on rotation by setting the teleporter rotation (if you configure your teleporter to use set player rotation)
    TeleportAgentTo(Agent: agent, Translation: vector3, Rotation: rotation):void =

        if(TeleporterRoot.TeleportTo[Translation, Rotation]):

            Logger.Print("Teleporting agent to {Translation}", ?Level:=log_level.Verbose) 

            # the attempt have worked now call the real TeleporterDevice will not cause runtime error

            TeleporterDevice.Teleport(Agent)

        else. Logger.Print("Failed to move dynamic teleporter prop!", ?Level:=log_level.Error)
              # Try for the second time as it may be transient
               if(TeleporterRoot.TeleportTo[Translation, Rotation]):

                     Logger.Print("Worked on second attempt Teleporting agent to {Translation}", ?Level:=log_level.Verbose)

                       TeleporterDevice.Teleport(Agent)

               else. Logger.Print("Final attempt dynamic teleporter prop!", ?Level:=log_level.Error)
               # This second else will stop a runtime error stopping Verse crashing

```

There may be typing and format errors, but the reason is to show the logic of stopping a runtime error then reporting the error and retrying

---

<div class="post-metadata">

**Author:** ![Yamabuki\_Iro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yamabuki_iro/32/927970_2.png) [@Yamabuki\_Iro](https://forums.unrealengine.com/u/Yamabuki_Iro)\
**Post date:** [June 1, 2024, 12:12pm UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/7 "2024-06-01T12:12:59Z")

</div>

Can this method be used with devices?

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [June 1, 2024, 8:47pm UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/8 "2024-06-01T20:47:43Z")

</div>

Hi @Yamabuki_Iro ,

See update post above  
There is an example Teleporter Device Verse code at [example](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/6)  
[Teleporter Device Verse Youtube Example](https://youtu.be/RtBaX-e7spk?t=105)

---

<div class="post-metadata">

**Author:** ![Punkcat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/punkcat/32/1191421_2.png) [@Punkcat](https://forums.unrealengine.com/u/Punkcat)\
**Post date:** [June 1, 2024, 9:18pm UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/9 "2024-06-01T21:18:27Z")

</div>

Please upvote: [Teleport Device Randomly Causes Runtime Errors](https://forums.unrealengine.com/t/teleport-device-randomly-causes-runtime-errors/1861367)

---

<div class="post-metadata">

**Author:** ![Yamabuki\_Iro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yamabuki_iro/32/927970_2.png) [@Yamabuki\_Iro](https://forums.unrealengine.com/u/Yamabuki_Iro)\
**Post date:** [June 2, 2024, 3:24am UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/10 "2024-06-02T03:24:50Z")

</div>

Thank you!  
I’ll watch it!

---

<div class="post-metadata">

**Author:** ![Yamabuki\_Iro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yamabuki_iro/32/927970_2.png) [@Yamabuki\_Iro](https://forums.unrealengine.com/u/Yamabuki_Iro)\
**Post date:** [June 2, 2024, 3:26am UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/11 "2024-06-02T03:26:37Z")

</div>

I voted!  
Maybe this is what caused it.  
[https://forums.unrealengine.com/t/critical-bug-causing-runtime-error/1882712](https://forums.unrealengine.com/t/critical-bug-causing-runtime-error/1882712)

---

<div class="post-metadata">

**Author:** ![Punkcat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/punkcat/32/1191421_2.png) [@Punkcat](https://forums.unrealengine.com/u/Punkcat)\
**Post date:** [June 3, 2024, 9:01am UTC](https://forums.unrealengine.com/t/error-when-using-teleporter-device-or-movement-modulator-device-in-verse/1881960/12 "2024-06-03T09:01:43Z")

</div>

It would be interesting to see if that is one causes. I’ve been unable to pinpoint anything thus far.
