[Oxyd] Dedicated Server Only Crash When Using a Forces Cmd
Posted: Mon Sep 14, 2015 5:43 pm
This little script command puts the players in their own forces and also makes turrets friends. It works fine in a Hosted MP Game but when I run the command via a Dedicated MP Game it crashes the client and Server.
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:
Dedicated Server factorio-current.log:
http://pastebin.com/A0w09zqH
Client factorio-current.log:
http://pastebin.com/yZe5vV3m
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