Page 2 of 2
Re: suddenly game doesn't work
Posted: Wed Feb 08, 2017 7:19 pm
by airstruck
Positive07 wrote:External Lua distributions shouldn't affect the way LÖVE works unless you specifically change the dependency
Ideally they shouldn't, but they could. Installing a particular version of Lua system-wide could set some environment variables that LuaJIT or Love looks for. That can affect things like default require path, which Love will fall back on if its own loaders are unable to load something (and probably other things I haven't thought of).
Not sure what the problem is in this particular case, though. Took a quick look, but indiscriminate use of globals and non-English identifiers make the code difficult to follow.
Re: suddenly game doesn't work
Posted: Wed Feb 08, 2017 7:50 pm
by bartbes
If you're on linux it does use the installed version of lua, but love looks for luajit by default. If you do use linux, what distro is it?
Re: suddenly game doesn't work
Posted: Wed Feb 08, 2017 8:01 pm
by airstruck
bartbes wrote:If you're on linux it does use the installed version of lua, but love looks for luajit by default. If you do use linux, what distro is it?
Good point, was assuming affected environment was Windows from .exe files in OP.
Re: suddenly game doesn't work
Posted: Wed Feb 08, 2017 10:52 pm
by randy0428
I usually work in Linux (Antergos, an Arch derivative).
My package manager indicates I have love 0.10.2-1. A few days ago, my system upgraded lua to version 5.3.4-1. I didn't have the problem as described in my original post before the upgrade and when I reverted my system back to lua 5.3.3-2, the problem went away.
I was aware that love uses luaJIT, but I tried the downgrade of lua none the less. After reading the replies, I reinstalled the lua 5.3.4-1 and the problem did not reappear. I am at a loss as to what the problem was, but it seems to be fixed now.
Re: suddenly game doesn't work
Posted: Thu Feb 09, 2017 7:10 am
by Positive07
Do you have some reason for using Lua 5.3? I mean some of the games made in this forums won't work at all, the bitops library is not included (bitops are done differently in 5.3), ffi is not there, setfenv is not there... How do you handle such cases?