I just did some testing and I believe this is because the Spidertrons I'm attempting to control were created before I installed this mod. If I destroy and re-build a Spidertron, I become able to control it via its remote, but the other Spidertrons still show the same error. I was able to fix this for me by adding the following code just above the local spider_data
assignment around line 590:
if not global.spiders[spider.unit_number] then
global.spiders[spider.unit_number] = create_spider_data(spider)
end
This might not be the best solution, but it fixes it for me. (I assume that if the spider is valid at this point, then it's probably safe to add it to the global.spiders
table, but maybe I'm wrong and this will break for me down the line.)