Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I've found that the quick temporary way to resolve it is to turn on Debug mode (which is why I never got the error). For some reason it works fine with that on. The same code works fine in TpF1 with and without Debug mode on. So this may be a TpF2 bug, or could be different behaviour by design. I'll investigate further...
res/scripts/init.lua:64:creating globals by assignment is not allowed (variable was z)
Did you forget to add 'local' before your variable?
Stack traceback:
[C](-1): ?
[C](-1): error
res/scripts/init.lua(64): _newindex