Author Topic: Lua question  (Read 3074 times)

0 Members and 1 Guest are viewing this topic.

Huh, I'm having problems with the mouse configuration line:

Code: [Select]
LUA ERROR: [string "HUD"]:5: attempt to call field `getMouseY' (a nil value)

LUA Debug:
------------------------------------------------------------------
Name: getMouseY
Name of: field
Function type: C
Defined on: -1
Upvalues: 0

Source: =[C]
Short source: [C]
Current line: -1
------------------------------------------------------------------

LUA Stack:
------------------------------------------------------------------

------------------------------------------------------------------

ugh, how fixie???

    |[===---(-         
    ||
 =(||==)_
    ||_____|
 =(||==)
    ||                   
    |[===---(-                             

"Take my love. Take my land. Take me where I cannot stand. I don't care, I'm still free. You can't take the sky from me. Take me out to the black, tell them I ain't comin' back. Burn the land boil the sea, you can't take the sky from me. There's no place I can be since I've found Serenity. But you can't take the sky from me." - Ballad of Serenity

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Wrong thread; wrong forum.  Split and moved.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
its io.getMouseY()
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 
Wrong thread; wrong forum.  Split and moved.

Thanks Goob, sorry.

its io.getMouseY()

I had figured out that it was a mouse problem :rolleyes:. How do I fix it?

    |[===---(-         
    ||
 =(||==)_
    ||_____|
 =(||==)
    ||                   
    |[===---(-                             

"Take my love. Take my land. Take me where I cannot stand. I don't care, I'm still free. You can't take the sky from me. Take me out to the black, tell them I ain't comin' back. Burn the land boil the sea, you can't take the sky from me. There's no place I can be since I've found Serenity. But you can't take the sky from me." - Ballad of Serenity

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
youre calling a function that doesnt exist. thats what that error means. most likely its due to the countless times the name of the function has changed. it might still be ms.getY(), ms.getMouseY(), or io.getY() under 3.6.9. dont remember exactly what it was. but in more recent builds the functions is io.getMouseY().
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
If you are planning to use scripting you really shouldnt use 369 builds.. Scripting with those is no longer supported (that is.. scripters have moved on to HEAD branch builds). Nothing prevents you from scripting with 369 builds but it will be rather limited
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
ms.getX() --> io.getX() --> io.getMouseX()
ms.getY() --> io.getY() --> io.getMouseY()

It's probably the first in 3.6.9.
-C