Said custom resources contain data for individual songs, which are added to instantiated containers. They are iterated in the selection menu due to the varying amount and order.

During runtime the "Resources/song_res" folder is not found, however. The specific error code is "songscroll.gd:16 @ _ready(): Resource file not found: res://r".
I have no idea why it adds the "r" to the end, as no such folder exists in my project. What can I do to fix this? I've been following some older tutorials with the updated syntax but I'm not sure if there's something I've missed

    antioxidant
    Forgot to include it in the screenshot but the error message refers to the first row in the for-loop

    That for-loop is iterating through the characters in the string. The variable "resource" takes on the values "r", "e", "s", ":", etc.

    Use the DirAccess class to iterate through the files in a directory.

      DaveTheCoder
      Strings continue to baffle me
      Makes sense in this context, but why does the filepath need to be in string format when preloading other scenes (with @onready) for example?

        DaveTheCoder
        Nothing else really, I just hadn't expected it to start iterating letter by letter.
        On a slightly tangential note, I find it strange how in tweens you have to type the changing property as a string name rather than on its own without quotation marks as you normally would with node properties in code.

        DaveTheCoder
        I've now added the setup for this, but I can't seem to be able to access custom resources during runtime. This seems to be an issue other people have experienced but at least this one specific solution I attempted wasn't the right one for my situation:

        "Failed loading resource: [resource name]. Make sure resources have been imported by opening the project in the editor at least once"