Coding Device Interactions Instructions Don't Seem to Work

Trying to following this documentation, but no matter what I try, it doesn’t seem to work. No print message. Apple keeps respawning. It seems like some sort of link or connection is dead or missing.

I have copied the code exactly how it is shown in the docs, except I am calling the Verse device Hello_world_device.

Can you get this to work? Does it work for you? Not sure what I’m missing here.

@ok_studios 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
For more information, such as how to get the reference ID, please check out the article here: https://create.fortnite.com/news/using-the-creative-and-uefn-bug-reporting-form

Was there a solution to this? I’m coming to the same conclusion at the moment. I even pasted in the code from the page itself to see if it worked. Nothin.

See this tutorial

I am too having this exact same issue though I don’t have the device named as such. There is also a typo that throws a bug in the compiler. Print(“Subscribed to the Button’s InteractedWithEvent and set the subscription in Subscriptions!”) this seem to make a bug in the editor. removing the
'
in
Button's

 using { /Verse.org/Simulation }

 spawner_button := class(creative_device):
     @editable
     Button:button_device = button_device{}
     @editable
     ItemSpawner:item_spawner_device = item_spawner_device{}

     # Container for storing event subscriptions
     var Subscriptions:[]cancelable = array{}

     OnBegin<override>()<suspends>:void=
         ButtonSubscription := Button.InteractedWithEvent.Subscribe(OnButtonInteractedWith)

         # Add the cancelable result to a spot in the Subscriptions array.
         if(set Subscriptions[0] = ButtonSubscription):
             Print("Subscribed to the Buttons InteractedWithEvent and set the subscription in Subscriptions!")

     OnButtonInteractedWith(InPlayer:agent):void=
         ItemSpawner.SpawnItem()

         # Access the cancelable variable for the InteractedWithEvent subscription
         if(ButtonSubscription := Subscriptions[0]):
             ButtonSubscription.Cancel()
             Print("Canceled this InteractedWithEvent")```

Here a work around to that code

 using { /Verse.org/Simulation }

 spawner_button := class(creative_device):
     @editable
     Button:button_device = button_device{}
     @editable
     ItemSpawner:item_spawner_device = item_spawner_device{}
      

     # Container for storing event subscriptions
     var Subscriptions:[]cancelable = array{}

     OnBegin<override>()<suspends>:void=
         ButtonSubscription := Button.InteractedWithEvent.Subscribe(OnButtonInteractedWith)

         # Add the cancelable result to a spot in the Subscriptions array.
         if(NewArray:=Subscriptions.Insert[0, array{ButtonSubscription}]):
            set Subscriptions = NewArray
             Print("Subscribed to the Buttons InteractedWithEvent and set the subscription in Subscriptions!")

     OnButtonInteractedWith(InPlayer:agent):void=
         ItemSpawner.SpawnItem()

         # Access the cancelable variable for the InteractedWithEvent subscription
         if(ButtonSubscription := Subscriptions[0]):
             ButtonSubscription.Cancel()
             Print("Canceled this InteractedWithEvent") ```
1 Like