HISE Logo Forum
    • Categories
    • Register
    • Login

    Simple Copy Protection MacOS Issue

    Scheduled Pinned Locked Moved Scripting
    11 Posts 3 Posters 438 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.
    • A
      aaronventure @Adam_G
      last edited by

      @Adam_G write permissions.

      Project settings, use global app data folder on macOS.

      Adam_GA 1 Reply Last reply Reply Quote 0
      • Adam_GA
        Adam_G @aaronventure
        last edited by

        @aaronventure thanks, where do i enable write permissions? i tried in packages but no luck

        1 Reply Last reply Reply Quote 0
        • Oli UllmannO
          Oli Ullmann @Adam_G
          last edited by

          @Adam_G
          Did you use FileSystem.AppData? You should actually be able to write the data with this.

          Adam_GA 1 Reply Last reply Reply Quote 0
          • Adam_GA
            Adam_G @Oli Ullmann
            last edited by

            @Oli-Ullmann imjust using the boiler plate example but the code looks like this

            // Stores the file to the hard drive. In HISE it will be the project folder
                         // but in the compiled plugin it will use the parent directory to the 
                         // user preset directory (which is usually the app data folder).
                         Engine.dumpAsJSON(data, "../RegistrationInfo.js");
            

            i think the issue is as @aaronventure said and its a flag that im missing but im really not seeing where. it works fine, just under certain condition. the folder needs to be present but empty.. gotta mean im doing something wrong in packages i think

            Oli UllmannO 1 Reply Last reply Reply Quote 0
            • Oli UllmannO
              Oli Ullmann @Adam_G
              last edited by

              @Adam_G
              Ok, I don't quite understand you yet.

              Are you having problems writing the file from HISE? So Engine.dumpAsJSON(data, “../RegistrationInfo.js”); does not work? This has nothing to do with packages.

              If you are inside HISE, the file should be created in the HISE project folder. If you are in the compiled plug-in, the file should be written here:
              user/library/application support/company name/product

              Attention: The file is written to the USER library folder and not to the general library folder! Maybe you are looking in the wrong folder?

              Adam_GA 1 Reply Last reply Reply Quote 0
              • Adam_GA
                Adam_G @Oli Ullmann
                last edited by

                @Oli-Ullmann sorry no this is in the exported plugin. it works fine on windows but on macos it is not creating the json file with the serial. and prompts for it every time the plugin is loaded

                Oli UllmannO 1 Reply Last reply Reply Quote 0
                • Oli UllmannO
                  Oli Ullmann @Adam_G
                  last edited by

                  @Adam_G
                  Can you please post a snippet of the corresponding code?

                  Adam_GA 1 Reply Last reply Reply Quote 0
                  • Adam_GA
                    Adam_G @Oli Ullmann
                    last edited by Adam_G

                    @Oli-Ullmann again im just using the example project https://github.com/christophhart/hise_tutorial "Simple Copy Protection" so i know its not related to the code

                    Oli UllmannO 2 Replies Last reply Reply Quote 0
                    • Oli UllmannO
                      Oli Ullmann @Adam_G
                      last edited by

                      @Adam_G
                      Ok, I took the time to create and compile a project based on the Simple Copy Protection demo.

                      Everything works fine for me in the compiled plug-in. The “RegistrationInfo.js” file is also written without any problems.

                      I didn't have to change anything in the HISE settings or set any flags or anything similar.

                      Of course, I had to include the “Serials.js” in my HISE project.

                      And I had to create a variable in the “Serials.js” to which the serial numbers are assigned. As follows:

                      const serials = {
                        “Data": [
                          “RURU-713P-63DR-7IJ4”,
                          “QFS6-2FB5-CL8M-P4MU”,
                          “E38Y-67M1-RUR4-FAT5”,
                      ...
                      ]
                      }
                      
                      1 Reply Last reply Reply Quote 0
                      • Oli UllmannO
                        Oli Ullmann @Adam_G
                        last edited by

                        @Adam_G
                        Here is my project if you would like to take a look at it:

                        https://we.tl/t-hdRoNkpvt8

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

                        22

                        Online

                        1.7k

                        Users

                        11.9k

                        Topics

                        103.3k

                        Posts