Why does this reference empty?!

I do this all the time, I have almost an exact duplicate already coded, but the ref named “LobbyMenuRef” located in the W_herobox keeps coming up as an empty ref.

I’ve tested to see if self is valid in lobby menu. I’ve also tried using an event instead of a function in W_LobbyMenu

create lobby widget within controller:

call function within lobby widget pass through ref to self:

use instance editable, exposed on spawn ref:

ALWAYS EMPTY:

Need help fast. on the verge of throwing my monitor because i have almost an exact duplicate of this code running for another widget.

Thanks!

Hey @LotionMyHotBod!

Do you think you could show the “Set Hero Selection” Event? That seems to be where the error is occurring but we can’t see that.
Would you mind bringing that so we can take a look at the full code execution? Thanks!!

Thanks for taking the time to reply. I’m still bashing my head against this.

It doesnt even make it into ‘Set Hero Selection.’ It’s saying the lobbyref is empty

step through the code, there’s also a call stack for bp which usually helps to narrow down what is happening

Thanks for the suggestion, but I’m not sure if its giving me new data. It shows as valid for a few seconds and then does a nullpnter.

im assuming 4 hero boxes show up because 2 servers controller and 2 players controller.

then its invalid

Could this be a networking issue?

Edit: it appears 4 show up 2 for lobbymenurefs for each box, and 2 for herolistobjbref

I finally figured it out after only 3 hours…

If you’re using a widget to implement ListViewObject you cannot pass anything through on spawn. You must set it in the implementation of Event On List Item Object Set. This item list ■■■■ is incredibly unintuitive.

Thanks to everyone that tried to help. Much appreciated

1 Like

list view is only sensible if you have hundreds or more items to display, widgets in it are managed by the list itself

Can you elaborate more on why it’s not sensible? Thanks for your help.

requires extra setup with proxy objects for holding data vs directly adding widgets to scroll box?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.