Events triggered twice in Level BP

Hi. I have a project and after creating level streaming all my actions from Level BP are triggered twice. I’ve tried to debug the problem but still can’t figure out what is happening. I’ve deleted everything from the project and now I have only the Level BP with event begin and a print. This will trigger the print twice without any reason. I can’t recreate the level because my entire game is in one level so it will take a lot of time to do it. I’ve attached the project with all the content deleted where you can see the problem. Are there any changes I’ve done mistakenly and I don’t see it? Also if you try to duplicate the level from /Levels/Level_1 you can’t. An error will be thrown. Thank you
Here is the project

Hi, did you upgrade from a previews engine versione?
If you make a new projects you still got the same error?
I got a similar problem after upgrade from 4.18 to 4.19, my only solution was to rebuild the projects in the new engine versione…

Hi. Now I’m using 4.22 V3. The project was initiated in 4.21 but I still have the problem in each engine version.
On new projects I don’t have this problem. Even if in the same project I create a new level I still don’t have any problems. The problem is with that level. The problem appeared after I’ve created streaming levels.
I also can’t duplicate/migrate that level ( an error is thrown ). The thing is that my entire game is in one level and it will take a lot of time to recreate it.

I’ve solved the problem and for those with the same problems, here is what I’ve done. I don’t understand why it’s working, but yeh, no problems anymore.
Because of this error I can’t even duplicate my map, I’ve done this.
Open the level with the problems and go to Level BP. There select Class Settings and in the right at Class options, check Generate abstract class. Complie and Save. After that you can duplicate your map.
Open your new map and go again in Level BP and uncheck Generate abstract class. After that you can delete the old map and now my new map doesn’t trigger the event begin play twice.

4 Likes

Thanks very much Butavpaul! I manage to fix it, that made my day.

Just happened to me on a 4.24 map when updating to 4.25. It was working fine and suddenly it started happening. This helped a lot, thank you.

I just had the same problem in Unreal 5.0 and solved this way.
So, first things first, thanks!
Then: any idea why this sometimes happens?

I found an easier way, because when I deleted my level, it opened up another can of worms. This worked just fine. I put the level open bool at the end of the string

For anyone still encountering this problem, I have found an easy solution that worked for me. You just need to change the parent class from ‘Level Script Actor’ to ‘Functional Test Level Script Actor,’ compile, and then change it back to ‘Level Script Actor.’ You can find the parent class in the class settings. I think it worked because it refreshes the level blueprint.

Solved:

  1. Do a backup of the project just in case
  2. Duplicate the map where Level Blueprint fires twice in the content drawer of Unreal (Ctrl+C, Ctrl+V)
    2.1. For me it was FirstPersonMap
    2.2. If you can’t duplicate the Map, open Level Blueprint of that map → Class Settings → Tick “Generate Abstract Class” , Save and try to duplicate
  3. Open new Map, Untick “Generate Abstract Class” if it’s enabled
  4. Reassign all references to the name of the new map

I haven’t deleted the old map, just unchedked it from the Build Settings