HISE Logo Forum
    • Categories
    • Register
    • Login

    Expansion not working

    Scheduled Pinned Locked Moved Newbie League
    17 Posts 3 Posters 820 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
      daniloprates
      last edited by

      I've followed @d-healey's video, both manual and automatic's way of creating an expansion, but they are never listed.

      Found this in my project_info.xml:

      <ExpansionType value="Disabled"/>
      

      and changed to

      <ExpansionType value="Files Only"/>
      

      but it didn't work

      1 Reply Last reply Reply Quote 0
      • D
        daniloprates
        last edited by

        My code:

        Content.makeFrontInterface(600, 600);
        
        const var expHandler = Engine.createExpansionHandler();
        
        expHandler.setAllowedExpansionTypes([
        	expHandler.FileBased, 
        	expHandler.Intermediate, 
        	expHandler.Encrypted
        ]);
        
        expHandler.refreshExpansions();
        
        const expList = Engine.getExpansionList();
        
        Console.print(trace(expList));
        
        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by

          My video on the subject is out of date now. The documentation is quite complete though though:

          https://docs.hise.audio/working-with-hise/project-management/expansions/index.html#introduction

          https://docs.hise.dev/working-with-hise/project-management/expansions/encrypted_expansion.html

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

          D 1 Reply Last reply Reply Quote 0
          • D
            daniloprates @d.healey
            last edited by

            Nothing I did worked...

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

              @daniloprates What else have you done?

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

              D 1 Reply Last reply Reply Quote 0
              • D
                daniloprates @d.healey
                last edited by

                @d-healey

                Here's my code:

                Content.makeFrontInterface(600, 600);
                
                const var expHandler = Engine.createExpansionHandler();
                
                expHandler.setAllowedExpansionTypes([expHandler.FileBased, 
                                                     expHandler.Intermediate, 
                                                     expHandler.Encrypted]);
                
                
                const expList = Engine.getExpansionList();
                
                Console.print(trace(expList));
                

                The file structure:

                324fa974-8ff5-471e-808a-7a083f7169e6-image.png

                And the expansion_info.xml:

                <?xml version="1.0" encoding="UTF-8"?>
                
                <ExpansionSettings
                    Name="Test Expansion"
                    version="1.0.0"
                    ProjectName="test-expansion"
                />
                
                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @daniloprates
                  last edited by

                  @daniloprates Have you set the expansion type in project preferences?

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

                  D 2 Replies Last reply Reply Quote 0
                  • D
                    daniloprates @d.healey
                    last edited by

                    @d-healey here's the relevant part of project_info.xml:

                      <ExpansionType value="FileBased"/>
                      <EncryptionKey value=""/>
                      <LinkExpansionsToProject value="Yes"/>
                    
                    1 Reply Last reply Reply Quote 0
                    • D
                      daniloprates @d.healey
                      last edited by

                      @d-healey also tried <ExpansionType value="Files Only"/>

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

                        @daniloprates Send me the project, without the Samples.

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

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          daniloprates @d.healey
                          last edited by daniloprates

                          @d-healey I've created an empty test project:

                          https://www.dropbox.com/scl/fi/1sz5tx4bchb67f9fkcra3/test-expansion.zip?rlkey=zf964nad08e2nn1hbaowlsop2&st=mk8rmnpg&dl=0

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

                            Can we (the community lol) get a nice template of this working to look at 🙏

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

                              @daniloprates The project works, once I copied in your code and set the expansion type in project preferences to FileOnly

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

                              D 2 Replies Last reply Reply Quote 1
                              • D
                                daniloprates @d.healey
                                last edited by daniloprates

                                No luck for me. What version of HISE are you using?

                                1 Reply Last reply Reply Quote 0
                                • D
                                  daniloprates @d.healey
                                  last edited by

                                  @d-healey <ExpansionType value="FileOnly"/>?

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

                                    @daniloprates set it in project preferences, don't edit the xml directly. I'm using a recent version of the develop branch. What are you expecting to see with your console print?

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

                                    D 1 Reply Last reply Reply Quote 1
                                    • D
                                      daniloprates @d.healey
                                      last edited by daniloprates

                                      @d-healey 🤦 this was the problem, I was editing the XML file manually. It's working now.

                                      Thanks so much!

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

                                      24

                                      Online

                                      2.0k

                                      Users

                                      12.7k

                                      Topics

                                      110.0k

                                      Posts