Tabletop Simulator

Tabletop Simulator

Gloomhaven - Fantasy Setup (Scripted UI)
Snapznaz 1. feb. 2021 kl. 10:03
Long rest not working
First of all thanks for the great work. This mod is absolutely amazing!

I have this small issue with long rests. Quite often when I want to use it, I get this error:
"Error in Srcipt (Global) function <longRest>: chunk_3:(543,3-41): attempt to index a nil value <2>"

Line 543 looks like this:
"local zone = colorToPlayer[color].zone"

My player group is not always complete and I sometimes remove/add a player. Could the problem be related to the way I remove/add them?

What would be the correct way to set up the game when the player who played the second character last time is missing? Do I need to have player 4 take the second seat?

Cheers!
Sidst redigeret af Snapznaz; 1. feb. 2021 kl. 10:05
< >
Viser 1-3 af 3 kommentarer
Kijan  [udvikler] 2. feb. 2021 kl. 13:02 
the seat order is not important. you can remove player 2 or three no problem.
but you have to remove all of what is there.
but long rest is strange... i have to look into the code. did you changed any color?
the colors are set to the places and dont have to be changed also dont change the seats from the colors.
if you want to use another seat then you have to use the coor from that seat.

EDIT:
yeah the only reason i can see, is that you have a wrong color.
Sidst redigeret af Kijan; 2. feb. 2021 kl. 13:08
Snapznaz 3. feb. 2021 kl. 8:48 
Hi, thanks for you answer! :)

If I recall correctly, I did change the colors of the seats to better match the characters' colors.
I will try to change them back to the original ones.
Snapznaz 3. feb. 2021 kl. 9:07 
I checked.
Resetting the colors to the initial ones did the trick.
(I.e. P1=Red, P2=White, P3=Blue, P4=Green)
Thanks again!
< >
Viser 1-3 af 3 kommentarer
Per side: 1530 50