Love2D closed source compilation

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
TheoLua
Prole
Posts: 2
Joined: Sat Mar 19, 2016 4:02 am

Love2D closed source compilation

Post by TheoLua » Sat Mar 19, 2016 4:13 am

Hello, I was wondering when compiling the project if it is possible to keep it closed source. When I watch tutorials on "compiling" the project, it keeps the source code in the executable which is against my favor. I looked around for a solution but I found nothing. :(

User avatar
slime
Solid Snayke
Posts: 2902
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Love2D closed source compilation

Post by slime » Sat Mar 19, 2016 4:33 am

There have been several forum threads about that over the years, here's one: viewtopic.php?f=3&t=81386#p192044

User avatar
NickRock
Citizen
Posts: 76
Joined: Thu Dec 25, 2014 9:33 pm
Location: Earth
Contact:

Re: Love2D closed source compilation

Post by NickRock » Sat Mar 19, 2016 10:10 am

Copyright is what protects your code.
Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeooow!!

TheoLua
Prole
Posts: 2
Joined: Sat Mar 19, 2016 4:02 am

Re: Love2D closed source compilation

Post by TheoLua » Sat Mar 19, 2016 2:40 pm

So what I got is, you need to protect your code, rather than hiding it.

User avatar
slime
Solid Snayke
Posts: 2902
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Love2D closed source compilation

Post by slime » Sat Mar 19, 2016 3:17 pm

You can hide it as well if you really want, but hiding it doesn't legally protect you or your code – copyright law does.

bizziboi
Citizen
Posts: 55
Joined: Sat Apr 16, 2011 9:24 am

Re: Love2D closed source compilation

Post by bizziboi » Sun Mar 20, 2016 1:43 am

Unless you implement it in C++ and use LuaJit to call it or expose it to Lua there's no way you can hide it, but at that point what's the point of using Love2D.

You can encrypt your source in the most sophisticated way, but at one point it has to be sent to the lua parser and that point can be easily intercepted. You could of course use bytecode, but that can be decompiled. I guess you could change the bytecode values and go with that to make life a bit harder for people.

The question is, why do you want to hide your code. If it is because you think other people will steal it - meh, most programmers with experience can copy a game anyhow if they so desire, heck cloning may be faster than trying to understand someone else's code - check the appstore, everything is cloned in record time without source access.

If it is because you need to hide details to prevent cheaters, not a good idea, security through obscurity is not the right way to approach things.

User avatar
ivan
Party member
Posts: 1616
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Love2D closed source compilation

Post by ivan » Sun Mar 20, 2016 6:11 am

I would further add that 'hiding' or compiling your Lua code means extra work and maintenance.
Nobody cares about the code, unless your game is so popular (ex: Minecraft) that people want to mod it.
So from a practical point of view, the question becomes would you rather spend your time
- obfuscating code that nobody is going to look at or
- focus your efforts on making a cool game that people want to play

User avatar
SiENcE
Party member
Posts: 791
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: Love2D closed source compilation

Post by SiENcE » Fri Mar 25, 2016 2:12 pm

To make it short:

Code is only the garbage of a coder.
The real value is the coder.

User avatar
Clyybber
Prole
Posts: 15
Joined: Thu Aug 13, 2015 11:46 am

Re: Love2D closed source compilation

Post by Clyybber » Sun Mar 27, 2016 7:59 am

A first i thought this was a compilation of closed source love2d games...
My glass is half empty and half full that means its FULL :ultrahappy:

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 14 guests