HISE Logo Forum
    • Categories
    • Register
    • Login

    Simple copy protection done right :)

    Scheduled Pinned Locked Moved Presets / Scripts / Ideas
    151 Posts 25 Posters 17.7k 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 @myhomestudio
      last edited by

      @myhomestudio said in Simple copy protection done right :):

      I read the documentation, but I really don't understand how to install the copy protection code. When I open the copyprotection project on Hise, no code and just a black line.

      I would like a basic interface like this if possible :
      728JXIc.png

      that doesnt look like its doing authorisation - just showing the results, you mean something like this:

      3c883fd8-48bb-475c-8495-635a52849185-image.png

      HISE Development for hire.
      www.channelrobot.com

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

        @Lindon Yes something like this (without run demo) is perfect, but I really don't understand how to embed the code inside my project, I suck 😄

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

          @myhomestudio said in Simple copy protection done right :):

          @Lindon Yes something like this (without run demo) is perfect, but I really don't understand how to embed the code inside my project, I suck 😄

          What dont you understand?

          HISE Development for hire.
          www.channelrobot.com

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

            @Lindon I don't know how to install the copy protection code on my project

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

              @myhomestudio so you have a copy of the copy protection code correct?

              HISE Development for hire.
              www.channelrobot.com

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

                @Lindon No I don't think

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

                  @myhomestudio said in Simple copy protection done right :):

                  @Lindon No I don't think

                  theres a link in the first post in this thread.....

                  HISE Development for hire.
                  www.channelrobot.com

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

                    @Lindon Oh Yes i have already download it

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

                      @myhomestudio then what do you not understand(having read the posts here) about how to use it?

                      HISE Development for hire.
                      www.channelrobot.com

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

                        @Lindon yes I have done, read documentation and post but don’t understand what code use where place it ?

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

                          @myhomestudio

                          So this code:
                          https://github.com/christophhart/hise_tutorial/blob/master/SimpleCopyProtection/Scripts/Authorisation.js

                          needs to be added to your init

                          you will also need this line:

                          include("Serials.js");

                          and a file called Serials.js in your project folder that looks like this:

                          var serials = {
                          "Data": [
                          "a string here",
                          "another string here",
                          "diiferent string here",
                          "etc",
                          "etc..."
                          ]
                          };

                          replacing each of the silly text here with a set of serial strings like:

                          1234-1223-2234-2312

                          you will need to create all the UI widgets and the mute processor and name them:

                          const var SerialInput = Content.getComponent("SerialInput");
                          const var Description = Content.getComponent("Description");
                          const var SerialStateLabel = Content.getComponent("SerialStateLabel");
                          const var AuthorisationDialogue = Content.getComponent("AuthorisationDialogue");
                          const var GlobalMute = Synth.getMidiProcessor("GlobalMute");

                          --all this is in the tutorial https://github.com/christophhart/hise_tutorial/tree/master/SimpleCopyProtection

                          HISE Development for hire.
                          www.channelrobot.com

                          M 2 Replies Last reply Reply Quote 2
                          • M
                            myhomestudio @Lindon
                            last edited by

                            @Lindon ok many thx i do that 🙏

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

                              @Lindon

                              So I was able to compile the vst with all elements, but no serial number match.

                              I Have copied the (existing) Serials.js file in the script folder of my Hise Project, is it right ?
                              Annotation 2020-06-22 165738.jpg

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

                                @myhomestudio look inside Serials.js for a correct code...

                                HISE Development for hire.
                                www.channelrobot.com

                                1 Reply Last reply Reply Quote 0
                                • M
                                  myhomestudio @staiff
                                  last edited by myhomestudio

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • lalalandsynthL
                                    lalalandsynth
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • lalalandsynthL
                                      lalalandsynth @Jay
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • lalalandsynthL
                                        lalalandsynth
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • lalalandsynthL
                                          lalalandsynth
                                          last edited by lalalandsynth

                                          After inserting the correct serial and successfully registering a plugin and then hit compile, I am getting an error on this line.
                                          The one in the code window.

                                          if(pData)
                                          {
                                          local v = pData.Serial;
                                          Console.print("Restored serial: " + v);

                                          if(serials.Data.contains(v))
                                          

                                          {
                                          setValidLicense(true);
                                          return;
                                          }

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

                                            @lalalandsynth - whats the error?

                                            HISE Development for hire.
                                            www.channelrobot.com

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

                                            49

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.9k

                                            Posts