Lua Text Help?

  • jenn4
    21st Nov 2011 Member 0 Permalink
    @cctvdude99 (View Post)
    Did you use common sence? That would be rude.
    @ForumTroll (View Post)
    Ask from mniip or someone other who can Lua, if cctvs advice doesn't work.




  • limelier
    21st Nov 2011 Member 0 Permalink
    I fixed it by randomly toying around, here.
    function mgl.setcliprect(x1,y1,x2,y2)
    mgl.cliprect.x1=x1
    mgl.cliprect.y1=y1
    mgl.cliprect.x2=x2
    mgl.cliprect.y2=y2
    end
  • ForumTroll
    21st Nov 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • limelier
    21st Nov 2011 Member 0 Permalink

    jacob1:


    Also, it's mgl, not mgr


    But now, it fails at indexing clientrect?
  • ForumTroll
    21st Nov 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • cctvdude99
    21st Nov 2011 Member 0 Permalink
    @ForumTroll (View Post)
    Ok, fair enough, I'll give you that one.

    Did you do what jacob1 said?

    jacob1:

    Change line 25 to this:
    if x>-1 and y>-1 and x<612 and y<384 and x>=mgl.cliprect.x1 and y>=mgl.cliprect.y1 and x<=mgl.cliprect.x2 and y<=mgl.cliprect.y2 and not(mgl.getpixel(x,y)==t) then
    (changing clientrect to cliprect and adding mgl. before getpixel)


    That should remove an error to do with clientrect, in theory.
  • ForumTroll
    21st Nov 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • cctvdude99
    21st Nov 2011 Member 0 Permalink
    @ForumTroll (View Post)
    Good to see it was sorted.
  • limelier
    21st Nov 2011 Member 0 Permalink
    Yeah. Now only if there was something that did this with better fonts and shading.
  • cctvdude99
    21st Nov 2011 Member 0 Permalink
    @tudoreleuu (View Post)
    I'd do it, but I cba.