HISE Logo Forum
    • Categories
    • Register
    • Login

    3 Quick Questions about Expansions!

    Scheduled Pinned Locked Moved General Questions
    84 Posts 6 Posters 6.3k 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

      expHandler.installExpansionFromPackage(hr,test);

      Where does test magically appear from?

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

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @d.healey
        last edited by

        @d-healey Sorry that's just a random thing while I was testing. It's:

        const var test = FileSystem.getFolder(FileSystem.AppData);    
        

        But it's just made a folder on my desktop instead. Either way I had tried expansionDirectory as well as the constants like FileSystem.Samples to no avail.

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

          Here's a working example. I've already exported the .hr1 file and it contains the info.hxi. It was a bit finicky on my system but that could be because I'm on GNU/Linux. If I tried to run the installer from within the HISE project it didn't work properly, however once I exported to a standalone app (will work with plugin also) the installer worked as it should.

          Expansion Demo.zip

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

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @d.healey
            last edited by

            @d-healey Thanks for taking the time to make that, unfortunately it crashes Ableton and the standalone exe doesn't open (eats up 11% CPU). It only works when I comment out

            inline function onbtnInstallControl(component, value)
            {
                if (value)
                {
                    FileSystem.browse("", false, "", function(result)
                    {
                        hr = result;
            	    /*
                        FileSystem.browseForDirectory("", function(dir)
                        {
                            expHandler.installExpansionFromPackage(hr, dir);
                        });
                        */
                    });
                }
            };
            

            I'm guessing Windows doesn't like nested file browser functions?

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

              I've been using this code on Windows in another project. Run a debug in Visual Studio and see what's causing the crash.

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

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @d.healey
                last edited by A Former User

                @d-healey How does one do this?

                Edit: Ok went file -> open solution -> .exe -> debug -> start debug

                and got

                'Expansion Demo x64.exe' (Win32): Loaded 'D:\Documents\HISE\Expansion Demo\Binaries\Compiled\App\Expansion Demo x64.exe'. Module was built without symbols.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.19041.844_none_423537bff6b9828c\comctl32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Unloaded 'C:\Windows\System32\advapi32.dll'
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\wininet.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\dbghelp.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\wldp.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.844_none_ca00b6081b84eb1d\comctl32.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\WindowsCodecs.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\thumbcache.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\DataExchange.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Cannot find or open the PDB file.
                onecore\com\combase\dcomrem\resolver.cxx(2283)\combase.dll!00007FFB63C0276E: (caller: 00007FFB63C0546E) ReturnHr(1) tid(3114) 80040154 Class not registered
                onecore\com\combase\dcomrem\resolver.cxx(2491)\combase.dll!00007FFB63C05496: (caller: 00007FFB63C01FB5) ReturnHr(2) tid(3114) 80040154 Class not registered
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Cannot find or open the PDB file.
                'Expansion Demo x64.exe' (Win32): Unloaded 'C:\Windows\System32\WinTypes.dll'
                The thread 0x29f8 has exited with code 0 (0x0).
                The thread 0x22a4 has exited with code 0 (0x0).
                The thread 0x2eb8 has exited with code 0 (0x0).
                The thread 0xd44 has exited with code 0 (0x0).
                The thread 0x3114 has exited with code 0 (0x0).
                The thread 0x3020 has exited with code 0 (0x0).
                The thread 0x1054 has exited with code 0 (0x0).
                The thread 0x126c has exited with code 0 (0x0).
                The thread 0x1fcc has exited with code 0 (0x0).
                The thread 0xde0 has exited with code 0 (0x0).
                The program '[1552] Expansion Demo x64.exe' has exited with code 0 (0x0).
                
                
                1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey
                  last edited by d.healey

                  You need to make a debug build with debug symbols probably

                  https://www.youtube.com/results?search_query=debugging+in+visual+studio+2017

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

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @d.healey
                    last edited by

                    @d-healey as in a debug build of HISE instead of release?

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @A Former User
                      last edited by

                      @iamlamprey A debug build of the project, not HISE.

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

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @d.healey
                        last edited by

                        @d-healey

                        Too many arguments in API call FileSystem.browseForDirectory(). Expected: -1
                        

                        Progress!

                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @A Former User
                          last edited by

                          @iamlamprey You sure you're on the latest scriptnode?

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

                          ? 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @d.healey
                            last edited by

                            @d-healey I downloaded the latest one from the Scriptnode branch (not the codegen rewrite) last night, but I do have multiple HISE builds...

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @A Former User
                              last edited by

                              @iamlamprey

                              I do have multiple HISE builds...

                              Why? Use git.

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

                              ? 1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User @d.healey
                                last edited by

                                @d-healey Never understood how it worked but I guess now's as good a time as any to learn it 😲

                                d.healeyD 1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @A Former User
                                  last edited by

                                  @iamlamprey

                                  https://www.youtube.com/watch?v=Bs3zI5Dtvn0

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

                                  ? 2 Replies Last reply Reply Quote 0
                                  • ?
                                    A Former User @d.healey
                                    last edited by

                                    @d-healey Oh dude coming in hot with the "here's one i prepared earlier" 😁 thanks so much for helping me out again

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @d.healey
                                      last edited by

                                      @d-healey am I doing something wrong?

                                      d96c07d7-bd3a-4ec6-8195-24aaa62e347b-image.png

                                      It's not automatically switching to the newer branches

                                      d.healeyD 1 Reply Last reply Reply Quote 0
                                      • d.healeyD
                                        d.healey @A Former User
                                        last edited by

                                        @iamlamprey

                                        It's not automatically switching to the newer branches

                                        Branch switching isn't automatic, you need to use the checkout command to switch to the branch you want.

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

                                        ? 1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User @d.healey
                                          last edited by

                                          @d-healey I did, it's just not in the screenshot

                                          the asterisk is on codegen but the compiled version is missing scriptnode (so it's the master branch from like 16 years ago)

                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            A Former User
                                            last edited by

                                            Ok I deleted the repo and redownloaded it and now it seems to be working :)

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

                                            18

                                            Online

                                            2.0k

                                            Users

                                            12.7k

                                            Topics

                                            110.0k

                                            Posts