Someone was so nice to make me this script while ago at the start of 12. HanziQ Feels that it should work on both MP Type games so I went ahead and made this into a bug report.
Script:
Code: Select all
/c local pforces = {}; for _, player in ipairs(game.players) do local fname = "player_" .. player.name; local force = game.forces[fname] or game.create_force(fname); player.force = force; for _, pforce in ipairs(pforces) do pforce.set_cease_fire(force.name, true); force.set_cease_fire(pforce.name, true) end; pforces[#pforces+1] = force end
http://pastebin.com/A0w09zqH
Client factorio-current.log:
http://pastebin.com/yZe5vV3m