Game behaves incorrectly on export

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By droc101

Whenever I export my game, some things break for no reason.
Examples:

  • using load() to load an image results in null being returned
  • Random holes in CSG shapes that have CSG children
  • Some nodes crash when instancing children from load(path).instance()
  • And probably some more that I haven’t found yet

Why is this happening? Is there any way to avoid this?

Godot version 3.1.1

Exporting game in release mode, haven’t tried debug mode.

:bust_in_silhouette: Reply From: Brightlight studios

Instead of load() you’re supposed to use preload() cause load() is only meant to load things outside your project like an image that hasn’t been imported for a player avatar, as for the csgmesh I dunno a lot about 3d so this is all I can do to help