Tabletop Simulator

Tabletop Simulator

Auto-Color
UprootedGrunt  [developer] 3 Oct, 2021 @ 9:38am
Bug Reports
Please place any bug reports in this thread.
< >
Showing 1-3 of 3 comments
Liyarin 26 Oct, 2021 @ 3:07am 
I just got this for my own GH game, and while the code *mostly* works, I had to do a quick fix myself...

On line 28 you have a loop iterating through the "getSeatedPlayers()" table, but that does not iterate through the "Grey" players, they're not considered seated. What you want is the following:

for _,p in pairs(Player.getPlayers()) do UpdatePlayerColor(p) end
Last edited by Liyarin; 26 Oct, 2021 @ 3:08am
UprootedGrunt  [developer] 26 Oct, 2021 @ 2:04pm 
Originally posted by Liyarin:
I just got this for my own GH game, and while the code *mostly* works, I had to do a quick fix myself...

On line 28 you have a loop iterating through the "getSeatedPlayers()" table, but that does not iterate through the "Grey" players, they're not considered seated. What you want is the following:

for _,p in pairs(Player.getPlayers()) do UpdatePlayerColor(p) end

I think you have just solved a problem that I've been working on from time to time but hadn't figured out. Amazing how much a separate set of eyes can do. I will make that change soon. Thanks!
Liyarin 31 Oct, 2021 @ 3:05pm 
Originally posted by UprootedGrunt:
Originally posted by Liyarin:
I just got this for my own GH game, and while the code *mostly* works, I had to do a quick fix myself...

On line 28 you have a loop iterating through the "getSeatedPlayers()" table, but that does not iterate through the "Grey" players, they're not considered seated. What you want is the following:

for _,p in pairs(Player.getPlayers()) do UpdatePlayerColor(p) end

I think you have just solved a problem that I've been working on from time to time but hadn't figured out. Amazing how much a separate set of eyes can do. I will make that change soon. Thanks!
You're welcome!
< >
Showing 1-3 of 3 comments
Per page: 1530 50