Testing a Votecounter (prev. Any Mods Willing to Volunteer?)

This forum is for discussion related to the game.
User avatar
PokerFace
PokerFace
Too Useful
User avatar
User avatar
PokerFace
Too Useful
Too Useful
Posts: 6231
Joined: July 20, 2007
Location: Ohio, USA
Contact:

Post Post #75 (ISO) » Sun Sep 07, 2014 1:39 pm

Post by PokerFace »

We could just test it here and now....

VOTE: Thesp
Last edited by PokerFace on Mon Oct 06, 2014 2:39 pm, edited 1 time in total.
User avatar
N
N
Jack of All Trades
User avatar
User avatar
N
Jack of All Trades
Jack of All Trades
Posts: 8539
Joined: August 2, 2012

Post Post #76 (ISO) » Wed Oct 01, 2014 1:11 pm

Post by N »

Is it possible for this to automatically include the deadline? Like, if the mod puts the deadline in the op or something, could it just copy from there?
GTKAS

Share And Enjoy
(go stick your head in a pig)
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #77 (ISO) » Wed Oct 01, 2014 2:04 pm

Post by Thesp »

In post 76, N wrote:Is it possible for this to automatically include the deadline? Like, if the mod puts the deadline in the op or something, could it just copy from there?

It is! I need to update the opening post to reflect this. See below, and let me know if you have any questions.
In post 44, Thesp wrote:I've done an update to the votecounter! It now:

1. Processes No Lynch votes.

It
should
do this smoothly, but I've not been able to test it thoroughly as I'd like. Please let me know if a No Lynch vote pops up in a game you're running with the votecounter, and how the votecounter handles it.

2. Properly warns on a lynching vote.

Previously, it logged when a potentially lynching vote had been placed, but I neglected to
actually display that information to the user
. This has now been corrected.

3. Optional Deadlines.

If you include a Deadline area tag in your settings, it will spit out deadline information with the votecount. The string inside the Deadline area tag should be the same one you would put in the countdown tag. Here is an example:
Deadline2014-08-17 14:00:00 -5.00


Let me know if you have any questions or need anything further. Here's a link to the votecounter site, again:

http://www.robandkriskris.com/votecounter/

Thanks!
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #78 (ISO) » Mon Oct 06, 2014 4:09 am

Post by Thesp »

FYI - the site is down due to a server upgrade over the weekend, and I'm working on getting things reconfigured properly. I'm going to try and complete the fix by this evening because work is busy and I feel like crap right now, so if it's down now please know it's going to be back up in a while. Thanks!
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
User avatar
jasonT1981
jasonT1981
Jack of All Trades
User avatar
User avatar
jasonT1981
Jack of All Trades
Jack of All Trades
Posts: 9671
Joined: June 15, 2009
Location: Mourne Mountains

Post Post #79 (ISO) » Mon Oct 06, 2014 6:42 am

Post by jasonT1981 »

Was just coming here to say its down. Thanks for update
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #80 (ISO) » Tue Oct 07, 2014 11:30 am

Post by Thesp »

I swear I've been working on this, it's just been a bit of a nightmare. ;) If you have any experience with shared webhosting services, and feel like you have some knowledge you could contribute, I've got a Stack Overflow question open on it. ;)

http://stackoverflow.com/questions/2624 ... weakrefset

Hopefully we'll have this knocked out by tonight!
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #81 (ISO) » Wed Oct 08, 2014 3:33 am

Post by Thesp »

We
should
be back up and running properly! Sorry for the downtime - hopefully there won't be another catastrophic security flaw found in Unix necessitating a server upgrade that breaks my site any time soon. ;)

Please let me know if you encounter any problems. Thanks!
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #82 (ISO) » Tue Oct 14, 2014 10:24 am

Post by Thesp »

Made a minor tweak to the votecounter. It should now disregard all spoiler text as well, and now adds an italicized "None" if there are no people not voting. Please let me know if you experience any problems. Thanks!
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
User avatar
tn5421
tn5421
he/him
Mafia Scum
User avatar
User avatar
tn5421
he/him
Mafia Scum
Mafia Scum
Posts: 3000
Joined: March 30, 2014
Pronoun: he/him

Post Post #83 (ISO) » Sun Oct 19, 2014 10:01 am

Post by tn5421 »

I'm going to use this for my upcoming game, anything I should be aware of that isn't in the FAQ or here?
Also, how does this work?


In post 21, Thesp wrote:I have a site up and running now. If you want to try it, PM me with a link to your game that meets the formatting standards in the first post.

By the way, you
can
include the initial information in spoiler tags, so it doesn't take up valuable real estate in your opening post if you like. So, something like:

Code: Select all

[spoiler=Votecounter Settings]
[area=Living Players]
Bob
Carol (replaces Joe)
Sue (replaces Tom; Lisa)
Julio
[/area]

[area=Links]
[post=#3329643]Day 1[/post]
[post=#3329643]Night 1[/post]
[post=#3329643]Day 2: Post #532[/post]
[/area]
[/spoiler]

...will look just like this...
Spoiler: Votecounter Settings
Living PlayersBob
Carol (replaces Joe)
Sue (replaces Tom; Lisa)
Julio


Links



In post 82, Thesp wrote:Made a minor tweak to the votecounter. It should now disregard all spoiler text as well, and now adds an italicized "None" if there are no people not voting. Please let me know if you experience any problems. Thanks!
WIP
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #84 (ISO) » Mon Oct 20, 2014 3:25 am

Post by Thesp »

Nope - I
think
it should all be covered, but I can't remember if the info on the deadline settings made it into the FAQ or not (check the linked post for further details).

And you can absolutely spoiler the votecounter settings themselves - the votecounter will ignore spoilered text in posts when checking for votes, but it will indeed check in spoilered boxes in the first 5 posts when looking for the settings information. Let me know if you have any trouble setting it up and I'm happy to help. Thanks!
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
User avatar
tn5421
tn5421
he/him
Mafia Scum
User avatar
User avatar
tn5421
he/him
Mafia Scum
Mafia Scum
Posts: 3000
Joined: March 30, 2014
Pronoun: he/him

Post Post #85 (ISO) » Sat Nov 08, 2014 6:55 am

Post by tn5421 »

bump
WIP
User avatar
xRECKONERx
xRECKONERx
GD is my Best Man
User avatar
User avatar
xRECKONERx
GD is my Best Man
GD is my Best Man
Posts: 26087
Joined: March 15, 2009

Post Post #86 (ISO) » Fri Nov 14, 2014 7:03 am

Post by xRECKONERx »

How hard would it be to add a prod check into this thing?

Like a field in the first post where you put in the prod limit (say, 72 hours) then have this check if anyone hasn't posted and add a prod for them at the bottom of the VC?

MS already has "activity overview" but I was just thinking it'd be a cool feature to have
green shirt thursdays
User avatar
tn5421
tn5421
he/him
Mafia Scum
User avatar
User avatar
tn5421
he/him
Mafia Scum
Mafia Scum
Posts: 3000
Joined: March 30, 2014
Pronoun: he/him

Post Post #87 (ISO) » Fri Nov 14, 2014 8:20 am

Post by tn5421 »

It would require the user to configure prod times (if added), but I can see the positives as well, I suppose.
WIP
User avatar
xRECKONERx
xRECKONERx
GD is my Best Man
User avatar
User avatar
xRECKONERx
GD is my Best Man
GD is my Best Man
Posts: 26087
Joined: March 15, 2009

Post Post #88 (ISO) » Fri Nov 14, 2014 10:05 am

Post by xRECKONERx »

Well the user already configures deadlines in the first post, I'd imagine it could just scan another section for prods in a similar manner
green shirt thursdays
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #89 (ISO) » Fri Nov 14, 2014 10:14 am

Post by Thesp »

In post 86, xRECKONERx wrote:How hard would it be to add a prod check into this thing?

Like a field in the first post where you put in the prod limit (say, 72 hours) then have this check if anyone hasn't posted and add a prod for them at the bottom of the VC?

MS already has "activity overview" but I was just thinking it'd be a cool feature to have

Conceivable. I'll put it on the backburner for next update I do. It's a lower priority simply because of the existence of Activity Overview, but I could imagine the utility of having that handled all in one place.
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
User avatar
insanity018
insanity018
Mafia Scum
User avatar
User avatar
insanity018
Mafia Scum
Mafia Scum
Posts: 2256
Joined: April 9, 2014
Location: Australia

Post Post #90 (ISO) » Sat Nov 22, 2014 1:12 pm

Post by insanity018 »

Hi, I'm currently using this for my game and it is working great. Thanks Thesp! :)
...
User avatar
tn5421
tn5421
he/him
Mafia Scum
User avatar
User avatar
tn5421
he/him
Mafia Scum
Mafia Scum
Posts: 3000
Joined: March 30, 2014
Pronoun: he/him

Post Post #91 (ISO) » Sun Nov 23, 2014 8:43 am

Post by tn5421 »

It's working well for me so far.
WIP
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #92 (ISO) » Mon Feb 09, 2015 5:01 am

Post by Thesp »

I ran into an interesting problem this weekend on a votecounter, so I wanted to share the issue with everyone, in case it should come up again.

In the heading post for a game, this line:

Code: Select all

16. Bookitty [size=10][strike]CrashTextDummie[/strike] [strike]Juls[/strike] [strike]farside22[/size][/strike]

...caused a problem for the HTML parser. See the "/size" tag inside the "strike" and "/strike" tags around farside22's name? It properly should be:

Code: Select all

16. Bookitty [size=10][strike]CrashTextDummie[/strike] [strike]Juls[/strike] [strike]farside22[/strike][/size]

...which keeps the strike tags self-contained, and a proper subset of the size tags. When it's switched around like in the first example, BBCode causes the HTML to be a bit malformed, and BeautifulSoup (the HTML parser that my program uses) can't process the post properly and truncates the rest of the post. Since the settings for the votecounter were below this point, it couldn't find the settings and refused to work.

I don't know of a good way of preventing this in the future - you may just have to watch how your tags match up. Let me know if you run into any other issues, and I'm happy to help make votecounts easy for you in your game!
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
User avatar
quadz08
quadz08
Jack of All Trades
User avatar
User avatar
quadz08
Jack of All Trades
Jack of All Trades
Posts: 5619
Joined: May 30, 2010
Location: where the wily things are

Post Post #93 (ISO) » Mon Feb 09, 2015 5:07 am

Post by quadz08 »

the correct answer is "don't suck at HTML tags," I think.
Current Avatar: Kronk. Duh.
User avatar
BROseidon
BROseidon
Expert Marxman
User avatar
User avatar
BROseidon
Expert Marxman
Expert Marxman
Posts: 8242
Joined: April 18, 2013
Happy Scumday!

Post Post #94 (ISO) » Mon Feb 09, 2015 8:13 am

Post by BROseidon »

In post 93, quadz08 wrote:the correct answer is "don't suck at HTML tags," I think.


Too hard, cannot be done.
User avatar
tn5421
tn5421
he/him
Mafia Scum
User avatar
User avatar
tn5421
he/him
Mafia Scum
Mafia Scum
Posts: 3000
Joined: March 30, 2014
Pronoun: he/him

Post Post #95 (ISO) » Mon Feb 09, 2015 2:44 pm

Post by tn5421 »

tl;dr if people nest their tags then problems happen.

Highly recommend that you put the settings spoiler at the top of the post and have formatting below it. That should stop all but the spoiler code being malformed from having any negative effects.

I personally use post #2 to put settings in and record confirmations
WIP
User avatar
fferyllt
fferyllt
Titan of Trajectory
User avatar
User avatar
fferyllt
Titan of Trajectory
Titan of Trajectory
Posts: 20493
Joined: December 28, 2012
Location: Left Coast

Post Post #96 (ISO) » Thu Sep 24, 2015 7:28 am

Post by fferyllt »

Is anyone else having problems with the vote counter today? I've been getting the following error since sometime last night:

500 (Page Unavailable)

Sorry, but the requested page is unavailable due to a server hiccup.

Please let Robin know so he can see what the trouble is and get it fixed. Thanks!

Click here to return to the website.
Amid the pressure of great events, a general principle gives no help.

Idic
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #97 (ISO) » Thu Sep 24, 2015 8:48 am

Post by Thesp »

I just looked into this. Your settings look correct, so I can't imagine that's an issue. It also seems to be working on other games. I imagine it's timing out, as might happen if it tries to go over too many pages to count votes. A workaround might be to find the oldest vote, and trick the votecounter by telling it that Day 1 begins at that post, rather than from the first page. That would reduce its overhead in pulling pages from the site, and possibly avoid the timeout.
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
User avatar
fferyllt
fferyllt
Titan of Trajectory
User avatar
User avatar
fferyllt
Titan of Trajectory
Titan of Trajectory
Posts: 20493
Joined: December 28, 2012
Location: Left Coast

Post Post #98 (ISO) » Thu Sep 24, 2015 10:26 am

Post by fferyllt »

I moved the setting of Day 1 start to post 618. I'm still getting the time-out message. The last successful vote count is in post 1757.

I also have a vote that isn't being picked up in post 1063. I can't figure out what's wrong with the vote or the settings for that one.
Amid the pressure of great events, a general principle gives no help.

Idic
User avatar
Thesp
Thesp
Supersaint
User avatar
User avatar
Thesp
Supersaint
Supersaint
Posts: 5781
Joined: November 4, 2004
Location: Round Rock, TX
Contact:

Post Post #99 (ISO) » Thu Sep 24, 2015 10:50 am

Post by Thesp »

In post 98, fferyllt wrote:I moved the setting of Day 1 start to post 618. I'm still getting the time-out message. The last successful vote count is in post 1757.

I also have a vote that isn't being picked up in post 1063. I can't figure out what's wrong with the vote or the settings for that one.

I don't know if the settings were changed or not, but I
think
I've figured out the solution. In the settings, there was a line that read like this:

Code: Select all

Aneninen (replaces aninem; Aneninen)

I took the liberty of editing it to read like this:

Code: Select all

Aneninen (replaces aninem)

...since the exact same spelling of "Aneninen" appears as both the original player and the replacement. It seems to work now. I don't know if that setting was changed between now and your last vote count, but that may have contributed to the breaking.

That said, I have no idea why it's missing Post 1063, and I'll look deeper into that, because it really should pick up vote tags easily. That's really weird.
"When playing a game, the goal is to win, but it is the goal that is important, not the winning." -
Reiner Knizia

Ask me about my automatic votecounter, and how you can use it in
your
game!
Check out my 15 minutes of fame on Wait Wait...Don't Tell Me!
Post Reply

Return to “Mafia Discussion”