Error push.lua:101

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Posts: 1
Joined: Tue May 05, 2020 12:05 am

Error push.lua:101

Post by abdullahchalak »

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)


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?????
User avatar
Party member
Posts: 3074
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary

Re: Error push.lua:101

Post by zorg »

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
Me and my stuff :3True 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.
User avatar
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris

Re: Error push.lua:101

Post by Ulydev »

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 -
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests