so i am having courses, they come with folders that include the packages, main lua files and even fonts and libraries. i tried to run my project , but I get this error:Error
error push.lua:101: attempt to call field 'getPixelScale' (a nil value)
Traceback
push.lua:101: in function 'initValues'
push.lua:48: in function 'setupScreen'
main.lua:49: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
how do I fix this?????
Error push.lua:101
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Error push.lua:101
Hi and welcome to the forums!
Harvard CS50? They should really tell people their projects are not using the latest Löve version...
up to version 0.10.x: love.window.getPixelScale
from 11.x: love.window.getDPIScale
Harvard CS50? They should really tell people their projects are not using the latest Löve version...
up to version 0.10.x: love.window.getPixelScale
from 11.x: love.window.getDPIScale
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: Error push.lua:101
Hello abdullahchalak,
Zorg is right. The CS50 projects are using an older version of LÖVE.
Either use LÖVE 0.10.x, or download the latest version of push - https://github.com/cs50/mario-demo/issues/2
Zorg is right. The CS50 projects are using an older version of LÖVE.
Either use LÖVE 0.10.x, or download the latest version of push - https://github.com/cs50/mario-demo/issues/2
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 11 guests