Simple copy protection done right :)
-
@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?
-
@Lindon I don't know how to install the copy protection code on my project
-
@myhomestudio so you have a copy of the copy protection code correct?
-
@Lindon No I don't think
-
@myhomestudio said in Simple copy protection done right :):
@Lindon No I don't think
theres a link in the first post in this thread.....
-
@Lindon Oh Yes i have already download it
-
@myhomestudio then what do you not understand(having read the posts here) about how to use it?
-
@Lindon yes I have done, read documentation and post but donโt understand what code use where place it ?
-
So this code:
https://github.com/christophhart/hise_tutorial/blob/master/SimpleCopyProtection/Scripts/Authorisation.jsneeds 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
-
@Lindon ok many thx i do that
-
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 ?
-
@myhomestudio look inside Serials.js for a correct code...
-
This post is deleted! -
This post is deleted! -
This post is deleted! -
This post is deleted! -
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;
} -
@lalalandsynth - whats the error?
-
oops , sorry , the error is Interface:! Line 365, column 37: Unknown function 'contains
which is this line
if(serials.Data.contains(v))
-