games50 / pong

Atari's 1972 classic, implemented in Lua with LÖVE
835 stars 1.13k forks source link

Cannot load game due to location. #54

Open TheWiseDoge opened 4 years ago

TheWiseDoge commented 4 years ago

This is what our error said Error

boot.lua:577: Cannot load game at path '/Applications/src0/pong/pong-0/main.lua'. Make sure a folder exists at the specified path.

Traceback

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

drsherlock commented 4 years ago

How are you running the program? I think you have to provide the path till the project directory not the main lua file itself. So for example I will be using love /Applications/src0/pong/pong-0. I hope this helps.

TheWiseDoge commented 4 years ago

When I open the terminal and try doing it, it tells me access denied and on love it still says the same thing.

drsherlock commented 4 years ago

Try running the command as sudo or change the directory permissions.

danielCarlosCE commented 3 years ago

You don't run the script itself, because the love command will try to find the main.lua inside the path you set. So, just set the path to the folder like this love /Applications/src0/pong/pong-0/(or whatever folder is your case)

MandeepSinghthakur commented 1 year ago

You don't run the script itself, because the love command will try to find the main.lua inside the path you set. So, just set the path to the folder like this love /Applications/src0/pong/pong-0/(or whatever folder is your case)

Thanks . I was having same issue on Mac. love detects lua file inside the directory so only need to give path to the folder where main lua file is located.