4.5 preview, math nodes preventing cooking

I’m having problems with the cooker throwing up errors like these in some math expressions:

Error: Broken Node: K2Node_Tunnel /Game/UI/BasicHUD.BasicHUD:UpdateFade.K2Node_MathExpression_52.MathExpression.K2Node_Tunnel_459 keeps removed/invalid pin: EdGraphPin /Game/UI/BasicHUD.BasicHUD:UpdateFade.K2Node_MathExpression_52.MathExpression.K2Node_Tunnel_459.EdGraphPin_1488. Try refresh all nodes.

Here’s the math node:


And no, refreshing all nodes doesn’t work. The blueprints compile and work without problems in PIE and even mobile preview, it’s only during cooking using the Project Launcher that problems arise. For now I’m having to avoid using math expressions and expand them all.

I’m experiencing the same problem. ¿Anyone has ideas about this problem?

Same issue, regrettably without any solution. Which is frustrating because math nodes have been one of my favorite additions-not being able to organize a bunch of calculations into a single node makes everything a lot more bloated and messy so I’m disappointed that this can’t be done now.

I found a workaround to not mess up your code:

  1. Copy the math expression string
  2. Expand your math node
  3. Collapse the nodes into a collapsed graph
  4. Paste the math expression string as the graph name

This will “freeze” your math node, but at least visually it remains the same and it won’t cause packaging problems.

Hi everyone,

I was able to reproduce this and have entered a bug report, UE-4609 to be assessed by the development staff.

Awesome thanks for that, means you can’t edit it afterwards like a math node but at the very least when it’s complete knowing you can recollapse it to keep it taking up minimum space is good :).

Thank you very much :smiley: would hate to lose this functionality so goodluck finding a solution for it.

I believe this commit fixes the issue: https://github.com/EpicGames/UnrealEngine/commit/7590976480125c45f18eeb6113f31ef449b2aa64

A single line of code? Really? Lol, I’ll test it right now.

What’s the Perforce changelist number for this fix?

Hi Jeremiah,

Perforce access is only available for our custom licensees (which I suspect you are). If you ask this question on the UDN, we can research and get the CL for you.