Worst Lua Error, EVER!!!

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » Support » Worst lua error, EVER!!!
Worst lua error, EVER!!!
 Shiva.Malthar
Offline
Server: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 10:25:32
Link | Quote | Reply
 
"Attempt to call a string value" (No line)

This error is the bane of my life. x.x
 Shiva.Malthar
Offline
Server: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 10:26:39
Link | Quote | Reply
 
This was the error...
Code
do_maneuvers = 'when_idle'
Offline
Posts: 27
By Qualo 2017-03-16 10:58:25
Link | Quote | Reply
 
RTFM
 Shiva.Malthar
Offline
Server: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 11:00:10
Link | Quote | Reply
 
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
Server: Odin
Game: FFXI
user: speedyjim
Posts: 177
By Odin.Speedyjim 2017-03-16 13:24:45
Link | Quote | Reply
 
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
Server: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 16:16:05
Link | Quote | Reply
 
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
Server: Leviathan
Game: FFXI
user: woVow
Posts: 125
By Leviathan.Vow 2017-03-16 16:49:41
Link | Quote | Reply
 
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
Server: Shiva
Game: FFXI
user: Malthar
Posts: 516
By Shiva.Malthar 2017-03-16 20:29:40
Link | Quote | Reply
 
My Ultra Edit doesn't parse lua, unfortunately. :-\
What do you use, Vow?
 Leviathan.Vow
Offline
Server: Leviathan
Game: FFXI
user: woVow
Posts: 125
By Leviathan.Vow 2017-03-16 21:38:53
Link | Quote | Reply
 
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.