Worst Lua Error, EVER!!!

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Support » Worst lua error, EVER!!!
Worst lua error, EVER!!!
 Shiva.Malthar
Offline
サーバ: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 10:25:32  
"Attempt to call a string value" (No line)

This error is the bane of my life. x.x
 Shiva.Malthar
Offline
サーバ: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 10:26:39  
This was the error...
Code
do_maneuvers = 'when_idle'
Offline
Posts: 27
By Qualo 2017-03-16 10:58:25  
RTFM
 Shiva.Malthar
Offline
サーバ: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 11:00:10  
Not helpful, Q. And what are you doing not working?! Go to work woman! lol

And no quippy comebacks about jobs! lol
 Odin.Speedyjim
Offline
サーバ: Odin
Game: FFXI
user: speedyjim
Posts: 177
By Odin.Speedyjim 2017-03-16 13:24:45  
Shiva.Malthar said: »
"Attempt to call a string value" (No line)

This error is the bane of my life. x.x
Maybe you should post your entire LUA file so people can try to assist you, instead of skipping over you.

Posts like this are the bane of ffxiah.com.
[+]
 Shiva.Malthar
Offline
サーバ: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 16:16:05  
Oh, I already solved the error. I was missing a comma in a table and used == for an assignment.

What I am complaining about is that the error is so ambiguous it doesn't even give a line number. It could be anything. This error makes me scared of making big edits. Imagine coding for hours then you load up your program then get "Attempt to call a string value..." It makes you want to pull your hair out!
 Leviathan.Vow
Offline
サーバ: Leviathan
Game: FFXI
user: woVow
Posts: 125
By Leviathan.Vow 2017-03-16 16:49:41  
That is a legitimate Lua error code - the lack of a line number is what gets you. However, any editor or IDE with syntax checking will flag it.
 Shiva.Malthar
Offline
サーバ: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 20:29:40  
My Ultra Edit doesn't parse lua, unfortunately. :-\
What do you use, Vow?
 Leviathan.Vow
Offline
サーバ: Leviathan
Game: FFXI
user: woVow
Posts: 125
By Leviathan.Vow 2017-03-16 21:38:53  
Vim. :s But there are a lot of others.
http://lua-users.org/wiki/LuaEditorSupport
http://lua-users.org/wiki/LuaIntegratedDevelopmentEnvironments

Atom has a linter with Lua support, as well. https://atom.io/packages/linter
Log in to post.