Jump to content


Photo

log10()


  • Please log in to reply
6 replies to this topic

#1 Taizen Chisou

Taizen Chisou

    Deus Ignis,

  • GMC Member
  • 250 posts
  • Version:GM8

Posted 09 August 2012 - 07:42 PM

^^

___________________________________________
ERROR in
action number 1
of Draw Event
for object control:

Error in function log10().

  • 0

#2 YellowAfterlife

YellowAfterlife

    GMC Member

  • Global Moderators
  • 3490 posts
  • Version:GM:Studio

Posted 09 August 2012 - 07:45 PM

Maybe you are passing negative values. Or zero. There's certainly not enough information to help you.
  • 0

#3 Taizen Chisou

Taizen Chisou

    Deus Ignis,

  • GMC Member
  • 250 posts
  • Version:GM8

Posted 09 August 2012 - 07:48 PM

Er, no, I just loaded up an old .gm6 into a just-bought 8.1 to check for compatibility and I ended up with this.


Edit: Replacing it with logn doesn't work either.

Edited by Taizen Chisou, 09 August 2012 - 07:49 PM.

  • 0

#4 TheSnidr

TheSnidr

    That guy

  • Global Moderators
  • 2435 posts
  • Version:GM:Studio

Posted 09 August 2012 - 07:49 PM

Well, what are you taking the log of? Mathematically it's defined for all positive values of x, but GM also has a maximum limit somewhere.
  • 0

#5 Taizen Chisou

Taizen Chisou

    Deus Ignis,

  • GMC Member
  • 250 posts
  • Version:GM8

Posted 09 August 2012 - 07:50 PM

A variable referred to in game as 'showpoints,' which is always a positive integer.

Edit:

Showpoints is always a positive integer bound within 0 to 9,999,999.

Edited by Taizen Chisou, 09 August 2012 - 07:53 PM.

  • 0

#6 YellowAfterlife

YellowAfterlife

    GMC Member

  • Global Moderators
  • 3490 posts
  • Version:GM:Studio

Posted 09 August 2012 - 08:20 PM

Showpoints is always a positive integer bound within 0 to 9,999,999.

Maybe you are passing negative values. Or zero.

I'm not completely sure how this worked fine in GM6, but you could make a 'wrapper' script like this:
if argument0 > 0 return log10(argument0) else return 0

  • 0

#7 Taizen Chisou

Taizen Chisou

    Deus Ignis,

  • GMC Member
  • 250 posts
  • Version:GM8

Posted 09 August 2012 - 08:39 PM

...I went and made my own log script that returned how many iterations of arg0 / arg1 passed before arg0 < arg1 >_>

So... log(0) worked in GM6, but not in GM8.

Sure then, let's go with that.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users