Warptorio2


Factorio but you build your factory in a restricted space that teleports yourself, the platform, and everything on it to a new and uncharted planet in an unknown corner of space, time and the universe while constantly under attack from enemies. This mod increases the difficulty of factorio by making construction harder and making biters a more significant threat, resulting in a unique experience of factorio'ing in a tight space and under pressure, almost like a tower defence game.

Overhaul
1 year, 2 days ago
0.17 - 1.1
28.2K
Combat Environment

b Crash while driving Marvin from Warptorio 2 Expansion through the portal ... on a stream with over 23 players and 200 spectators :(

3 years ago

The mod Warptorio2 (1.3.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event warptorio2::on_player_changed_position (ID 83)
The mod Warptorio2 (1.3.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event warptorio2::on_entity_cloned (ID 120)
warptorio2/control_main.lua:829: attempt to get length of local 'inv' (a nil value)
stack traceback:
warptorio2/control_main.lua:829: in function 'y'
warptorio2/lib/lib_control.lua:289: in function <warptorio2/lib/lib_control.lua:289>
[C]: in function 'clone'
warptorio2/control_main.lua:387: in function 'TeleportLogic'
warptorio2/control_main.lua:428: in function 'tx'
warptorio2/lib/lib_control_cache.lua:161: in function 'call_player'
warptorio2/lib/lib_control_cache.lua:538: in function 'y'
warptorio2/lib/lib_control.lua:289: in function <warptorio2/lib/lib_control.lua:289>
stack traceback:
[C]: in function 'clone'
warptorio2/control_main.lua:387: in function 'TeleportLogic'
warptorio2/control_main.lua:428: in function 'tx'
warptorio2/lib/lib_control_cache.lua:161: in function 'call_player'
warptorio2/lib/lib_control_cache.lua:538: in function 'y'
warptorio2/lib/lib_control.lua:289: in function <warptorio2/lib/lib_control.lua:289>

3 years ago
(updated 3 years ago)

This one happened on warp, just folding it in here to avoid spamming:

The mod Warptorio2 (1.3.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event warptorio2::on_tick (ID 0)
The mod Warptorio2 (1.3.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event warptorio2::on_entity_cloned (ID 120)
warptorio2/control_main.lua:829: attempt to get length of local 'inv' (a nil value)
stack traceback:
warptorio2/control_main.lua:829: in function 'y'
warptorio2/lib/lib_control.lua:289: in function <warptorio2/lib/lib_control.lua:289>
[C]: in function 'clone_entities'
warptorio2/control_main.lua:986: in function 'Warp'
warptorio2/control_main.lua:859: in function 'Warpout'
warptorio2/control_main_helpers.lua:227: in function 'b'
warptorio2/lib/lib_control.lua:281: in function <warptorio2/lib/lib_control.lua:281>
stack traceback:
[C]: in function 'clone_entities'
warptorio2/control_main.lua:986: in function 'Warp'
warptorio2/control_main.lua:859: in function 'Warpout'
warptorio2/control_main_helpers.lua:227: in function 'b'
warptorio2/lib/lib_control.lua:281: in function <warptorio2/lib/lib_control.lua:281>

3 years ago

The issue is a player left the game while in the waiting to respawn screen
His controller type is defines.controllers.ghost and in this state he does not have an inventory
Code needs to check if get_main_inventory() returns nil and act accordingly

3 years ago
(updated 3 years ago)

If we know the player, we could try removing their data from the game using https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.purge_player

This is for the second issue, not the first, to be clear.

3 years ago

Further update: Issue occurs if player is dead when a vehicle goes through an elevator as well.

3 years ago
(updated 3 years ago)

rip.

Add me on steam for future if stuff like this comes up.

The issue is a player left the game while in the waiting to respawn screen
His controller type is defines.controllers.ghost and in this state he does not have an inventory
Code needs to check if get_main_inventory() returns nil and act accordingly

Thank you for solution.

New response