Loaded resource as image file, this will not work on export #6

Open
opened 2023-08-04 13:22:44 +02:00 by JanGross · 2 comments
JanGross commented 2023-08-04 13:22:44 +02:00 (Migrated from github.com)

The fallback image does not load when running the exported binary.
Instead of calling load as a member of image we have to use the static load method provided for imported assets.

dfbbea1903/RemoteLoader.gd (L31-L33)

The fallback image does not load when running the exported binary. Instead of calling `load` as a member of `image` we have to use the static `load` method provided for imported assets. https://github.com/JanGross/toho-reno/blob/dfbbea1903c4d833cc6ae6519fb224eea2bd8774/RemoteLoader.gd#L31-L33
JanGross commented 2023-08-05 13:41:46 +02:00 (Migrated from github.com)

Fixed in 879e494

Fixed in 879e494
JanGross commented 2023-08-07 16:32:52 +02:00 (Migrated from github.com)

Still not fixed in production builds

Error fetching image 43
ERROR: Invalid image: null
   at: (scene/resources/texture.cpp:171)
SCRIPT ERROR: Attempt to call function 'set_size_override' in base 'null instance' on a null instance.
          at: RenderImage (res://scripts/Renderer.gd:86)
Still not fixed in production builds ```bash Error fetching image 43 ERROR: Invalid image: null at: (scene/resources/texture.cpp:171) SCRIPT ERROR: Attempt to call function 'set_size_override' in base 'null instance' on a null instance. at: RenderImage (res://scripts/Renderer.gd:86) ```
Sign in to join this conversation.
No description provided.