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

This forum is for discussion related to the game.
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 #25 (ISO) » Mon Mar 17, 2014 4:09 am

Post by Thesp »

In post 22, xRECKONERx wrote:Suggestion: allow for a way to use manual nicknames for players? For example, a lot of longer names get abbreviated (DrippingGoofball -> DGB) and it's kind of a pain to ask players to just use the full name every time.
I see the issue popping up: when people vote "CDB", it's more likely to think that's "CooLDoG" than "ChannelDelibird", probably because the letter "D" is closer to the beginning of the word in CooLDoG's name than it is in ChannelDelibird's. In any case, the "replaces" trick above should handle it easily.
T-Bone wrote:This looks really cool. Great work.
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
Mr. Flay
Mr. Flay
Metatron
User avatar
User avatar
Mr. Flay
Metatron
Metatron
Posts: 24969
Joined: March 12, 2004
Location: Gormenghast
Contact:

Post Post #26 (ISO) » Mon Mar 17, 2014 2:07 pm

Post by Mr. Flay »

Is there a way to make it not care about capitalization? Because the site won't allow DGB and dgb as separate usernames... I mean, I guess there's notscience and Nobody Special, but I see both of them called arbitrary capitalizations as it is. Just seems simpler.
Retired as of October 2014.
User avatar
xtopherusD
xtopherusD
Goon
User avatar
User avatar
xtopherusD
Goon
Goon
Posts: 477
Joined: September 25, 2012

Post Post #27 (ISO) » Mon Mar 17, 2014 5:00 pm

Post by xtopherusD »

Oh look, I solved everything.

Image

You guys don't have anything better to do, right?
no.
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 #28 (ISO) » Tue Mar 18, 2014 2:26 am

Post by quadz08 »

people actually use those buttons?
Current Avatar: Kronk. Duh.
User avatar
Mr. Flay
Mr. Flay
Metatron
User avatar
User avatar
Mr. Flay
Metatron
Metatron
Posts: 24969
Joined: March 12, 2004
Location: Gormenghast
Contact:

Post Post #29 (ISO) » Tue Mar 18, 2014 6:48 am

Post by Mr. Flay »

I use them all the time.
Retired as of October 2014.
User avatar
Cheery Dog
Cheery Dog
Kayak
User avatar
User avatar
Cheery Dog
Kayak
Kayak
Posts: 8037
Joined: June 30, 2012
Location: OMG BALL!

Post Post #30 (ISO) » Tue Mar 18, 2014 11:58 pm

Post by Cheery Dog »

In post 28, quadz08 wrote:people actually use those buttons?
I don't recognise the screen at all.

(wait dammit that means I must manually quote in quick post, I fail.
Holder of the Longest Continuous Weekly Mafiascum Post Record. 1 July 2012 - 16 Feb 2023
*It may be held by someone else if you discount the major downtime in 2012 and 2014, I'm not doing the research.
User avatar
T-Bone
T-Bone
He/Him
A Cut Above
User avatar
User avatar
T-Bone
He/Him
A Cut Above
A Cut Above
Posts: 9052
Joined: February 18, 2011
Pronoun: He/Him
Location: Shrug City
Contact:

Post Post #31 (ISO) » Fri Mar 21, 2014 8:51 am

Post by T-Bone »

I've never seen those things in my life!
My Top 40 Alt Songs of the Year!

"Playing in a Newbie game doesn't count" ~ PenguinPower, Feb 2019
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 #32 (ISO) » Tue Apr 29, 2014 12:36 pm

Post by xRECKONERx »

http://forum.mafiascum.net/viewtopic.ph ... 6#p5856676

VC doesn't ignore code tags (random case but should probably ignore those like it does quote tags)
green shirt thursdays
User avatar
Maruchan
Maruchan
she/her
Jack of All Trades
User avatar
User avatar
Maruchan
she/her
Jack of All Trades
Jack of All Trades
Posts: 5094
Joined: July 5, 2011
Pronoun: she/her
Location: Blacksburg, VA

Post Post #33 (ISO) » Sun May 04, 2014 9:42 am

Post by Maruchan »

This is epic. I totally hope to see this becoming more widespread and used
Show
Returning to modding after a nearly two year hiatus!
9 player Purgatory coming to the Open Queue Soon!
Join Now!

Micro Grand Idea uPick coming to the micro queue soon!
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 #34 (ISO) » Mon May 05, 2014 3:25 am

Post by Thesp »

I'll fix it to have it ignore code tags sometime in the next week, along with another minor tweak in processing setup tags. And thanks for the kind words! I hope it becomes a standard tool that moderators enjoy using to make their lives easier.
"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
Zachrulez
Zachrulez
Jack of All Trades
User avatar
User avatar
Zachrulez
Jack of All Trades
Jack of All Trades
Posts: 8550
Joined: December 5, 2008
Location: Minnesota

Post Post #35 (ISO) » Thu Jun 12, 2014 3:19 am

Post by Zachrulez »

I'm attempting to use this, but when I try to edit the day start post into the vote count data, it keeps switching the actual post link on me. (To the opening post link.) What's going on here?
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 #36 (ISO) » Thu Jun 12, 2014 3:26 am

Post by Thesp »

I'm not sure I understand what you're seeing. What game are you using this on? I can check out the code in your opening post and see if there's any typos, or help you draft the settings if you haven't done so.
"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 #37 (ISO) » Thu Jun 12, 2014 4:48 am

Post by Thesp »

Figured out the issue over PM. The votecounter is working beautifully. If you want to add it to
your
game (yes, I'm talking to you!), I'm happy to help you set it up and make your modding job easier!
"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
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 #38 (ISO) » Fri Jun 13, 2014 8:03 am

Post by xRECKONERx »

Does the VC check to see if there's been a hammer already? IE, I come and run a VC on a thread where someone hammered then someone else unvoted later
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 #39 (ISO) » Fri Jun 13, 2014 8:10 am

Post by Thesp »

In post 38, xRECKONERx wrote:Does the VC check to see if there's been a hammer already? IE, I come and run a VC on a thread where someone hammered then someone else unvoted later
It is designed to do so, yes. It will actually give you the
current
vote, but it throws up a warning that it thinks there was a hammer vote at Post XXX.
"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 #40 (ISO) » Fri Jun 13, 2014 8:11 am

Post by Thesp »

Also, in getting Zachrulezz set up for his game, he asked me about No Lynch votes, which I shamefully neglected to incorporate in my votecounter. I will put that in at some point, hopefully this Sunday (but I'm not sure exactly when).
"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
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 #41 (ISO) » Fri Jun 13, 2014 8:16 am

Post by xRECKONERx »

Hmm, okay, that's good to know.

Also, as a note... I'm currently using it in a game. It processed this as a vote for the player '4nxi3ty':
unvote
vote: zzzx
When I edited zzzx to be ZZZX, it processed it correctly for that player.
green shirt thursdays
User avatar
Majiffy
Majiffy
Go with the Flow
User avatar
User avatar
Majiffy
Go with the Flow
Go with the Flow
Posts: 23825
Joined: November 23, 2011
Location: Memphis, TN
Contact:

Post Post #42 (ISO) » Fri Jun 13, 2014 8:43 am

Post by Majiffy »

I would probably like to use this in my upcoming game.
Only playing in games at personal moderator and/or 50%+ playerlist request.


How To Win Every Game At Mafiascum (The Flowchart)
||
In case anyone was unsure...
Svenskt Stål (23:38) majiffy, worst mod on ms? we talk to a surviving victim of his game
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 #43 (ISO) » Fri Jun 13, 2014 9:14 am

Post by Thesp »

PM sent. :mrgreen:
"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 #44 (ISO) » Mon Aug 11, 2014 6:01 am

Post by Thesp »

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
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 #45 (ISO) » Mon Aug 11, 2014 6:18 am

Post by xRECKONERx »

Excellent updates, working flawlessly! Thanks Thesp!
green shirt thursdays
User avatar
Bicephalous Bob
Bicephalous Bob
Mafia Scum
User avatar
User avatar
Bicephalous Bob
Mafia Scum
Mafia Scum
Posts: 3828
Joined: June 4, 2013
Location: I don't know why you're linking me to pictures of babies on Facebook

Post Post #46 (ISO) » Mon Aug 11, 2014 6:26 am

Post by Bicephalous Bob »

In post 41, xRECKONERx wrote:Hmm, okay, that's good to know.

Also, as a note... I'm currently using it in a game. It processed this as a vote for the player '4nxi3ty':
unvote
vote: zzzx


When I edited zzzx to be ZZZX, it processed it correctly for that player.

This is easily fixed by putting both the vote string and the possible matches in lowercase.

Also, I volunteer.
User avatar
Bicephalous Bob
Bicephalous Bob
Mafia Scum
User avatar
User avatar
Bicephalous Bob
Mafia Scum
Mafia Scum
Posts: 3828
Joined: June 4, 2013
Location: I don't know why you're linking me to pictures of babies on Facebook

Post Post #47 (ISO) » Mon Aug 11, 2014 6:27 am

Post by Bicephalous Bob »

(in the python code, that is, not as the mod)
User avatar
fferyllt
fferyllt
Titan of Trajectory
User avatar
User avatar
fferyllt
Titan of Trajectory
Titan of Trajectory
Posts: 20497
Joined: December 28, 2012
Location: Left Coast

Post Post #48 (ISO) » Mon Aug 11, 2014 7:31 am

Post by fferyllt »

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!


excellent modifications!
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 #49 (ISO) » Mon Aug 11, 2014 7:39 am

Post by Thesp »

In post 46, Bicephalous Bob wrote:
In post 41, xRECKONERx wrote:Hmm, okay, that's good to know.

Also, as a note... I'm currently using it in a game. It processed this as a vote for the player '4nxi3ty':
unvote
vote: zzzx


When I edited zzzx to be ZZZX, it processed it correctly for that player.

This is easily fixed by putting both the vote string and the possible matches in lowercase.

Also, I volunteer.

I've pondered the utility of this, and I really need to do some benchmarking, because it's already a bit slow (in part because I'm on shared webhosting). Parsing a 21 page game for votes takes about ~13 seconds of computation time. I've wondered if it's worth adding the additional overhead of lowercasing every votee, and running the final responses through another dictionary to match the lowercased player names to the correctly cased counterparts. (I also had illusions that players would generally be better about correct casing and by preserving casing, I'd more likely pick up abbreviations like "STD" for "Save the Dragons" better, which has shown some degree of success. I may be wrong in that regard, though.)

I'm not sure if my concerns about performance and the utility of preserving case are warranted or not, though.

And I'm glad people are enjoying the votecounter! Now that I've gotten to use it in a game I'm modding, I've found it has saved me immeasurable amounts of work and has made it trivially easy to post a votecount on every page.
"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”