[Oxyd] Dedicated Server Only Crash When Using a Forces Cmd

This subforum contains all the issues which we already resolved.
User avatar
StoneLegion
Filter Inserter
Filter Inserter
Posts: 687
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

[Oxyd] Dedicated Server Only Crash When Using a Forces Cmd

Post by StoneLegion »

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:

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
Dedicated Server factorio-current.log:
http://pastebin.com/A0w09zqH


Client factorio-current.log:
http://pastebin.com/yZe5vV3m
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [Oxyd] Dedicated Server Only Crash When Using a Forces Cmd

Post by Oxyd »

This was actually caused by setting the force of a player who wasn't currently connected, not by using the dedicated server. Fixed in 0.12.8.
Post Reply

Return to “Resolved Problems and Bugs”