ERROR: Cannot open file 'res://BlockheadJames.tscn'.
   at: (scene/resources/resource_format_text.cpp:1183)
ERROR: Failed loading resource: res://BlockheadJames.tscn. Make sure resources have been imported by opening the project in the editor at least once.
   at: (core/io/resource_loader.cpp:270)
SCRIPT ERROR: Attempt to call function 'instance' in base 'null instance' on a null instance.
          at: spawn_players (res://House/House.gd:8)

This are the errors. They have been imported. But I can't play with this particular characters for some odd reason. Someone please help.

Same thing with the splitscreen version of this character.

ERROR: No loader found for resource: res://playerassets/Blockhead James/injured/idle.png.
   at: (core/io/resource_loader.cpp:278)
ERROR: res://PlayerInjures.tres:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://playerassets/Blockhead James/injured/idle.png
   at: poll (scene/resources/resource_format_text.cpp:412)
ERROR: Failed to load resource 'res://PlayerInjures.tres'.
   at: (core/io/resource_loader.cpp:206)
ERROR: Failed loading resource: res://PlayerInjures.tres. Make sure resources have been imported by opening the project in the editor at least once.
   at: (core/io/resource_loader.cpp:270)
ERROR: res://SplitScreenChar/RegularJames.tscn:15 - Parse Error: [ext_resource] referenced nonexistent resource at: res://PlayerInjures.tres
   at: poll (scene/resources/resource_format_text.cpp:412)
ERROR: Failed to load resource 'res://SplitScreenChar/RegularJames.tscn'.
   at: (core/io/resource_loader.cpp:206)
ERROR: Failed loading resource: res://SplitScreenChar/RegularJames.tscn. Make sure resources have been imported by opening the project in the editor at least once.
   at: (core/io/resource_loader.cpp:270)
SCRIPT ERROR: Attempt to call function 'instance' in base 'null instance' on a null instance.
          at: _init (res://Main.gdc:5)

Except with the splitscreen, ONLY the executable doesn't work. Running from the engine itself works with the splitscreen.

@AesynthGrey said:

ERROR: No loader found for resource: res://playerassets/Blockhead James/injured/idle.png.
   at: (core/io/resource_loader.cpp:278)
ERROR: res://PlayerInjures.tres:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://playerassets/Blockhead James/injured/idle.png
   at: poll (scene/resources/resource_format_text.cpp:412)

Except with the splitscreen, ONLY the executable doesn't work. Running from the engine itself works with the splitscreen.

The error message seems pretty straight-forward. The engine can't find "res://playerassets/Blockhead James/injured/idle.png". That might be because it wasn't included in the executable, but I notice that you've got a space character and capital letters in your path. You should try to make paths that will work on any system -- keep everything lower case and don't use spaces or special characters. Try changing "Blockhead James" to "blockheadjames", and re-export.

@duane said:

@AesynthGrey said:

ERROR: No loader found for resource: res://playerassets/Blockhead James/injured/idle.png.
   at: (core/io/resource_loader.cpp:278)
ERROR: res://PlayerInjures.tres:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://playerassets/Blockhead James/injured/idle.png
   at: poll (scene/resources/resource_format_text.cpp:412)

Except with the splitscreen, ONLY the executable doesn't work. Running from the engine itself works with the splitscreen.

The error message seems pretty straight-forward. The engine can't find "res://playerassets/Blockhead James/injured/idle.png". That might be because it wasn't included in the executable, but I notice that you've got a space character and capital letters in your path. You should try to make paths that will work on any system -- keep everything lower case and don't use spaces or special characters. Try changing "Blockhead James" to "blockheadjames", and re-export.

I did it and strangely it worked. Weird, because all the other characters' folders have spaces and capitals and they work just fine. Thanks alot! By the way if you're interested, the game is Blockhead 2D and there's a singleplayer demo out on GameJolt and Itch.io.

https://gamejolt.com/games/Blockhead2D/667116

7 months later