Page 1 of 1

Games don't work

Posted: Mon Nov 25, 2019 7:49 am
by krb501
I tried to run this file from Github in the Love 2d engine, and it came back with an error. I'm not sure what I did wrong.

This is what the error message said:

Error

boot.lua:575: No code to run
Your game might be packaged incorrectly.
Make sure main.lua is at the top level of the zip.


Traceback

[C]: in function 'error'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

Re: Games don't work

Posted: Mon Nov 25, 2019 12:09 pm
by zorg
Hi and welcome to the forums!

Now, if i didn't know about the discourse on Discord previously, i'd ask for more info, but since i do:
You drag the project's FOLDER onto löve's executable file (either love.exe or lovec.exe), but you did try that already, and got a different error, that suggested that the project was made for an older löve version than the current. (src/Dependencies.lua:84: bad argument #2 to 'newSource' (string expected, got no value))

Another more important fact is that there's a pull request in the repository that updates the code for löve 11.x, which may or may not work better if those changes are applied.