Code Breaking randomly when I have done nothing to it

Hello! I have had a similar issue before where unreal engine broke randomly and all my code with it. I fixed it by restarting my computer and updating the version of Unreal Engine. Today I don’t even touch my code that was working fine yesterday, and it breaks. Like 30% of it just stops working. I restart my engine because I think I have done nothing and that won’t even open. I restarted my PC and it opened but the code was still broken. It might be my fault, but I didn’t even touch the code so I’m not sure. I know it’s kind of undescriptive, but I would be here for a lot longer if I were to explain every single detail. Thanks for reading <3

Imagine this question: “Today my car engine didn’t work, when yesterday it was running fine. Please help me, what’s wrong?”

What would a car mechanic ask? They’d ask about what “doesn’t work” mean – is it running rough, is it stopping, is it not starting, is it low power, or something else?

So, for code, it’s the same – “it doesn’t work” doesn’t give enough information for anyone to help you.
What error message are you seeing? What actions are you taking, specifically, when you see these messages? If the messages are pointing at specific parts of code, what is that code?

2 Likes

Sorry about that. The issue I had in the past happened about 1 to 2 weeks ago. Yesterday Unreal Engine 5 worked perfectly fine but today it stopped working right. The only thing I did before it broke was import an audio file create and create a variable. I decided “Hay, why not playtest this level real fast.” I do that and no audio is being played and I can’t die. I have not touched the death system and audio system in weeks, nor have I changed anything that might interfere with it. I believe it is an engine error but I’m still checking my code and re-writing some parts of it. Thanks for the reply.

Forgot to mention there was no error message. I believe it might be my code, but I had engine problems before.

EDIT: Engine deselected game instance for some odd reason. I have fixed all problems with my game :slight_smile:

Basically Blueprint Nodes breaks up for some unknowns reasons and you can’t fix it, happened to me in engine version 4.27 for the first time when clean my temp folder and cleared the computer registry, no idea why this happened and spend the whole day to fix all the nodes back.
This is the main reason I started to learn C++, you never loose any of your code if you write in C++ and can be easily migrated to any project, just copy paste.

So you need to check all the nodes in all classes , you will find something need to be fixed.

1 Like

I have this exact problem right now. I narrowed it down to 1 node that doesn’t seem to work anymore. Once I know which one it is, what should I do? I tried making the exact same node and switching it out but it still doesnt work. I looked at the previous iteration of the project and the code works. So strange.

this node just doesn’t work anymore for some reason. Only for this blueprint, it works on all the others and in my duplicated project.