Hi, I'm new to lua and indeed love (which by the way looks cool), but come from a ruby / c++ background.
I'm curios about how visible the code is, or is there a way to hide the code? I'm wanting to make a multiplayer game. but dont want users messing with the code
thanks.
Hiding the Code
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Hiding the Code
I don't agree with hiding the code... By the way i don't know any method except transforming your .love game in a .exe, but i'm not sure it will hide your code.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Hiding the Code
There is not much you can do except for running it through luac (the lua bytecode compiler found in the standalone lua build) and maybe appending it to the .exe, however, this in no way guarantees code safety, currently no other solution has been found. In the future we might (emphasis on might) do something to help you protect code, but the LÖVE community has been open-source minded, so this hasn't gotten a high priority.
Re: Hiding the Code
I'm not being precious or arrogant of my code, I dont agree with hacking cheating gamers.napco wrote:I don't agree with hiding the code...
The player is the end user, and his/her experience is paramount over some code philosophy.
Fair enough from a dev point of view open code is very useful I use Gosu with Ruby so I understand that.bartbes wrote:the LÖVE community has been open-source minded, so this hasn't gotten a high priority.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Hiding the Code
It's a very legitimate concern. However, you can't stop cheaters completely. You can make it hard for them, keep them busy for a while, but those who want to cheats will find ways to do so. Using luac, as bartbes suggested, is a fairly good and easy way to keep out the "casual cheaters", and that is the best you can do anyway.Basic wrote:I'm not being precious or arrogant of my code, I dont agree with hacking cheating gamers.
Help us help you: attach a .love.
Re: Hiding the Code
its true, but I dont want to leave a gaping wide hole.Robin wrote:but those who want to cheats will find ways to do so.
thanks guys I'll check out luac
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Hiding the Code
Remember that with sockets most things can be manipulated, the best there is when talking about networked games is encrypted protocols, which I don't think is feasible in lua. The best thing you can do is make sure that a lot is done server side and thus there can't be much manipulation client-side. (or do stuff like checking if a player is going faster than max speed)
Re: Hiding the Code
There are different kinds of cheating in different kinds of game...
With a good (read paranoid) client/server system, each client only gets fed data the player is allowed to see, and only supplies the server with each player's commands... all processing/simulation is done (or mirrored) on the server. This system can't stop enhancements to help a player do legal things better, but will prevent a client violating/corrupting the game logic.
With peer to peer games, it's harder. Possible if you want to give up on information hiding, but using things like "fog of war" etc may force you to use a client/server model.
With a good (read paranoid) client/server system, each client only gets fed data the player is allowed to see, and only supplies the server with each player's commands... all processing/simulation is done (or mirrored) on the server. This system can't stop enhancements to help a player do legal things better, but will prevent a client violating/corrupting the game logic.
With peer to peer games, it's harder. Possible if you want to give up on information hiding, but using things like "fog of war" etc may force you to use a client/server model.
Re: Hiding the Code
interesting Subrime.
I'll certainly give that a shot, but it relys on the server program not being included on the clients machine (and again not being easily available), which it will be. However I have been playing with the idea of writing the server in c++ anyway.
And this wont be a commercial product, its a just a demo of sorts so I dont need to go overboard with security, but dont want it completely unlocked
But plenty of food for thought.
I'll certainly give that a shot, but it relys on the server program not being included on the clients machine (and again not being easily available), which it will be. However I have been playing with the idea of writing the server in c++ anyway.
And this wont be a commercial product, its a just a demo of sorts so I dont need to go overboard with security, but dont want it completely unlocked
But plenty of food for thought.
Who is online
Users browsing this forum: Bule and 1 guest