Please help! Blueprint runtime error BP Menu Selectible

Hello and thanks for taking the time to read this. I’m new to UE5 and I’m trying to connect 2 levels. First level is my character walking around and when I go to enter the second level via collision it goes to mouse controlled game. I put an option to exit out of the second level to return to the first level, which it does (although I’m still trying to figure out how the character can reappear to the last location instead of the beginning). The problem is when i quit the game, I get the runtime error:

“Blueprint Runtime Error: “Accessed None trying to read property Logic”. Node: Initial Setup Graph: EventGraph Function: Execute Ubergraph BP Menu Selectible Blueprint: BP_Menu_Selectible”

I clicked on the BP_Menu_Selectible but for the life of me I can’t figure out what’s wrong. Any advisew would be greatly appreciated. Many Thanks!

Hey @dat.fella

this error can occur when your variable “Logic” has not been set. Can you show where you set this variable or show your blueprint? BP_Menu_Selectible

Hi L1z4rD89

thank you for your reply. Here are some screen shots that’s giving me headache. Both the bp selectible

And here’s the “bp logic” error…

Really grateful for any advise!

Hey there,
do you have a variable you named “LOGIC” e.g. you created a reference to BP “Logic” somewhere and it is empty?

Im not sure I did…

How do I find out if I did?

Inside your blueprint you can press CTRL+F and search for it

I believe its this…

Ok, this variable has to be set. Here you have a Get Variable or Get Logic in this case. How did you create this variable?

I basically copied it to test the level since I wanted a moving character on one level and then a cursor controlled on the other level

Would you mind guiding me the best way to set?

So this depends on how you set up your widgets. Or:
What is your “Logic”? Is this just another actor or also a widget? Maybe a widget which is inside your BP_Menu_Selectible?

Actor:

Widget:

So, where does your Logic come from?
image

How does this look like?

I’m so lost… :frowning: I can’t seem to locate that
variables

You can click on the arrows of Components and GameControl. Maybe it is inside these dropdowns.

So the Logic is a reference to your GameMode. It is listed under GameControl. It gets set on EventBeginPlay.

Try this:

here is my event begin…

Look at the post above, edit your BP_Menu_Selectible

I really appreciate you helping me. My theory is because I copied the blueprint it maybe acting as a separate game?