Tabletop Simulator
Gloomhaven - Fantasy Setup (Scripted UI)
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!
Автор останньої редакції: Snapznaz; 1 лют. 2021 о 10:05
< >
Показані коментарі 13 із 3
Kijan  [розробник] 2 лют. 2021 о 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.
Автор останньої редакції: Kijan; 2 лют. 2021 о 13:08
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.
I checked.
Resetting the colors to the initial ones did the trick.
(I.e. P1=Red, P2=White, P3=Blue, P4=Green)
Thanks again!
< >
Показані коментарі 13 із 3
На сторінку: 1530 50