Forum
    • Categories
    • Register
    • Login

    More Full Expansion issues.....

    Scheduled Pinned Locked Moved Scripting
    8 Posts 2 Posters 22 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.
    • LindonL
      Lindon
      last edited by Lindon

      OK so I have a Player, and a Full expansion it is loading....

      This works fine if I dont add the activation code but the player and the expansion share a code library for doing activation....so I load the activation module in both the player and the expansion....

      This activation module creates its own UI in both cases, so there will be some duplicated named objects but Im not sure if thats important or not, as the expansion is loading, and in (my) theory completely overwriting the players code base....

      So I load the player, all fine, I load the Full expansion, and the activation screens show up - still fine...

      But none of the ui works now...literally nothing.

      Some observations:

      HISE wont let the expansions code use const in some instances: Complaining they are not at a GLOBAL level, since when was that required?

      HISE wont recognise or load my logging code, so this bit of code appears in both the player and the expansion:

      var logDir = FileSystem.getFolder(FileSystem.AppData);
      var log = logDir.getChildFile("Log.txt");
      var logContents;
      if(!log.isFile())
      {
      	logContents	= "";
      }else{
      	logContents = log.loadAsString();
      }
      

      telling me .isFile() isnt recognised.....but if I do this(just rename log to mylog):

      var logDir = FileSystem.getFolder(FileSystem.AppData);
      var mylog = logDir.getChildFile("Log.txt");
      var logContents;
      if(!mylog.isFile())
      {
      	logContents	= "";
      }else{
      	logContents = mylog.loadAsString();
      }
      

      it doesnt object... so this makes me think for some reason its objecting to having a button called inlayActivateButton in the player and also having a button called inlayActivateButton in the Expansion....

      Clearly theres some rules I dont know about, anyone have any clues why this is the way it is...

      HISE Development for hire.
      www.channelrobot.com

      David HealeyD 2 Replies Last reply Reply Quote 0
      • David HealeyD
        David Healey @Lindon
        last edited by

        @Lindon said in More Full Expansion issues.....:

        HISE wont let the expansions code use const in some instances: Complaining they are not at a GLOBAL level, since when was that required?

        const can only be in on init.

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

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @David Healey
          last edited by

          @David-Healey they are in the init of the expansion...

          HISE Development for hire.
          www.channelrobot.com

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

            @Lindon can you make a minimal expansion project snippet I can test?

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

            LindonL 2 Replies Last reply Reply Quote 0
            • LindonL
              Lindon @David Healey
              last edited by

              @David-Healey I can try...

              HISE Development for hire.
              www.channelrobot.com

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

                @Lindon said in More Full Expansion issues.....:

                it doesnt object... so this makes me think for some reason its objecting to having a button called inlayActivateButton in the player and also having a button called inlayActivateButton in the Expansion....

                It could be that there is a conflict during the loading process. You could make a mini test player and expansion with a single button with the same name in both to test it.

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

                1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @David Healey
                  last edited by

                  @David-Healey Okay I will send you a link - I cant post it here as the Activation Module is not mine...

                  HISE Development for hire.
                  www.channelrobot.com

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @Lindon
                    last edited by

                    @Lindon well there was a problem in one of my includes, that neither HISE player nor HISE expansion projects was prepared to report.... so moving on for a bit...

                    HISE Development for hire.
                    www.channelrobot.com

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

                    17

                    Online

                    2.3k

                    Users

                    13.7k

                    Topics

                    119.2k

                    Posts