Robot Army


Manufacture and deploy automated robot soldiers to attack your foes and defend your factory!

14 days ago
0.13 - 2.0
36.0K

b Non Recoverable Error

a month ago

I got this error when using the unit controll mod (https://mods.factorio.com/mod/Unit_Controll) to command a robot to move:
The mod Robot Army (2.4.22) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event robotarmy::on_tick (ID 0)
LuaCommandable API call when LuaCommandable was invalid.
stack traceback:
[C]: in function 'index'
__robotarmy
/robolib/retreat.lua:14: in function 'orderSquadToRetreat'
robotarmy/robolib/SquadControl.lua:48: in function 'executeBattleAI'
robotarmy/robolib/SquadControl.lua:18: in function 'updateSquad'
robotarmy/robolib/eventhandlers.lua:90: in function 'processSquadUpdatesForTick'
robotarmy/robolib/eventhandlers.lua:439: in function 'tickForces'
robotarmy/robolib/eventhandlers.lua:552: in function <robotarmy/robolib/eventhandlers.lua:549>

This happens every time I try to move a unit

30 days ago

The person who made the unit control v2.0 port changed the name, so my mod didn't pick up the problem and fact it was running. When unit control is active, my mod has code which looks for a module named "unit_control" loaded to avoid doing some logic which breaks the game as you found. The new version has an extra 'l' added, so my checks do not work properly.

30 days ago

I just updated the mod to support the "Unit_Controll" version instead, as Klonan doesn't seem to ever want to update the old one for v2+ of factorio. The 'fixed' re-uploaded one has been targeted now as the optional inclusion mod, and the name changes have been made to support it in the code.

Try the update please!

29 days ago

Looks like it is working now, thanks!

26 days ago

Maybe this error is related to the OP's one? It happens when a droid assembling machine deploys a battle droid.

The mod Robot Army (2.4.23) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event robotarmy::on_tick (ID 0)
Unknown interface: unit_controll
stack traceback:
[C]: in function 'call'
robotarmy/robolib/eventhandlers.lua:342: in function 'processDroidAssemblers'
robotarmy/robolib/eventhandlers.lua:433: in function 'tickForces'
robotarmy/robolib/eventhandlers.lua:552: in function <robotarmy/robolib/eventhandlers.lua:549>

26 days ago

Checking the code of "Unit_Controll", it exposes an interface named "unit_control" for remote calls, but you are using "unit_controll". If I change it, the error goes away.

22 days ago

damn, this is a bug I made then, when adjusting it to support unit control. I have to fix that now, sorry about that

22 days ago
(updated 22 days ago)

okay I fixed it, and tested droid assembly with unit control mod on and it works. get v. 24 now please

New response