View Full Version : script error
12-25-2013, 04:35 AM
I keep getting an error " 9: attempt to call a method `GetColumn`(a nil value) "
can any one help explain why?
12-25-2013, 04:52 AM
You should probably get familiar with Eluna by going to Eluna's wiki page: http://wiki.emudevs.com/doku.php?id=eluna
Here are the Query methods: http://wiki.emudevs.com/doku.php?id=eluna_query_methods
'GetULong()' is not a query method.
I fixed the indentation, variable naming and errors in your script.
12-25-2013, 04:58 AM
ty I am transferring over from ALE so new to Eluna and expecting lotta errors and more learning :D. thank you for the info links they will help a lot :D
12-25-2013, 08:25 AM
Note that get column is not a method on eluna. You supply the column id to the getuint32 method.
This is still wrong in the script above i think
12-25-2013, 01:49 PM
thanx man yea I figured it out last nite rochet2
just like this:
thanx all season Greetings :sing:
12-25-2013, 05:22 PM
ok another issue :
attempt to call global RegisterPlayerEvent (a nil value)
k I must have done something wrong...
12-25-2013, 05:33 PM
Can you paste us your script?
12-25-2013, 05:41 PM
How old is your lua engine source? Are you using standalone or merged source? That error indicates you're using an older source before our player event update
12-25-2013, 05:47 PM
sure no prob :
first event is for table of player custom vip level
second event is just for me to verify the table is loaded right.(just for testing)
12-25-2013, 05:52 PM
RegisterPlayerEvent(18,*"Viptest") remove quotation marks, eluna doesn't use strings to register functions
12-25-2013, 05:56 PM
that is possible foereaper its from my arcemu server(starting to shift everything over to trinity :D) 1 script at a time(102 total lol)
is there a way like GetLuaEngine() for version?
12-25-2013, 05:58 PM
Yes, there is:
It pushes: "ElunaEngine"
12-25-2013, 05:59 PM
Get lua engine returns "Eluna" if I'm not entirely wrong, you can do print(GetLuaEngine()) to print the exact string it returns
12-25-2013, 06:55 PM
yea just no version . so I don't know if it is the latest release or not.
but also with quotes removed I still get error line 31 attempt to call global RegisterPlayerEvent (a nil value)
is this the proper repository for the lates trinity core Eluna ? :
or is this trinity WITH Eluna?
12-25-2013, 07:16 PM
The above is the standalone version. What you linked is the merged version, it's outdated and will be updated whenever Linux fixes are done. For now use the standalone and do a manual merge. Revision control is something we're considering and may be implemented in the future.
12-25-2013, 07:45 PM
ok lol oops did not see it was for Linux ..facepalm lol
tnx again :D
- - - Updated - - -
is there a guide to do a manual merge or is that just "copy n paste"?
12-25-2013, 07:48 PM
Copy paste, however tommy has this video to explain http://www.youtube.com/watch?v=8wGHf7FbhSw
12-25-2013, 10:20 PM
The merged source (https://github.com/ElunaLuaEngine/Eluna-TC-Wotlk) is now fully up to date and should work fine. If you have any more issues, please make a new topic. Marking this as solved :)
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.