PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Help with scripts => Topic started by: P_pan on 22 March, 2008, 09:22:49

Title: Lua Error: attempt to index global 'SetMan'[a nil value]
Post by: P_pan on 22 March, 2008, 09:22:49
names are set correctly guess i missed something?
but indeed its working fine
but it doesnt get a botname at all

update : i found out i have this kind of error on a few new scripts
but it seems they do run fine...
all releated to this same line >>SetMan.GetString(21),
im lost..
1. > ChatBot 1.0 LUA 5.11 [Strict][API 2] < works correct no errors..
2. > TopTen 1.0 LUA 5.1x [Strict][API 2]  < works correct no errors..
3. > NoPubHub 1.0f LUA 5.1x [Strict][API 2] < faulty on> Syntax [string" --[[..."]:21: attempt to index global 'SetMan'[a nil value]
4. > ConnectStats 1.0c LUA 5.1x [API 2]  < works correct no errors..
5. > ShoutStats 2.0 LUA 5.1x [Strict][API 2] < faulty on > Syntax [string" --[[..."]:20: attempt to index global 'SetMan'[a nil value]
6. > FreshStuff3 v5 < faulty on> Syntax [string" --[[..."]:30: FATAL: This script does not support your host application :-{
7. > Multi-IP Log 1.0b LUA 5.1x [Strict][API 2] < faulty on > Syntax [string" --[[..."]:21: attempt to index global 'SetMan'[a nil value]
maybe this  will help...

although all scripts are working fine though
but those errors ill get only when i hit check Syntax in scripts...
ill hope someone has a clue?
thnx
Title: Lua Error: attempt to index global 'SetMan'[a nil value]
Post by: P_pan on 22 March, 2008, 14:29:42
im sorry if i undermisstood You Mutor..
but the hub is running...
but i think its the character i use for the bots?
cause i use (example) #Opchat#
for the bot names ...
forgave a noob...
Title: Lua Error: attempt to index global 'SetMan'[a nil value]
Post by: P_pan on 22 March, 2008, 18:49:02
thanks for clearing this issue up Mutor...
apprciated...
Title: Re: Lua Error: attempt to index global 'SetMan'[a nil value]
Post by: bastya_elvtars on 25 March, 2008, 16:59:23
FreshStuff does a hostapp detection routine in its core lua file and complains if certain namespaces don't exist. Currently it works with PtokaX only and throws an error with the standard Lua interpreter but in general, end users should only feed that code to the non-PtokaX Lua syntax check if they know what they are doing. :)