Mega Bot Start


Start with Power Armor, Roboports and Robots. Compatible with other mods including Bob's Warfare/Logistics/Personal Equipment and Krastorio 2.

Utilities
10 days ago
0.15 - 2.0
24.0K
Armor

b 0.20.0 caused a non-recoverable error

4 years ago
(updated 4 years ago)

while a player connecting to my Factorio v1.0 server:

209.760 Error MainLoop.cpp:1207: Exception at tick 35641363: The mod Mega Bot Start (0.20.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event MegaBotStart::on_player_created (ID 24)
MegaBotStart/control.lua:114: attempt to index global 'player' (a nil value)
stack traceback:
MegaBotStart/control.lua:114: in function <MegaBotStart/control.lua:92>
209.760 Error ServerMultiplayerManager.cpp:90: MultiplayerManager failed: "The mod Mega Bot Start (0.20.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event MegaBotStart::on_player_created (ID 24)
MegaBotStart/control.lua:114: attempt to index global 'player' (a nil value)
stack traceback:
MegaBotStart/control.lua:114: in function <MegaBotStart/control.lua:92>"
209.760 Info ServerMultiplayerManager.cpp:769: updateTick(35641363) changing state from(InGame) to(Failed)
209.760 Quitting: multiplayer error.

4 years ago

Found a typo in line 114 of control.lua:

local grid = player.get_inventory(defines.inventory.player_armor)[1].grid

should be:
local grid = Player.get_inventory(defines.inventory.player_armor)[1].grid

or?

4 years ago
(updated 4 years ago)

after changing above i now get another error:

Error while running event MegaBotStart::on_player_created (ID 24)
'inventory index': real number expected got nil.
stack traceback:
MegaBotStart/control.lua:114: in function <MegaBotStart/control.lua:92>
stack traceback:
[C]: in function 'get_inventory'
MegaBotStart/control.lua:114: in function <MegaBotStart/control.lua:92>
291.892 Error ServerMultiplayerManager.cpp:90: MultiplayerManager failed: "The mod Mega Bot Start (0.20.1) caused a non-recoverable error.

4 years ago

A fix is in the works. Its with how inventory is managed through the intro cutcene.

New response