Argon Posted September 11, 2007 Share Posted September 11, 2007 I'm not familiar with lua but I know lua is a language which you must not compile (so like PHP) I know there is something from ZEND that allows you to encrypt your PHP scripts is there also something for lua which can encrypt your lua scripts and you can use them with mta? Becausse I was thinking about a gamemode and I would give it to everyone but I won't give my code to everyone (and so I can also build something in which allows me to block servers so they can't use the script anymore...) Link to comment
Michilus_nimbus Posted September 11, 2007 Share Posted September 11, 2007 Not releasing the script should be all the protection you need, I think. Just make sure you know the people you share it with. Link to comment
Argon Posted September 11, 2007 Author Share Posted September 11, 2007 Not releasing the script should be all the protection you need, I think. Just make sure you know the people you share it with. That isn't an answer... sorry but I am nothing with that and I should do that when I had no response... Link to comment
Slothman Posted September 11, 2007 Share Posted September 11, 2007 Personally speaking i wouldn't run any script on a server without going through and inspecting it fully. I'm unaware of any encryption techniques, but I am sure that if you wanted to do so, people would be extremely hesitant to run it in the first place. Link to comment
Argon Posted September 11, 2007 Author Share Posted September 11, 2007 Personally speaking i wouldn't run any script on a server without going through and inspecting it fully. I'm unaware of any encryption techniques, but I am sure that if you wanted to do so, people would be extremely hesitant to run it in the first place. Yes that's true but whith lua you don't have the ability to for example edit files outside the mta directory or is it possible? Link to comment
Slothman Posted September 11, 2007 Share Posted September 11, 2007 my concern would be more towards hidden functions that might make a player who enters a secret code super-powered or something like that. Its a problem I've seen in samp scripts, where the guy who wrote the script sneaks himself a little bit of an edge. open scripting can stop those dubious practices. Link to comment
Argon Posted September 12, 2007 Author Share Posted September 12, 2007 my concern would be more towards hidden functions that might make a player who enters a secret code super-powered or something like that. Its a problem I've seen in samp scripts, where the guy who wrote the script sneaks himself a little bit of an edge. open scripting can stop those dubious practices. Well but I think there will be always a player who find out the scripter made such a thing and he report it to the server admin which just delete the script then and add a reaction on the page where you can download it... And the people who doesn't trust it can always don't run the script. But for example if I create a script using SQL and I want that everyone uses my database so I can track game statics of a lot of servers like kills etc but then everyone know my database login and name But this topic isn't about the fact if users trust me or they dont... But about the posibility to encrypt my lua scripts... Link to comment
kevuwk Posted September 12, 2007 Share Posted September 12, 2007 you can't encrypt the lua scripts is the answer you required Link to comment
Argon Posted September 12, 2007 Author Share Posted September 12, 2007 you can't encrypt the lua scripts is the answer you required thank you Link to comment
darkdreamingdan Posted September 20, 2007 Share Posted September 20, 2007 But for example if I create a script using SQL and I want that everyone uses my database so I can track game statics of a lot of servers like kills etc but then everyone know my database login and name Don't worry, you can still supply your script to everyone. MTA provides a server "registry" where server admins can store configuration such as login. Even then, you could easilly provide a script which lacks the login details. As for the issue of trust and people stealing your work (i know this isn't your problem, but for those who are wondering), the chances of someone ripping off your work and getting away with it are slim. Link to comment
lil Toady Posted September 20, 2007 Share Posted September 20, 2007 You can put a CRC check on your scripts, so it won't work if it has been edited, but that will require some c++ knowledge Link to comment
Argon Posted September 22, 2007 Author Share Posted September 22, 2007 But for example if I create a script using SQL and I want that everyone uses my database so I can track game statics of a lot of servers like kills etc but then everyone know my database login and name Don't worry, you can still supply your script to everyone. MTA provides a server "registry" where server admins can store configuration such as login. Even then, you could easilly provide a script which lacks the login details. As for the issue of trust and people stealing your work (i know this isn't your problem, but for those who are wondering), the chances of someone ripping off your work and getting away with it are slim. You mean you can communicate to the MTA server and asking settings and use that settings? And CRC how does it work I searched on wikipedia and on the dutch part it was uncomplete and the english part I don't understand really good. But is it with a kind of pluggin? Link to comment
kevuwk Posted September 22, 2007 Share Posted September 22, 2007 you will find out more at the point of release or just before Link to comment
Guest Posted December 7, 2007 Share Posted December 7, 2007 Just making sure, the .lua isn't uploaded and saved to the clients when they connect right?(only the servers need the .lua files) So by not handing the script out I can be totally sure of it only being ran on my server. Link to comment
Argon Posted December 7, 2007 Author Share Posted December 7, 2007 There are also clientside scripts wich has to run with the clients to save serverload so you can't dissable client side scripts... Link to comment
lil Toady Posted December 7, 2007 Share Posted December 7, 2007 There are also clientside scripts wich has to run with the clients to save serverload so you can't dissable client side scripts... Yes you can. If client changes the script on his side it gets redownloaded.. Link to comment
Argon Posted December 7, 2007 Author Share Posted December 7, 2007 There are also clientside scripts wich has to run with the clients to save serverload so you can't dissable client side scripts... Yes you can. If client changes the script on his side it gets redownloaded.. So clients can alter the client side scripts? Link to comment
lil Toady Posted December 7, 2007 Share Posted December 7, 2007 There are also clientside scripts wich has to run with the clients to save serverload so you can't dissable client side scripts... Yes you can. If client changes the script on his side it gets redownloaded.. So clients can alter the client side scripts? They can, but there is no point in it since they get checked by the server, so if they do not match the original one they get redownloaded Link to comment
Guest Posted December 7, 2007 Share Posted December 7, 2007 So basically it's all a question of design? I mean if I have a very powerful server with a great connection and all, can I put all of the script server-side and allow clients to play it without downloading a client-side script? Link to comment
lil Toady Posted December 7, 2007 Share Posted December 7, 2007 client side scripts have some things server side do not, i don't get what's your problem with client side scripts? You are downloading things in CS too, and you can edit them there too but that does not cause any problems, does it? Link to comment
darkdreamingdan Posted December 8, 2007 Share Posted December 8, 2007 Clientside scripts are seperated from serverside scripts, and as such, are optional. Clientside scripts are downloaded to clients and can be viewed, while serverside scripts are not downloaded. Therefore, sensitive information should be left to be validated with the server and not the clients. This is what MTA's "registry" system is designed for, as i mentioned earlier. The registry provides an external source to retrieve and write information without actually modifying the script files. This means you could setup a script to read the "adminPassword" registry setting, and use that, rather than defining the password in the script itself. This is not only more secure, but means that the password is easily changed in the registry without having to modify the script itself. Link to comment
Guest Posted December 8, 2007 Share Posted December 8, 2007 client side scripts have some things server side do not... Ok, but are these things critical for a gamemode to work or would it be possible to make a gamemode without a client-side? Just wondering. Link to comment
darkdreamingdan Posted December 9, 2007 Share Posted December 9, 2007 What's your issue of having clientside? Link to comment
Scarface Posted September 9, 2008 Share Posted September 9, 2008 I'm not familiar with lua but I know lua is a language which you must not compile (so like PHP) I know there is something from ZEND that allows you to encrypt your PHP scripts is there also something for lua which can encrypt your lua scripts and you can use them with mta? Becausse I was thinking about a gamemode and I would give it to everyone but I won't give my code to everyone (and so I can also build something in which allows me to block servers so they can't use the script anymore...) The notepad++ plugins let you encrypt it Link to comment
Ace_Gambit Posted September 9, 2008 Share Posted September 9, 2008 The notepad++ plugins let you encrypt it Are you sure that isn't obfuscation instead of encryption? Anyway, I don't see the problem of having client-side script readable to others. What could possibly be so sensitive that clients are not allowed to view? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now