Robot Army


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

10 months ago
0.13 - 2.0
39.3K

b Crash while placing rally point

10 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.

10 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