Sorry, we don't support your browser.  Install a modern browser

Hotseat cursor color bug#1277

S

The bug:

On loading a save game in hotseat mode, TTS can show the wrong player to act.

Recreating the bug:

1) Make a hotseat table with two players: White (P1) and Green (P2)

2) Add a deck to the table.

2) Add this code to Global, changing the GUID of the deck.

function onLoad()
    my_deck = getObjectFromGUID('a85c3f')
    my_deck.highlightOn(Turns.turn_color)
end

function onPlayerTurnStart()
    my_deck.highlightOn(Turns.turn_color)
end

3) Make a savefile, load the savefile, save the script.

4) Pass the turn a few times, the highlight is that of the player whose turn it is.

5) Pass the turn to Green and save the savefile.

6) Pass the turn to White.

7) Load the save.

8) It should be Green’s turn, the highlight shows Green, but the HUD shows White.

The workaround:

In the onLoad section of Global, add the line

Turns.turn_color = Turns.turn_color

3 years ago