Page 1 of 2

Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 9:34 pm
by Bannana97
I've been wondering this since I started using love.

I made a game and created a .love file for it. After, I ran the following command:

Code: Select all

copy /b love.exe+game.love game.exe
This creates game.exe, which has love.exe and my .love file combined. Is it possible to pull the .love file back out? If so, is there any way to prevent the copying of source code?

Re: Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 9:43 pm
by SudoCode
It's in zip format.

Re: Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 9:45 pm
by kikito
Is it possible to pull the .love file back out?
Yes. If you rename it to .zip, it will still open with an uncompressor.
If so, is there any way to prevent the copying of source code?
Not a technical way; your file needs to be decompressible because LÖVE itself needs to be able to read it to execute it.

There is a legal way consisting on distributing your game with a license file that prohibits such conduct.

Re: Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 10:02 pm
by Bannana97
I tried making an .exe just now and was not able to uncompress it with WinZip. It said it was invalid...

Re: Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 10:18 pm
by pk
WinZip is pretty stupid. 7-Zip is smarter and will uncompress the file.

Re: Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 10:27 pm
by Bannana97
There is a legal way consisting on distributing your game with a license file that prohibits such conduct.
And what exactly would that be?

Re: Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 10:28 pm
by SudoCode
Bannana97 wrote:
There is a legal way consisting on distributing your game with a license file that prohibits such conduct.
And what exactly would that be?
Distributing it with a license that does not allow for modification or redistribution?

Re: Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 10:35 pm
by Roland_Yonaba
Bannana97 wrote:
There is a legal way consisting on distributing your game with a license file that prohibits such conduct.
And what exactly would that be?
I suggest Creative Commons 3.0 BY-NC-ND.
On the basis of Josefnpat's post.

Re: Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 11:00 pm
by Bannana97
Let me get this straight.
I am not too familiar with copyright, but if I simply put a link to that CC license in a .TXT file or similar, is my work immediately protected by it?

Re: Pulling source out of a love.exe

Posted: Wed Oct 03, 2012 11:11 pm
by pk
In most parts of the world, you own the copyright to your game as soon as you distribute it, even if you don't distribute it with an explicit license. As far as extracting your code/images/sounds, people have limited rights under fair use. If someone outright steals your work and tries to pass it off as original, the law is on your side.

Still, I hope you aren't planning on suing anytime soon. Piracy is a social issue, not a technological one.

The CC licenses just detail specific the usage rights for people besides you. They grant 3rd parties other rights beyond those granted by basic "Copyright (c) 2012 John Q. Public. All rights reserved" boilerplate.