# Game Crashes due to verse

**URL:** <https://forums.unrealengine.com/t/game-crashes-due-to-verse/1891360>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, closed, fortnite\
**Created:** [June 5, 2024, 7:29pm UTC](https://forums.unrealengine.com/t/game-crashes-due-to-verse/1891360 "2024-06-05T19:29:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [June 5, 2024, 7:29pm UTC](https://forums.unrealengine.com/t/game-crashes-due-to-verse/1891360/1 "2024-06-05T19:29:59Z")

</div>

### Please select what you are reporting on:

Creative

### What Type of Bug are you experiencing?

Assets

### Summary

When I remove a specific console writeline it breaks my map. At the team selector when this getteam is being called it freezes and kicks you out

### Steps to Reproduce

No clue it is specific to my maps

### Expected Result

No crash

### Observed Result

Video [https://youtu.be/hAR10J63HO4](https://youtu.be/hAR10J63HO4)

### Platform(s)

OC

### Island Code

6570-5231-1418

### Additional Notes

This bug applies to 5 maps of mine

---

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [July 18, 2024, 12:03pm UTC](https://forums.unrealengine.com/t/game-crashes-due-to-verse/1891360/2 "2024-07-18T12:03:00Z")

</div>

Got repro steps, this will crash any map instantly using only 33 lines of verse, very critical:

1. Create a blank map
2. Create a verse file with this code below
3. Place the device in the map and a button device and connect it
4. start the game and press the button to crash the map
5. You will stand still for 40s and then get kicked
6. 

```auto

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }

a_device := class(creative_device):    
    @editable Button:button_device = button_device{}

    OnBegin<override>()<suspends>:void={    
        Button.InteractedWithEvent.Subscribe(ButtonPressed)
    }

    ButtonPressed(Agent:agent):void={
        GetAgentsInTeam(2).Length
    }
    GetAgentsInTeam(Team:int)<transacts>:[]agent={
        Agents := for:
            Agent:GetAllAgents()
            GetTeam(Agent) = Team
        do:
            Agent
        return Agents
    }
    GetAllAgents()<transacts>:[]agent={
        var Agents:[]agent = array{}

        for(Agent:Self.GetPlayspace().GetPlayers()):
            set Agents += array{Agent}
                
        return Agents
    }
    GetTeam(Agent:agent)<transacts>:int={
        return 1
    }

```

---

<div class="post-metadata">

**Author:** ![FinestCreative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finestcreative/32/1034971_2.png) [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Post date:** [October 25, 2024, 2:37pm UTC](https://forums.unrealengine.com/t/game-crashes-due-to-verse/1891360/4 "2024-10-25T14:37:27Z")

</div>

This has been fixed a few months ago now

---

<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:** [September 1, 2026, 6:00pm UTC](https://forums.unrealengine.com/t/game-crashes-due-to-verse/1891360/5 "2026-09-01T18:00:44Z")

</div>

FORT-788841 has been ‘Closed’. We’re unable to reproduce this issue.
