mIRC Homepage
Posted By: shadowen How to protect scripts? - 27/01/05 12:57 PM
Hi all, I have a problem. I have written a script for mirc, but I don't want to allow users to see the code. The file is a txt file loaded in the remote. There's a way to hide the souce code or to put it into dll?
Any other solution is good if the code is not accessible


Thanks
Posted By: idk Re: How to protect scripts? - 27/01/05 12:59 PM
I dont think/know of any way to prevent users from seeing the code. Im almost pretty sure there isnt a way, but i could be wrong.

There used to be a dll to lock the remote editor, forgot the name of it, but the users could still open the actual text files and read the code.
Posted By: Relinsquish Re: How to protect scripts? - 27/01/05 01:18 PM
There is no point in hiding your script. Scripts will always be open source. Users can simply look in the mIRC directory to find your .txt file. It is not that hard.
Posted By: JoeDaddy Re: How to protect scripts? - 27/01/05 01:42 PM
Quote:
I don't want to allow users to see the code


Well there is one sure way to do that with the code below.

Code:
if (($me writes mirc script) && ($me !want others to see code)) { keep it to myself }
Posted By: NoPleX Re: How to protect scripts? - 27/01/05 01:56 PM
HAHA Nice one wink
Posted By: shadowen Re: How to protect scripts? - 27/01/05 06:10 PM
Instead I am pretty sure that is possible. I have seen a script turned in a binary files then loaded into mirc. I just don't know how to make like that. mad
Posted By: FiberOPtics Re: How to protect scripts? - 27/01/05 07:25 PM
Surely you can appreciate the irony?

You want us to share with you how to do something, though you don't want to share your script with others, who might want to learn something from you.

mIRC scripts are open source, and I'm very glad it's like that. One of the best ways to learn to script is by looking at good examples. I'm pretty sure you've also looked at some code here and there, as everyone does. Wanting to hide your code from others is extremely selfish, and ungrateful.

Besides, what makes you so sure people are going to want to "rip" your code? Do you really consider yourself as an extraordinary scripter, who uses scripting concepts that are unknown to the scripting community, introducing innovative techniques that would revolutionize the way we script, if they are revealed?

Chances are anything you've made has been done thousands of times before, and will continue to be redone thousands of times in the future.

To conclude, if you don't want people to see your code, then don't release your script. It's as simple as that.
Posted By: DaveC Re: How to protect scripts? - 27/01/05 09:29 PM
I have a script that well do it, But i dont want to share it with you. smile


PS : this was sarcasim, so dont ask for the script.
Posted By: shadowen Re: How to protect scripts? - 27/01/05 11:15 PM
Since people already do that with me, why I can't give the same back?
Posted By: DaveC Re: How to protect scripts? - 28/01/05 12:09 AM
poeple dont do it to u, I have never heard or seen any system where mirc script can be encoded or hidden, in anyway that cant be simply and quickly reveresed. Your placing it in a binary file, sounds like your talking DLL's which are not scripts. And also cause pople to not want them since there essentially EXE's and people dont know what they migth do.
Posted By: milosh Re: How to protect scripts? - 28/01/05 12:11 AM
Hi. In that script that you saw they didn't use binary, they just changed font to some "non readable" font type, and then you think that it is binary... I am very sure about that grin
Posted By: Kelder Re: How to protect scripts? - 28/01/05 07:12 PM
I've noticed that some people use $decode to scramble their scripts... needless to say, all those scripts were spammed around and did things people who run them do not want to happen. You've probably seen them, hopefully not executed them.

The advice for mIRC (and a lot of other) scripts: if you cannot read and check the script, you most likely shouldn't run it...
Posted By: bog__ Re: How to protect scripts? - 29/01/05 01:09 PM
Well what if this is the case, i made some script and all the users in that room can play together if they have it, but someone from the room edit the script that i made, and he is cheating in the game, is there a way to protect the script from editing it?
Posted By: FiberOPtics Re: How to protect scripts? - 29/01/05 01:25 PM
Well,

have you told him he should stop cheating or there will be repercussions? If he keeps cheating just ban him, and the problem is solved.

When people used to try to cheat in my Rpg bot, I'd just take away their scores. That pretty much stopped them from cheating alltogether :tongue:

Greets
Posted By: DaveC Re: How to protect scripts? - 29/01/05 08:24 PM
I would suggest you rewrite the script, so it relies on a client server basis to run.

How is he cheating?
© mIRC Discussion Forums