Tabletop Simulator

Tabletop Simulator

One Night Ultimate Werewolf - SCRIPTED NIGHT PHASE!
Thomassaurus  [developer] 1 Aug, 2016 @ 10:55am
Found a typo or bug in my script? let me know here
I want to perfect this script, so let me know of any problems big or small. Thanks!
< >
Showing 1-8 of 8 comments
:TTSwords 5 Aug, 2016 @ 10:58am 
I found a fix to "an error [occuring] when the only player swithes color". The problem was that, for some odd reason, blindCheck() had an issue with having no one to check on for a tick or so.

A simple fix to this was changing line 262 (the line that calls the blindCheck()), so that before the call, you also check to make sure that at least one player is seated. A quick way to do that is "getSeatedPlayers() [1]".

TL;DR: Change line 262 to "if getSeatedPlayers( ) [1] and blindCheck( ) then", to get rid of the error for when the only player leaves the chair. This will ensure that blindCheck() isn't called when it isn't needed.
Thomassaurus  [developer] 6 Aug, 2016 @ 9:25pm 
Oh ok, thanks. I used this and while the error doesn't occur all the time anymore, it still happens sometimes.

Do you think that when I change from white to blue for example, both blue and white will be listed in getSeatedPlayers( ) for a bit?
Last edited by Thomassaurus; 6 Aug, 2016 @ 9:25pm
:TTSwords 7 Aug, 2016 @ 10:00pm 
I didn't test it that much, was meant to be a quick fix and kind of the start of understanding what's going on with the error in the code... The way I'm using getSeatedPlayers() is that it only checks the first item in the array, doesn't care if it's "Blue" or "White", just makes sure if there is something in the array, and if not, returns nil, which would become false and doesn't run the blindCheck function, which I thought was the cause of the problem, running the code when not needed.
Cynthesis 8 Aug, 2016 @ 7:20pm 
Error:
Calling Lua function, startGame, inTimer: chunk_1:(734,16-21): attempt to index a nil value. Occured with Witch in the game. Other Cards: Doppleganger, 2x Werewolf, Minion, Seer, Robber, 3x Villager
Thomassaurus  [developer] 9 Aug, 2016 @ 10:29am 
Did the error cause any problems when the error happened? Or did it just display the error and then continue the night phase as normal?

I think what most likely happened is that the witch accidentally stacked two cards while doing his action which would cause a flood of errors until they were unstacked.

Feel free to add me Eric, I've seen you hosting this game a couple times and wanted to join.
Cynthesis 9 Aug, 2016 @ 2:00pm 
In regards to the error, the night phase would not advance. Tried resetting it a couple times, it was late and maybe a card may have been put on a non-player location although I didn't think so. I'll try again next time I have a game going and see if it occurs again.

Right now, just typically running with some family members at the moment, but if I start to run some pick up games here and there I'll definitely let you know. I really appreciate the mod, it's nice not being required to hold the phone app up to my headset while we play.
ApfelSkai 9 Aug, 2016 @ 8:04pm 
Doppleganger to Paranormal Investigator to Wolf doesn't add the "Wolf" tag or wake them up during the Werewolf Turn
Thomassaurus  [developer] 9 Aug, 2016 @ 8:29pm 
The p.i. doesn't wake up with the werewolves because his night action comes after the werewolves wake up. So the doppel-paranormal-wolf doesn't get to wake up with them either.

It's like if the doppel-robber stole a werewolf card, even though he would know he was a werewolf he wouldn't wake up with the werewolves. Just like a normal robber.
Last edited by Thomassaurus; 9 Aug, 2016 @ 8:33pm
< >
Showing 1-8 of 8 comments
Per page: 1530 50