Can't access variables of custom resource

Godot Version

v4.3.stable.official [77dcf97d8]

Question

I have a custom map resource
image

I load this resource into a player.gd autoload, when i attempt to get the values from map_slots i get this error:

The weird thing is, when i try to inspect while the game is running on remote, I see the resource loaded on the player node
image

but if I click it it does not show the variables that are set to @export
image

so there must be a problem somewhere, but I can’t tell how to find it… please send help :smile:

I assume you are using “preload”. Try using “load” instead

thanks for the suggestion. I messed around with it so long yesterday, at one point I remade the custom resources and it started working, now I have the same setup and it works, I’m unsure what happened or why…