Page 1 of 2

Love file protection...?

Posted: Wed Sep 30, 2009 5:22 pm
by orgos
Hi

I like the LOVE environment and features, but how i can protect my final .love file? Its possible generate an executable? or compile the .love file?

Re: Love file protection...?

Posted: Wed Sep 30, 2009 5:39 pm
by athanazio

Re: Love file protection...?

Posted: Wed Sep 30, 2009 5:39 pm
by Sparx
AFAIK there is no effective way of protecting the sourcecode.
It is possible to create a windows executable by just adding the .love file to the end of the love executable.. but still a veryvery poor protection of sourcecode

Re: Love file protection...?

Posted: Wed Sep 30, 2009 9:22 pm
by athanazio
I agree that is not possible to have a 100% protection,
but attach the love to the end of exe really helps to avoid the minor attacks :)
something like 80%... (guessing)

Re: Love file protection...?

Posted: Thu Oct 01, 2009 4:58 pm
by rude
You could compile the source into Lua bytecode.

Re: Love file protection...?

Posted: Thu Oct 01, 2009 5:21 pm
by osgeld
yea but you can decompile it pretty easy and unless you told luac to strip the source your script will more or less pop up in the decompiled file

Re: Love file protection...?

Posted: Thu Oct 01, 2009 5:30 pm
by bartbes
I guess this might be a post-0.6.0 feature.

@rude: don't worry, if I'm still alive by then (roadmap reference!) I will do it... I think

EDIT: pre and post have very different meanings :P

Re: Love file protection...?

Posted: Thu Oct 01, 2009 8:59 pm
by orgos
Its possible use the LOVE api in the c or c++ language?

And for some features have a LUA script loader and execute the code to make IA scripts for example?

Re: Love file protection...?

Posted: Fri Oct 02, 2009 10:19 am
by Fruchthieb
By the way... get the program a little bit faster, if i compile the sourcecode to bytecode?


By the way ... why would anyone like to protect the sourcecode?

Re: Love file protection...?

Posted: Fri Oct 02, 2009 1:49 pm
by Robin
Fruchthieb wrote:By the way... get the program a little bit faster, if i compile the sourcecode to bytecode?
Startup time might be a bit less, because it doesn't need to compile the file, but I doubt it's noticeable. After that, there should be no difference at all.