Page 1 of 1

[.15.5] Desync with game_view_settings

Posted: Tue May 02, 2017 11:31 am
by Nexela
Connect with 2 players
Place a logistic storage chest run the code below and have player 2 select it.

Code: Select all

/c script.on_event(defines.events.on_selected_entity_changed, function(event)
    local player = game.players[event.player_index]
        if not player.opened and player.selected and player.selected.type == "logistic-container" and player.game_view_settings.show_minimap then
            player.game_view_settings.show_minimap = false
        elseif not player.game_view_settings.show_minimap then
            player.game_view_settings.show_minimap = true
        end
    game.print(game.tick)
end)

If you remove the game.print it won't desync right away but you will notice that player 2's minimap has some rapid flicker
Possibly related - viewtopic.php?f=23&t=45159&p=260674&hil ... gs#p260674

Re: [.15.5] Desync with game_view_settings

Posted: Wed May 03, 2017 6:51 pm
by Rseding91
Thanks for the report. It's now fixed for the next version of 0.15.

It doesn't actually have anything to do with game view settings but the event itself is being fired when it shouldn't.