MinetestForFun / server-minetestforfun-creative

Repository of the subgame and mods of "MinetestForFun CREATIVE" server
https://www.xorhub.com
The Unlicense
6 stars 0 forks source link

Crash interact mod #16

Closed BetterToAutomateTheWorld closed 9 years ago

BetterToAutomateTheWorld commented 9 years ago

http://zerobin.qbuissondebon.info/?5ce15a1608ccf18d#cbHtukWHBZeJqNNCRgGsEC+9b2FnauZd26cbFqFASeA=

Un nouveau joueur vient de nous rejoindre !
2015-09-18 04:46:08: ACTION[ServerThread]: PopcornCereal [x] joins game. 
2015-09-18 04:46:08: ACTION[ServerThread]: PopcornCereal joins game. List of players: PopcornCereal
Created new entry for `x'
2015-09-18 04:46:08: ACTION[ServerThread]: PopcornCereal lastseen is not a table... fixing...
2015-09-18 04:46:08: ACTION[ServerThread]: Updated online player file
2015-09-18 04:46:15: ACTION[ServerThread]: Server: Player with the name "Guest4367" tried to connect from 63.249.34.184 but it was disallowed for the following reason: Guest accounts are disallowed on this server. Please choose a proper name and try again.
2015-09-18 04:46:16: ACTION[ServerThread]: lifetimer expired, removed mobs:cow
2015-09-18 04:46:35: ACTION[ServerThread]: Server: maria supplied empty password
2015-09-18 04:46:55: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2015-09-18 04:46:55: ERROR[main]: Runtime error from mod 'interact' in callback environment_Step(): ...quentinbd/mff-creative/bin/../mods/interact/init.lua:82: attempt to index field 's4_question2' (a nil value)
2015-09-18 04:46:55: ERROR[main]: stack traceback:
2015-09-18 04:46:55: ERROR[main]:   ...quentinbd/mff-creative/bin/../mods/interact/init.lua:82: in function '?'
2015-09-18 04:46:55: ERROR[main]:   ...quentinbd/mff-creative/bin/../mods/interact/init.lua:104: in function 'func'
2015-09-18 04:46:55: ERROR[main]:   .../quentinbd/mff-creative/bin/../builtin/game/misc.lua:18: in function 'update_timers'
2015-09-18 04:46:55: ERROR[main]:   .../quentinbd/mff-creative/bin/../builtin/game/misc.lua:50: in function '?'
2015-09-18 04:46:55: ERROR[main]:   ...ntinbd/mff-creative/bin/../builtin/game/register.lua:355: in function <...ntinbd/mff-creative/bin/../builtin/game/register.lua:335>

In thread 7f197241d740:
/home/quentinbd/mff-creative/src/server.cpp:511: void Server::step(float): A fatal error occurred: Runtime error from mod 'interact' in callback environment_Step(): ...quentinbd/mff-creative/bin/../mods/interact/init.lua:82: attempt to index field 's4_question2' (a nil value)
stack traceback:
    ...quentinbd/mff-creative/bin/../mods/interact/init.lua:82: in function '?'
    ...quentinbd/mff-creative/bin/../mods/interact/init.lua:104: in function 'func'
    .../quentinbd/mff-creative/bin/../builtin/game/misc.lua:18: in function 'update_timers'
    .../quentinbd/mff-creative/bin/../builtin/game/misc.lua:50: in function '?'
    ...ntinbd/mff-creative/bin/../builtin/game/register.lua:355: in function <...ntinbd/mff-creative/bin/../builtin/game/register.lua:335>
Debug stacks:
DEBUG STACK FOR THREAD 7f1965a85700:
#0  virtual void* EmergeThread::Thread()
(Leftover data: #1  MapBlock* ServerMap::loadBlock(v3s16))
(Leftover data: #2  void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool))
DEBUG STACK FOR THREAD 7f196649c700:
#0  virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD 7f1967fff700:
#0  virtual void* ServerThread::Thread()
#1  void Server::Receive()
(Leftover data: #2  void Server::SendBlocks(float))
(Leftover data: #3  void RemoteClient::GetNextBlocks(ServerEnvironment*, EmergeManager*, float, std::vector<PrioritySortedBlockTransfer>&))
(Leftover data: #4  void Server::SendAccessDenied_Legacy(irr::u16, const wstring&))
(Leftover data: #5  bool getCraftingResult(Inventory*, ItemStack&, std::vector<ItemStack>&, bool, IGameDef*))
DEBUG STACK FOR THREAD 7f197241d740:
#0  int main(int, char**)
#1  Dedicated server branch
#2  void dedicated_server_loop(Server&, bool&)
#3  void Server::step(float)
(Leftover data: #4  void Server::SendAccessDenied_Legacy(irr::u16, const wstring&))
/home/quentinbd/script/start-mff-creative.sh : ligne 26 :  2818 Abandon                 /home/quentinbd/mff-creative/bin/minetestserver --world /home/quentinbd/mff-creative/worlds/minetestforfun-creative/ --config /home/quentinbd/mff-creative/minetest.conf --gameid minetestforfun_creative --port 30088
----------------------
Server restarted at vendredi 18 septembre 2015, 04:47:25 (UTC+0200)
----------------------
Lymkwi commented 9 years ago

Already fixed. Thanks. https://github.com/MinetestForFun/server-minetestforfun-creative/commit/65af66d3b5d4b8741770db3c2c4d41d442b1996e

Next time you remove a field, don't forget to also remove any call to it.