Page 1 of 1

[0.11.1] Rocket defence in multiplayer

Posted: Sun Nov 09, 2014 5:37 pm
by jrb0001
If a player activates the rocket defence, the game crashes with an error about game.player can't be used in multiplayer.

Fix (data/base/scenarios/freeplay/control.lua):
line 69:

Code: Select all

      local timeleft = player.force.gettimetoland()
line 76:

Code: Select all

      player.setgoaldescription("Time until the fleet lands: " .. string.format("%d:%02d", minutes, seconds), true)
line 81:

Code: Select all

          target=player.character,
Just replace "game.player" with "player".

Re: [0.11.1] Rocket defence in multiplayer

Posted: Sun Nov 09, 2014 6:51 pm
by n9103
Verified.
Good work buddy.

Re: [0.11.1] Rocket defence in multiplayer

Posted: Mon Nov 10, 2014 4:06 pm
by cube
Thanks for the report, this is fixed for 0.11.2.