Version 3.5.3 on Windows 11.
This is a complicated project to recreate an old point and click game engine, which means it's modular and scriptable (and therefore a lot harder to troubleshoot since I can't just hard-code what I want). It runs fine in the editor but the exported version gives me the below error.
It's REALLY hard to chop down to a minimally viable set of code, especially since I have to export then run with -verbose every time I remove code, so I'm hoping somebody can say something like 'you get those kinds of errors because etc...'
Unfortunately since the error is inside Godot I can't interpret what the problem is. I understand References as a class of objects that are kept track of the number of copies. I DO
thanks
(Some context: a set of subfolders exist, each one describes a game location. A 'script.gd' in each folder describes relevant images and custom code particular to that location. Because the game developer's scripting can be anything, I can't hard-code everything.)
This piece of my code may be the issue? I preload most everything else but I don't want to customize everything since that kind of breaks the design of the original game-engine.
var nodescript = load(g.scriptpath)
var a = nodescript.new()
Loading resource: res://N0314_closeup_phone/Script.gdc
ERROR: Script inherits from native type 'Reference', so it can't be instanced in object of type 'Node2D'.
at: (modules/gdscript/gdscript.cpp:312)