Forum
    • Categories
    • Register
    • Login

    Full Expansions Included Scripts

    Scheduled Pinned Locked Moved Scripting
    12 Posts 2 Posters 31 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.
    • S
      Soundavid
      last edited by

      Hi Everyone, Im Testing the Full Expansions Feature but im having an issue with the Included files inside the actual expansion, when I export the Project as a Full Expansion and I try to load it into the Player I got an error

      Interface:! Line 1, column 1: File  not found {SW50ZXJmYWNlfG9uSW5pdCgpfDB8MXwx}
      Interface:! Line 1, column 1: File  not found {SW50ZXJmYWNlfG9uSW5pdCgpfDB8MXwx}
      

      If I comment the includes in the Expansion it loads but i lost everything in the scripts, the Scripts are actually the same inside the Players Project, so i don't know if im missing something. 🤔

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @Soundavid
        last edited by

        @Soundavid Your expansion project also contains the scripts in its scripts folder?

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - HISE tutorials
        My Patreon - More HISE tutorials

        S 2 Replies Last reply Reply Quote 0
        • S
          Soundavid @David Healey
          last edited by Soundavid

          @David-Healey Yes, everything is there, the approach im using is this:

          Create the Player that is more like a template that let the user load the Expansions through a Viewport (That works great)

          In a Completely different Project im creating the Expansion (Using the same scripts from the Player) but changing images and Samples (that works fine)

          Exporting the Project as a Full Expansion (Using the same encryption key)

          Copy the HXI and Samples into the Expansions Folder in the Player.

          The Player recognizes the Expansion and attempts to load the Expansion, The Expansion type is set to Full in the Player and when I export the Expansion without scripts everything works fine.

          But obviously I lost the scripts that is just LAF and some Paths for now...

          Im doing everything inside HISE, do I have to compile the Player?

          David HealeyD 1 Reply Last reply Reply Quote 0
          • S
            Soundavid @David Healey
            last edited by

            @David-Healey Ok I think I was able to fix it putting the Scripts in a folder inside the ScriptProcessors folder but when the Scripts resides just in the Scripts folder like a normal Project won't work.

            1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @Soundavid
              last edited by

              @Soundavid said in Full Expansions Included Scripts:

              Exporting the Project as a Full Expansion (Using the same encryption key)

              What did you set the Expansion Type to in the Expansion project?

              @Soundavid said in Full Expansions Included Scripts:

              do I have to compile the Player?

              It should load inside HISE but it can get weird because HISE gets confused about which project it is. I always test in the compiled player.

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - HISE tutorials
              My Patreon - More HISE tutorials

              S 1 Reply Last reply Reply Quote 0
              • S
                Soundavid @David Healey
                last edited by Soundavid

                @David-Healey Ive Put "Disabled", I think is an issue when the encoding process, it say Collecting scripts... 1 Script and there are 4 scripts, when I changed the path the player recognizes the scripts

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @Soundavid
                  last edited by

                  @Soundavid What path are you putting in the include for the scripts?

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - HISE tutorials
                  My Patreon - More HISE tutorials

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Soundavid @David Healey
                    last edited by Soundavid

                    @David-Healey

                    First im just putting this

                    include("InitFunctions.js");
                    include("Expansions.js");
                    

                    And that doesn't work

                    Then I moved the scripts to this path and worked

                    include("ScriptProcessors/Includes/InitFunctions.js");
                    include("ScriptProcessors/Includes/Expansions.js");
                    
                    David HealeyD 1 Reply Last reply Reply Quote 0
                    • David HealeyD
                      David Healey @Soundavid
                      last edited by

                      @Soundavid If they were in the Scripts folder then the first one is correct, I'd stick with that.

                      The issue is probably that you're loading it within HISE. Try it in the compile player and see if it works there.

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - HISE tutorials
                      My Patreon - More HISE tutorials

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Soundavid @David Healey
                        last edited by

                        @David-Healey Oh Surprise in the Exported Plugin neither of both works lol, I click in the Viewport that loads the Expansion and just rebuilds the UI and deletes the expansion from the list 🙃

                        David HealeyD 1 Reply Last reply Reply Quote 0
                        • David HealeyD
                          David Healey @Soundavid
                          last edited by David Healey

                          @Soundavid What's in Expansions.js?

                          Did you test if it's either script or both that causes the issue?

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - HISE tutorials
                          My Patreon - More HISE tutorials

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            Soundavid @David Healey
                            last edited by

                            @David-Healey The Problem was that I was including the same Expansions.js in the actual Expansion! Ive commented that and deleted the file and is working in the exported Plugin!

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

                            13

                            Online

                            2.4k

                            Users

                            13.8k

                            Topics

                            120.0k

                            Posts