Read a stack trace from the top
TROUBLESHOOTING REFERENCE
A stack trace is a list of calls that led to a message. Six lines in the stack can describe one warning. Read the message first, then look for the first frame that belongs to your game.
WARNING: gate | invalid fare
[0] Warn (...)
[1] run (...)
[2] _run_script_unlocked (...)
[3] run_script (...)This is a shortened excerpt from the native GDScript case on page 18. The log included internal paths and line numbers. The frame names and order are preserved here. Frame zero is the helper that wrote the warning. Frame one is the authored run function that called it. The following frames are how PCA3D reached the script.
01. Identify the first authored decision. Search your record for the distinctive text gate | invalid fare. At that line, inspect the immediately preceding test and the argument it used.
02. Compare one failing call with one good call. The bad text took the warning path and returned a failure status. The text “3” took the normal path and returned a value of 3. This warning was a deliberate response to input, and the preview kept running.
03. Preserve the original trace when reporting a fault. A native record may appear under a generated script path. Include its PCA3D record ID and function name as well. An internal engine line alone can leave another author guessing which record to open.
Look back immediately before a flurry of messages. A single failed lookup can leave several later actions without their target. Retest after fixing the earliest cause you can reproduce.
