Rasterizer

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
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Rasterizer

Post by Ref »

Anybody know what the error message:
Error: [string "graphics.lua"]:1252: Incorrect parameter type: expected Rasterizer
really means?
get52
Prole
Posts: 36
Joined: Wed Sep 04, 2013 1:53 pm

Re: Rasterizer

Post by get52 »

remove the " " from love.graphics
Only douchebags tell the admins to delete threads once they get they're answer. :awesome:
bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

[]

Post by bekey »

-snip-
Last edited by bekey on Fri Jan 24, 2014 1:55 am, edited 1 time in total.
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Rasterizer

Post by Ref »

Thanks.
Narrowed down to one line of code:

Code: Select all

if self.font then self.font = gr.newFont( self.font, self.width ) end
The surprise is that if I call it once, everything is fine. Twice gives the error.
Second surprise is that self didn't have a font field, so code shouldn't even have been executed.
Think that the bug is actually somewhere else that is effected by this.
No big deal - can work around.
Thanks again for the pointer as to error message meaning.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Rasterizer

Post by bartbes »

The second time self.font is a Font object, not a font name (string).
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests