Robot Army


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

2 years ago
0.13 - 1.1
32.7K

b Crash while using Unit Controll

3 years ago

Greatings,

with the Unit Control Mod the game crashes instantly when trying to move my bots.
This is the error log:

Error while running event robotarmy::on_tick (ID 0)
LuaUnitGroup API call when LuaUnitGroup was invalid.
stack traceback:
[C]: in function 'index'
__robotarmy
/robolib/Squad.lua:628: in function 'validateSquadIntegrity'
robotarmy/robolib/Squad.lua:384: in function 'squadStillExists'
robotarmy/robolib/SquadControl.lua:11: in function 'updateSquad'
robotarmy/robolib/eventhandlers.lua:39: in function 'processSquadUpdatesForTick'
robotarmy/robolib/eventhandlers.lua:362: in function 'tickForces'
robotarmy/robolib/eventhandlers.lua:458: in function <robotarmy/robolib/eventhandlers.lua:455>

3 years ago

Greetings,

with the Unit Control Mod the game crashes instantly when trying to move my bots.
This is the error log:

Error while running event robotarmy::on_tick (ID 0)
LuaUnitGroup API call when LuaUnitGroup was invalid.
stack traceback:
[C]: in function 'index'
__robotarmy
/robolib/Squad.lua:628: in function 'validateSquadIntegrity'
robotarmy/robolib/Squad.lua:384: in function 'squadStillExists'
robotarmy/robolib/SquadControl.lua:11: in function 'updateSquad'
robotarmy/robolib/eventhandlers.lua:39: in function 'processSquadUpdatesForTick'
robotarmy/robolib/eventhandlers.lua:362: in function 'tickForces'
robotarmy/robolib/eventhandlers.lua:458: in function <robotarmy/robolib/eventhandlers.lua:455>

3 years ago

Hello,

I will try to reproduce this and put out a hot fix version update.

can you let me know what combination of Robot Army version and Unit Control version you have?

3 years ago
(updated 3 years ago)

Exact same issue for me, Robot Army 0.4.8 And Unit Control 0.3.8

I Just drag-selected some units the performed a "move-to" and crashed.

My log:

515.026 Error ServerMultiplayerManager.cpp:91: MultiplayerManager failed: "The mod Robot Army (0.4.8) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event robotarmy::on_tick (ID 0)
LuaUnitGroup API call when LuaUnitGroup was invalid.
stack traceback:
[C]: in function 'index'
__robotarmy
/robolib/Squad.lua:628: in function 'validateSquadIntegrity'
robotarmy/robolib/Squad.lua:384: in function 'squadStillExists'
robotarmy/robolib/SquadControl.lua:11: in function 'updateSquad'
robotarmy/robolib/eventhandlers.lua:39: in function 'processSquadUpdatesForTick'
robotarmy/robolib/eventhandlers.lua:362: in function 'tickForces'
robotarmy/robolib/eventhandlers.lua:458: in function <robotarmy/robolib/eventhandlers.lua:455>"

Edit 1 I have a Droid Guard Station placed, maybe related ? i'll try to remove-it to see if it crashes
Edit 2: I played without issues with 100+ units without any buildings like Droid Guard Station, i'll try to re-place it tomorrow to see if it crashes

3 years ago

it can depend on what tick it wants to process on, if it lines up with that squad and the unit control command which breaks the unitgroup, causing the error you see here.

I am trying to work on this now... it's not a big issue i just need the time to reproduce the issue, do the fix, test the fix ,and deploy the files to mod portal

3 years ago

try the v0.4.9 i just uploaded please

New response