Page 1 of 1

What Luajit Version does Löve 11.1 use?

Posted: Sun Sep 02, 2018 12:38 pm
by pragmaticus
What Luajit Version does Löve 11.1 use? If i precompile my lua files with Luajit 2.0.5, i'm getting following error message:

Code: Select all

Error: Syntax error: main.lua: cannot load incompatible bytecode
Update:
  • If i use Luajit 2.0.5 it works on windows, but not on my linux machine.
  • If i use Luajit 2.1.0-beta3 it works on linux, but not on my windows machine.

Re: What Luajit Version does Löve 11.1 use?

Posted: Sun Sep 02, 2018 4:53 pm
by bartbes
Like I said in irc:
that depends on your os, unfortunately
but last I checked desktops were on latest 2.0, phones were on the 2.1 beta
I should also mention that on linux it uses whatever your system provides, so if you have luajit 2.1.0-beta3 installed, it will use that.

As an aside, the bbcode for that list is.. odd, you want to use something like:

Code: Select all

[list]
[*] first item
[*] second item
[/list]

Re: What Luajit Version does Löve 11.1 use?

Posted: Sun Sep 02, 2018 5:17 pm
by pragmaticus
I should also mention that on linux it uses whatever your system provides, so if you have luajit 2.1.0-beta3 installed, it will use that.
That's strange, because if i'm recalling right, i got an error on linux compiling with luajit and then running my love game. Maybe I mixed something up. Anyway, i ended up not precompiling my code, in order to avoid cross-platform issues. A sideeffect is, that my plain source code will be visible to everyone who will unpack the love file.

Re: What Luajit Version does Löve 11.1 use?

Posted: Sun Sep 02, 2018 5:21 pm
by zorg
pragmaticus wrote: Sun Sep 02, 2018 5:17 pm A sideeffect is, that my plain source code will be visible to everyone who will unpack the love file.
And in all honesty, no one will care. If they do, it'll probably only be because they might want to learn a trick or two from it.

It's honestly easier to code your own clones from scratch than steal someone else's code base and try to understand it.

Re: What Luajit Version does Löve 11.1 use?

Posted: Sun Sep 02, 2018 5:57 pm
by pragmaticus
It's honestly easier to code your own clones from scratch than steal someone else's code base and try to understand it.
I totally agree.

Re: What Luajit Version does Löve 11.1 use?

Posted: Sat Sep 08, 2018 5:19 am
by xNick1
pragmaticus wrote: Sun Sep 02, 2018 5:17 pm
I should also mention that on linux it uses whatever your system provides, so if you have luajit 2.1.0-beta3 installed, it will use that.
That's strange, because if i'm recalling right, i got an error on linux compiling with luajit and then running my love game. Maybe I mixed something up. Anyway, i ended up not precompiling my code, in order to avoid cross-platform issues. A sideeffect is, that my plain source code will be visible to everyone who will unpack the love file.
I can't wait to steal your source code and resell it to the fbi :joker:

Re: What Luajit Version does Löve 11.1 use?

Posted: Sat Sep 08, 2018 8:31 am
by zorg
xNick1 wrote: Sat Sep 08, 2018 5:19 am I can't wait to steal your source code and resell it to the fbi :joker:
You'd probably get a better deal on the russian/chinese/indian markets ;)

Re: What Luajit Version does Löve 11.1 use?

Posted: Sat Sep 08, 2018 1:45 pm
by pragmaticus
:o Can you atleast leave the backdoor intact, if you sell it.

Besieds, there can be additional reasons to precompile your code:
  • Faster loading times (i guess)
  • Hiding unfinished sourcecode
  • Not confident enough, to show your sourcecode
I read a few posts in the forum about precompiling the source code. Many people seem to be strictly against it. Is it a bad approach or something like bad behaviour?