-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pong 0 #31
Comments
You can look at the documentation on LOVE2d for that. Found here: https://love2d.org/wiki/Getting_Started |
i have facing problem showing main.lua:5: attempt to call field 'setmode' (a nil value) Traceback main.lua:5: in function 'load' |
Facing the same problem of xpcall and the program isn't even running showing those problems above given by @Abhiab3012 |
Facing the same issue here: boot.lua:577: Cannot load game at path. Traceback [C]: in function 'error' |
we all would be glad if you help us to resolve this issue.kindly help ASAP. |
So, it seems that we downloaded a more recent version. If you read https://docs.cs50.net/games/2020/x/assignments/0/assignment0.html it will say that the correct version to use of LOVE is 0.10.2 |
though i am facing this issue Error: main.lua:5: attempt to call field 'setmode' (a nil value) |
So can any1 help us all here ? |
Download the love2D Support extension in visual studio code then Use ALT + L to run the code |
doing all things you've all told but |
No i still face the same issue |
see main.lua:5: attempt to call field 'SetMode' (a nil value) Traceback main.lua:5: in function 'load' main.lua:5: attempt to call field 'SetMode' (a nil value) Traceback main.lua:5: in function 'load' main.lua:5: attempt to call field 'SetMode' (a nil value) Traceback main.lua:5: in function 'load' |
i think we might have wrote the line incorrect it should be setMode |
yep it works |
it works fine or you are using the wrong text editor |
i would recommend using Atom.io |
and i am using the most recent version |
@H4CKLORD how did u solve that problem can u explain properly it would be helpful |
Notice the spelling of the "setMode", the only uppercase should be "M" |
@Kafeedos thankyou for your help |
@H4CKL0RD, or anyone else |
I am facing this issue. Is there a way to solve it? Error Syntax error: main.lua:3: '=' expected near 'Pong' Traceback [C]: at 0x7ffafc2928f0 |
I had this same problem. It seems like the proper way to run love is just to call "love .", but this might not work with versions >10.2 so a work around is renaming the folder with the main.lua file inside to "foo.love", and then you can run "love foo.love" in the command line. Works for latest version of love2d (11.3), and also for the previous version (10.2). To be specific: in your cloned repo, rename the "pong-0" folder to "pong-0.love", and run "love pong-0.love". Should solve it. Later iterations of pong (1,2,etc) will give you an error but those are version related (love != 10.2). But again, the proper calling is "love ." within a folder |
WINDOW_WIDTH = 1280 --[[ --[[ |
What's the next step ? |
@tatkeller |
how to run pong 0 after writing code in visual studio code?
The text was updated successfully, but these errors were encountered: