Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load game due to location. #54

Open
TheWiseDoge opened this issue Jun 7, 2020 · 5 comments
Open

Cannot load game due to location. #54

TheWiseDoge opened this issue Jun 7, 2020 · 5 comments

Comments

@TheWiseDoge
Copy link

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
Copy link

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
Copy link
Author

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

@drsherlock
Copy link

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

@danielCarlosCE
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants