[Utility] Love Compiler

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: [Utility] Love Compiler

Post by I~=Spam »

NightKawata wrote:
Rickton wrote:I don't get why people are so scared of the source code being accessible. It's not like something being closed-source is any harder to pirate. What exactly do you think people are going to do with the code?

The one legitimate reason I could see to worry would be with a multiplayer game, you might not want the source code to be very accessible because it'd be easy for people to cheat. But if you're that worried about it, there should probably be other anti-cheating mechanisms in place, like many multiplayer open source (and closed source) games have.

As a side note, Minecraft is apparently pretty easy to decompile to source (it's how a lot of the more in-depth mods were/are made), and it doesn't seem to have prevented them from making millions of dollars.
Considering that helps Minecraft more than hurt it.
Personally, I think you're kind of beating a dead horse with bytecode compilation, but I can see why people would want to do it. If it makes you feel safer, feel free.

Moreover licensing is what protects your game.
Think of it this way. If someone wants to break your game, they will break your game. That's just how it is.

For multiplayer and the like, server-side protection is indeed a thing, so are anti-cheat detections.
On a more relevant note: Kudos for the author for creating this. Definitely a tool people could use if they wanna try bytecode compilation.
Bytecode compilation is not completely useless. Pre-compiling the bytecode increases the startup speed of the program. This is espessially true when there is a lot of code. If the code isn't precompiled then it needs to be for every file that is loaded. If it important to someone, they can also shrink the size of their game somewhat too. The byte compiling part of lua/luajit can also be omited when compiling Love...

But I agree. There isn't much point of trying to pre-compile byte code if your goal is to make it more difficult to prirate the program.
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: [Utility] Love Compiler

Post by undef »

I~=Spam wrote:If it important to someone, they can also shrink the size of their game somewhat too.
Sometimes it also makes it bigger ;P
twitter | steam | indieDB

Check out quadrant on Steam!
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: [Utility] Love Compiler

Post by slime »

I~=Spam wrote:Bytecode compilation is not completely useless. Pre-compiling the bytecode increases the startup speed of the program.
FWIW, in LOVE games the major contributors to startup times are usually image and sound loading. Those generally take several orders of magnitude longer than loading Lua files, even a lot of Lua files. Using a compressed texture format (like DXT5) rather than a PNG/JPEG image will decrease startup time far, far more than compiling your Lua files to bytecode.

(The reason compressed textures don't take long to load is because they don't have to be decompressed when they're loaded into RAM and their data doesn't have to be analyzed at all - they can just be sent directly from the hard drive to the graphics card, essentially.)
I~=Spam wrote:If it important to someone, they can also shrink the size of their game somewhat too.
LuaJIT's bytecode in particular isn't optimized for filesize reductions - its bytecode is often larger than the original source file's size (and, like the above point, images and sounds are generally the major contributors to the total size on disk of a game.)
Last edited by slime on Sat Feb 07, 2015 8:17 am, edited 1 time in total.
User avatar
adrix89
Party member
Posts: 135
Joined: Fri Oct 15, 2010 10:58 am

Re: [Utility] Love Compiler

Post by adrix89 »

Rickton wrote:I don't get why people are so scared of the source code being accessible. It's not like something being closed-source is any harder to pirate. What exactly do you think people are going to do with the code?
The purpose is not to stop piracy.
I use Workflowy but you can check out Dynalist as its the better offer.
Rickton
Party member
Posts: 128
Joined: Tue Mar 19, 2013 4:59 pm
Contact:

Re: [Utility] Love Compiler

Post by Rickton »

adrix89 wrote:
Rickton wrote:I don't get why people are so scared of the source code being accessible. It's not like something being closed-source is any harder to pirate. What exactly do you think people are going to do with the code?
The purpose is not to stop piracy.
Ok, so what is the purpose?
Possession - Escape from the Nether Regions, my roguelike made in LÖVE for the 2013 7-Day Roguelike Challenge
And its sequel, simply called Possession , which is available on itch.io or Steam, and whose engine I've open-sourced!
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: [Utility] Love Compiler

Post by Germanunkol »

I agree with byte-code not being much safer, but I noticed the file posted above is half it's size when compiled. That's definately a plus!

Also, in a multiplayer-setting I might consider using this. Sure, it won't stop people from cheating if they really want to, but it might make it less frequent when there's so much trouble involved.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Muris
Party member
Posts: 131
Joined: Fri May 23, 2014 9:18 am

Re: [Utility] Love Compiler

Post by Muris »

Germanunkol wrote:I agree with byte-code not being much safer, but I noticed the file posted above is half it's size when compiled. That's definately a plus!

Also, in a multiplayer-setting I might consider using this. Sure, it won't stop people from cheating if they really want to, but it might make it less frequent when there's so much trouble involved.
Just combining the love.exe + love-file should be enough to prevent most people of trying to use the file i think?
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: [Utility] Love Compiler

Post by Germanunkol »

Whoops. just noticed there was a second page to this, on which the filesize-thing has already been discussed. Sorry, I had only read the first page before.
Muris wrote: Just combining the love.exe + love-file should be enough to prevent most people of trying to use the file i think?
That's true as well.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests