ok so
in globals:
var expansionsetup = globals.expansionsetup
then in assets.gd you call globals.expansionsetup
expansionsetup is never declared otherwise
sooooo
It is declared in the globals.gd in the mod folder (as it has to be in that location to show where the mod paths are, apparently). That's the unfortunate reason for the 2 globals and why the errors will pop up until you activate the mod.
yup, it's fixed now, thank