Jump to content

Photo

DrawInteger does not have correct arguments in zscript.txt

DrawInteger

  • Please log in to reply
5 replies to this topic

#1 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 31 December 2016 - 02:50 PM

does anybody know why zquest is throwing a could not match signature type?

 

it says that zquest is expecting 12 arguments but zscript.txt only lists 11.

here is what I am using

DrawInteger(5, 0, 0, FONT_Z1, 1, -1, 8, 8, Ghost_Jump, 1, 127);

Edited by Shadowblitz16, 31 December 2016 - 02:51 PM.


#2 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 31 December 2016 - 03:59 PM

Did you remember the screen pointer?

 

(Also opaque is 128, not 127, IDK if that'll make a difference)



#3 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 31 December 2016 - 10:45 PM

oh thankyou I forgot



#4 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 02 January 2017 - 06:37 PM

does anybody know why zquest is throwing a could not match signature type?
 
it says that zquest is expecting 12 arguments but zscript.txt only lists 11.
here is what I am using

DrawInteger(5, 0, 0, FONT_Z1, 1, -1, 8, 8, Ghost_Jump, 1, 127);

 
Did you forget the Screen-> pointer?
 
It should be: Screen->DrawInteger(5, 0, 0, FONT_Z1, 1, -1, 8, 8, Ghost_Jump, 1, 127);
 
On another note, setting opacity to 127 does the same thing as setting it to 64. Values < 128are translucent, 128 and above at opaque.

Edit: Oops. This is what happens when I think that I refreshed a page, and I hadn't.

Edited by ZoriaRPG, 02 January 2017 - 08:44 PM.


#5 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 03 January 2017 - 03:18 AM

Technically your supposed to use 128 or 64, though it's unlikely any of those bits will be used anytime soon, and they probably will never be because of backwards compatibility, so it might be ok. (128 = 10000000; 127 = 01111111) But never set it higher than 128 as those bits are reserved for future stuff.

#6 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 03 January 2017 - 11:38 AM

Technically your supposed to use 128 or 64, though it's unlikely any of those bits will be used anytime soon, and they probably will never be because of backwards compatibility, so it might be ok. (128 = 10000000; 127 = 01111111) But never set it higher than 128 as those bits are reserved for future stuff.


What I wanted to do with those values, is support stuff like alpha levels, that we can't support with 8-bit in Allegro. Multiple draws based on trans == 32 versus trans == 64 just seems idiotic to me. I suppose we could support lit drawing with higher values, but IDK if that would be suitable for forward-compatibility, nor is it all that useful.

With alphas, we could do degrees of translucency, but we can't do that without reconfiguring everything from the ground up. :(


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users