suddenly game doesn't work

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
airstruck
Party member
Posts: 650
Joined: Thu Jun 04, 2015 7:11 pm
Location: Not being time thief.

Re: suddenly game doesn't work

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: suddenly game doesn't work

Post 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?
User avatar
airstruck
Party member
Posts: 650
Joined: Thu Jun 04, 2015 7:11 pm
Location: Not being time thief.

Re: suddenly game doesn't work

Post 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.
randy0428
Citizen
Posts: 51
Joined: Sun Jul 31, 2016 10:19 am

Re: suddenly game doesn't work

Post 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.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: suddenly game doesn't work

Post 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?
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest