HISE Logo Forum
    • Categories
    • Register
    • Login

    Loading external script files with includes

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 937 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by

      I have a folder that contains a script I've written, I load the script into HISE using the right-click context menu, when I compile I get an error. I believe the error occurs because the external file I'm loading contains an include of another script that is outside of the project directory.

      onInit() - Line 1, column 1: File G:\...\_HISE\libraries\user_interface_v1.1.js not found

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        I've tried changing it to an absolute path and the error is slightly different:

        onInit() - Line 1, column 1: File {PROJECT_FOLDER}G:/.../libraries/user_interface_v1.1.js not found

        I didn't put {PROJECT_FOLDER} in my include statement.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart
          last edited by

          Yes, this is the internal wildcard for the current project folder. I'll need to fix absolute file paths for includes, then it should work.

          1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey
            last edited by

            ok cool, thanks

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            55

            Online

            1.7k

            Users

            11.7k

            Topics

            101.8k

            Posts