Domanda ERRORE [string "ScriptToString"] :1: attempt to index global 'locale' (a nil value)

Stato
Discussione chiusa ad ulteriori risposte.

Isolator®

Utente Silver
19 Gennaio 2015
118
7
12
61
Ultima modifica:
Buonasera ragazzi avrei un problema al mio server, appena loggo in game la macchina mi esce il seguente errore:

[string "ScriptToString"] :1: attempt to index global 'locale' (a nil value)

Vorrei sapere come potrei risolvere.

Grazie.
 
Il problema è di una quest o di qualche cosa nel questlib.lua

Svuota i sysser logga e vedi cosa ti esce scritto all'interno
 
Re: ERRORE [string "ScriptToString"] :1: attempt to index global 'locale' (a nil value)

Okok domani appena posso effettuo ciò e ti farò sapere, grazie mille @luzzi

@luzzi ecco qui i syserr:

SYSERR: Jan 28 11:54:11 :: ItemLoad: cannot create item by vnum 23129 (name [CoMa]Hash id 110000007)
SYSERR: Jan 28 11:55:18 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20343] and locale.monster_chat[20343][number(1, table.getn(locale.monster_chat[20343]))] or '')])
SYSERR: Jan 28 11:55:21 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20346] and locale.monster_chat[20346][number(1, table.getn(locale.monster_chat[20346]))] or '')])
SYSERR: Jan 28 11:55:26 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20340] and locale.monster_chat[20340][number(1, table.getn(locale.monster_chat[20340]))] or '')])
SYSERR: Jan 28 11:55:30 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20342] and locale.monster_chat[20342][number(1, table.getn(locale.monster_chat[20342]))] or '')])
SYSERR: Jan 28 11:55:35 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20342] and locale.monster_chat[20342][number(1, table.getn(locale.monster_chat[20342]))] or '')])
SYSERR: Jan 28 11:55:43 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20003] and locale.monster_chat[20003][number(1, table.getn(locale.monster_chat[20003]))] or '')])
SYSERR: Jan 28 11:55:44 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[9006] and locale.monster_chat[9006][number(1, table.getn(locale.monster_chat[9006]))] or '')])
SYSERR: Jan 28 11:56:10 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[9012] and locale.monster_chat[9012][number(1, table.getn(locale.monster_chat[9012]))] or '')])
 
Re: ERRORE [string "ScriptToString"] :1: attempt to index global 'locale' (a nil value)

No non ho toccato nulla, sto usando la locale vergine di metin2 sg quella dei 34k

- - - Updated - - -

No non ho toccato nulla, sto usando la locale vergine di metin2 sg quella dei 34k
 
Re: ERRORE [string "ScriptToString"] :1: attempt to index global 'locale' (a nil value)

Codice:
SYSERR: Jan 28 11:54:11 :: ItemLoad: cannot create item by vnum 23129 (name [CoMa]Hash id 110000007)
SYSERR: Jan 28 11:55:18 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20343] and locale.monster_chat[20343][number(1, table.getn(locale.monster_chat[20343]))] or '')])
SYSERR: Jan 28 11:55:21 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20346] and locale.monster_chat[20346][number(1, table.getn(locale.monster_chat[20346]))] or '')])
SYSERR: Jan 28 11:55:26 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20340] and locale.monster_chat[20340][number(1, table.getn(locale.monster_chat[20340]))] or '')])
SYSERR: Jan 28 11:55:30 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20342] and locale.monster_chat[20342][number(1, table.getn(locale.monster_chat[20342]))] or '')])
SYSERR: Jan 28 11:55:35 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20342] and locale.monster_chat[20342][number(1, table.getn(locale.monster_chat[20342]))] or '')])
SYSERR: Jan 28 11:55:43 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[20003] and locale.monster_chat[20003][number(1, table.getn(locale.monster_chat[20003]))] or '')])
SYSERR: Jan 28 11:55:44 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[9006] and locale.monster_chat[9006][number(1, table.getn(locale.monster_chat[9006]))] or '')])
SYSERR: Jan 28 11:56:10 :: ScriptToString: LUA ScriptRunError (code:1 src:[(locale.monster_chat[9012] and locale.monster_chat[9012][number(1, table.getn(locale.monster_chat[9012]))] or '')])
Quel codice lua è callato dal game e riguarda le frasi scritte dai mob/npc.
Nei tuoi file ti manca:
Codice:
locale = {}
locale.monster_chat = {}
(tutto il locale.lua quindi)
 
Re: ERRORE [string "ScriptToString"] :1: attempt to index global 'locale' (a nil value)

Ho risolto, l'errore era nel locale.lua, grazie per l'aiuto.

- - - Updated - - -
@luzzi ora mi da questo errore:
[string "IsScriptTrue"] :1: 'end' expected near '<eof>'
cannot find quest index for bottegaia

- - - Updated - - -

Help :(
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom