Robot Army


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

1 year, 10 months ago
0.13 - 1.1
30.3K

b Crash while placing rally point

7 years ago

Placing a rally point when no squads have been (are?) deployed crashes with the following error: control.lua: 357: bad argument #1 to pairs, table expected, got nil. Relevant line: for _, squad in pairs(global.Squads[entity.force.name]) do This is probably because no squad table has been declared for the player's force yet.

7 years ago

Yes, this has already been fixed for 0.2.1. Thanks for reporting. And yes, that's why, because when you place a rally point before any droids have been placed, the squad table wasn't created yet. It's an illogical situation, but it will not cause a crash anymore for those who decide to do it

New response