• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua After updating from 8.50 to 8.60

Wezza

lua nOOb
Joined
May 31, 2008
Messages
2,278
Reaction score
31
from 0.3.5 TFS Crying damson to The Forgotten Server - V8, version 0.3.6 -

I get too much errors concerning [Error - GlobalEvent Interface] attempt to call global .. (a nill value)

and here is the server log when I open it..

Code:
[13/07/2014 04:50:58] The Forgotten Server - Edited By Cyko V8, version 0.3.6 - Edited By Cyko V8 (Crying Damson - Edited By Cyko V8)
[13/07/2014 04:50:58] Compiled with GNU C++ version 3.4.5 (mingw special) at Apr  6 2013, 11:07:44.
[13/07/2014 04:50:58] A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornholijo.
[13/07/2014 04:50:58] Visit our forum for updates, support and resources: http://otland.net.

[13/07/2014 04:50:58] >> Loading config (config.lua)
[13/07/2014 04:50:58] > Using plaintext encryption
[13/07/2014 04:50:58] >> Checking software version... failed checking - malformed file.
[13/07/2014 04:50:58] >> Fetching blacklist
[13/07/2014 04:50:58] >> Loading RSA key
[13/07/2014 04:50:58] >> Starting SQL connection
[13/07/2014 04:50:58] >> Running Database Manager
[13/07/2014 04:50:58] > WARNING: You cannot switch from hashed passwords to plain text, change back the passwordType in config.lua to the passwordType you were previously using.
[13/07/2014 04:50:58] > Optimizing table: account_viplist... [success]
[13/07/2014 04:50:58] > Optimizing table: accounts... [success]
[13/07/2014 04:50:58] > Optimizing table: bans... [success]
[13/07/2014 04:50:59] > Optimizing table: environment_killers... [success]
[13/07/2014 04:50:59] > Optimizing table: forums... [success]
[13/07/2014 04:50:59] > Optimizing table: global_storage... [success]
[13/07/2014 04:50:59] > Optimizing table: guild_invites... [success]
[13/07/2014 04:50:59] > Optimizing table: guild_ranks... [success]
[13/07/2014 04:50:59] > Optimizing table: guilds... [success]
[13/07/2014 04:50:59] > Optimizing table: house_auctions... [success]
[13/07/2014 04:50:59] > Optimizing table: house_data... [success]
[13/07/2014 04:50:59] > Optimizing table: house_lists... [success]
[13/07/2014 04:50:59] > Optimizing table: houses... [success]
[13/07/2014 04:50:59] > Optimizing table: killers... [success]
[13/07/2014 04:50:59] > Optimizing table: player_deaths... [success]
[13/07/2014 04:50:59] > Optimizing table: player_depotitems... [success]
[13/07/2014 04:50:59] > Optimizing table: player_items... [success]
[13/07/2014 04:50:59] > Optimizing table: player_killers... [success]
[13/07/2014 04:50:59] > Optimizing table: player_namelocks... [success]
[13/07/2014 04:50:59] > Optimizing table: player_skills... [success]
[13/07/2014 04:50:59] > Optimizing table: player_spells... [success]
[13/07/2014 04:50:59] > Optimizing table: player_storage... [success]
[13/07/2014 04:50:59] > Optimizing table: player_viplist... [success]
[13/07/2014 04:50:59] > Optimizing table: players... [success]
[13/07/2014 04:50:59] > Optimizing table: posts... [success]
[13/07/2014 04:50:59] > Optimizing table: server_config... [success]
[13/07/2014 04:50:59] > Optimizing table: server_motd... [success]
[13/07/2014 04:50:59] > Optimizing table: server_record... [success]
[13/07/2014 04:50:59] > Optimizing table: server_reports... [success]
[13/07/2014 04:50:59] > Optimizing table: threads... [success]
[13/07/2014 04:50:59] > Optimizing table: tile_items... [success]
[13/07/2014 04:50:59] > Optimizing table: tiles... [success]
[13/07/2014 04:50:59] > Optimizing table: z_changelog... [success]
[13/07/2014 04:50:59] > Optimizing table: z_forum... [success]
[13/07/2014 04:50:59] >> Loading items
[13/07/2014 04:50:59] >> Loading groups
[13/07/2014 04:50:59] >> Loading vocations
[13/07/2014 04:50:59] >> Loading script systems

[13/07/2014 04:50:59] [Error - Spell Interface]
[13/07/2014 04:50:59] data/spells/scripts/custom/polymorph.lua
[13/07/2014 04:50:59] Description:
[13/07/2014 04:50:59] attempt to index a number value
[13/07/2014 04:50:59] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/custom/polymorph.lua)

[13/07/2014 04:50:59] [Error - LuaScriptInterface::loadFile] data/actions/scripts/event_items/games/forge.lua:109: 'end' expected (to close 'function' at line 86) near 'else'
[13/07/2014 04:50:59] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/event_items/games/forge.lua)
[13/07/2014 04:50:59] data/actions/scripts/event_items/games/forge.lua:109: 'end' expected (to close 'function' at line 86) near 'else'
[13/07/2014 04:50:59] >> Loading chat channels
[13/07/2014 04:50:59] >> Loading outfits
[13/07/2014 04:50:59] >> Loading experience stages
[13/07/2014 04:50:59] >> Loading monsters
[13/07/2014 04:50:59] >> Loading mods...
[13/07/2014 04:50:59] > 0 mods were loaded.
[13/07/2014 04:50:59] >> Loading map and spawns...
[13/07/2014 04:51:00] > Map size: 4948x5183.
[13/07/2014 04:51:00] > Map descriptions:
[13/07/2014 04:51:00] "Saved with Remere's Map Editor 2.2"
[13/07/2014 04:51:00] "SimOne MapEditor 0.5.2"
[13/07/2014 04:51:02] Duplicate uniqueId 2195
[13/07/2014 04:51:03] > Map loading time: 3.466 seconds.

[13/07/2014 04:51:03] [Error - Npc interface]
[13/07/2014 04:51:03] data/npc/scripts/loot.lua
[13/07/2014 04:51:03] Description:
[13/07/2014 04:51:03] data/lib/050-function.lua:233: attempt to call global 'getItemDescriptionsById' (a nil value)
[13/07/2014 04:51:03] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/loot.lua

[13/07/2014 04:51:20] [Error - GlobalEvent Interface]
[13/07/2014 04:51:20] data/globalevents/scripts/l4d.lua:onThink
[13/07/2014 04:51:20] Description:
[13/07/2014 04:51:20] data/lib/050-function.lua:1056: attempt to call global 'getGlobalStorageValue' (a nil value)
[13/07/2014 04:51:20] stack traceback:
[13/07/2014 04:51:20]     data/lib/050-function.lua:1056: in function 'isAlive'
[13/07/2014 04:51:20]     data/globalevents/scripts/l4d.lua:40: in function <data/globalevents/scripts/l4d.lua:39>
[13/07/2014 04:51:20] [Error - GlobalEvents::think] Couldn't execute event: l4d

[13/07/2014 04:51:20] [Error - GlobalEvent Interface]
[13/07/2014 04:51:20] data/globalevents/scripts/text.lua:onThink
[13/07/2014 04:51:20] Description:
[13/07/2014 04:51:20] ./data/lib/cs_functions.lua:4: attempt to call global 'getGlobalStorageValue' (a nil value)
[13/07/2014 04:51:20] stack traceback:
[13/07/2014 04:51:20]     ./data/lib/cs_functions.lua:4: in function 'isCsOpen'
[13/07/2014 04:51:20]     data/globalevents/scripts/text.lua:35: in function <data/globalevents/scripts/text.lua:17>
[13/07/2014 04:51:20] [Error - GlobalEvents::think] Couldn't execute event: text

[13/07/2014 04:51:22] [Error - GlobalEvent Interface]
[13/07/2014 04:51:22] data/globalevents/scripts/l4d.lua:onThink
[13/07/2014 04:51:22] Description:
[13/07/2014 04:51:22] data/lib/050-function.lua:1056: attempt to call global 'getGlobalStorageValue' (a nil value)
[13/07/2014 04:51:22] stack traceback:
[13/07/2014 04:51:22]     data/lib/050-function.lua:1056: in function 'isAlive'
[13/07/2014 04:51:22]     data/globalevents/scripts/l4d.lua:40: in function <data/globalevents/scripts/l4d.lua:39>
[13/07/2014 04:51:22] [Error - GlobalEvents::think] Couldn't execute event: l4d

[13/07/2014 04:51:23] [Error - GlobalEvent Interface]
[13/07/2014 04:51:23] data/globalevents/scripts/text.lua:onThink
[13/07/2014 04:51:23] Description:
[13/07/2014 04:51:23] ./data/lib/cs_functions.lua:4: attempt to call global 'getGlobalStorageValue' (a nil value)
[13/07/2014 04:51:23] stack traceback:
[13/07/2014 04:51:24]     ./data/lib/cs_functions.lua:4: in function 'isCsOpen'
[13/07/2014 04:51:24]     data/globalevents/scripts/text.lua:35: in function <data/globalevents/scripts/text.lua:17>
[13/07/2014 04:51:24] [Error - GlobalEvents::think] Couldn't execute event: text

[13/07/2014 04:51:25] [Error - GlobalEvent Interface]
[13/07/2014 04:51:25] data/globalevents/scripts/l4d.lua:onThink
[13/07/2014 04:51:25] Description:
[13/07/2014 04:51:25] data/lib/050-function.lua:1056: attempt to call global 'getGlobalStorageValue' (a nil value)
[13/07/2014 04:51:25] stack traceback:
[13/07/2014 04:51:25]     data/lib/050-function.lua:1056: in function 'isAlive'
[13/07/2014 04:51:25]     data/globalevents/scripts/l4d.lua:40: in function <data/globalevents/scripts/l4d.lua:39>
[13/07/2014 04:51:25] [Error - GlobalEvents::think] Couldn't execute event: l4d

[13/07/2014 04:51:26] [Error - GlobalEvent Interface]
[13/07/2014 04:51:26] data/globalevents/scripts/text.lua:onThink
[13/07/2014 04:51:26] Description:
[13/07/2014 04:51:26] ./data/lib/cs_functions.lua:4: attempt to call global 'getGlobalStorageValue' (a nil value)
[13/07/2014 04:51:26] stack traceback:
[13/07/2014 04:51:26]     ./data/lib/cs_functions.lua:4: in function 'isCsOpen'
[13/07/2014 04:51:26]     data/globalevents/scripts/text.lua:35: in function <data/globalevents/scripts/text.lua:17>
[13/07/2014 04:51:26] [Error - GlobalEvents::think] Couldn't execute event: text


[13/07/2014 04:57:12] [Error - CreatureScript Interface]
[13/07/2014 04:57:12] data/creaturescripts/scripts/login.lua:onLogin
[13/07/2014 04:57:12] Description:
[13/07/2014 04:57:12] data/creaturescripts/scripts/login.lua:25: attempt to call global 'getCreaturePosition' (a nil value)
[13/07/2014 04:57:12] stack traceback:
[13/07/2014 04:57:12]    data/creaturescripts/scripts/login.lua:25: in function <data/creaturescripts/scripts/login.lua:7>


And even more, but i can only write 10000 characters or something..
 
getGlobalStorageValue
getCreaturePosition
getItemDescriptionsById

They are nils, which means not exist. You need to find an alternative to those.
 
what about this; cant even login.

Code:
[13/07/2014 05:51:59] [ADMIN] Wezza has logged in.

[13/07/2014 05:51:59] [Error - CreatureScript Interface]
[13/07/2014 05:51:59] data/creaturescripts/scripts/login.lua:eek:nLogin
[13/07/2014 05:51:59] Description:
[13/07/2014 05:51:59] data/lib/050-function.lua:1191: attempt to call global 'setPlayerPvpRate' (a nil value)
[13/07/2014 05:51:59] stack traceback:
[13/07/2014 05:51:59] data/lib/050-function.lua:1191: in function 'doPlayerUpdatePvpRate'
[13/07/2014 05:51:59] data/creaturescripts/scripts/login.lua:49: in function <data/creaturescripts/scripts/login.lua:7>
[13/07/2014 05:51:59] [ADMIN] Wezza has logged out.
 
what about this; cant even login.

Code:
[13/07/2014 05:51:59] [ADMIN] Wezza has logged in.

[13/07/2014 05:51:59] [Error - CreatureScript Interface]
[13/07/2014 05:51:59] data/creaturescripts/scripts/login.lua:eek:nLogin
[13/07/2014 05:51:59] Description:
[13/07/2014 05:51:59] data/lib/050-function.lua:1191: attempt to call global 'setPlayerPvpRate' (a nil value)
[13/07/2014 05:51:59] stack traceback:
[13/07/2014 05:51:59] data/lib/050-function.lua:1191: in function 'doPlayerUpdatePvpRate'
[13/07/2014 05:51:59] data/creaturescripts/scripts/login.lua:49: in function <data/creaturescripts/scripts/login.lua:7>
[13/07/2014 05:51:59] [ADMIN] Wezza has logged out.

Same there, you try to use function setPlayerPvpRate onLogin which is a nil value.
 
The problem here is that you did not update anything, you just copy and pasted the files probably.
You cannot expect different server versions to be compatible just because you would like them to be.

You have to find equivalent function in your new server to replace the old ones or find the new name if that was changed.
 
Back
Top