• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 19:04
CET 01:04
KST 09:04
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket9Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA12
StarCraft 2
General
RSL Season 3: RO16 results & RO8 bracket SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
StarCraft Evolution League (SC Evo Biweekly) RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
soO on: FanTaSy's Potential Return to StarCraft Data analysis on 70 million replays FlaSh on: Biggest Problem With SnOw's Playstyle [ASL20] Ask the mapmakers — Drop your questions BGH Auto Balance -> http://bghmmr.eu/
Tourneys
Small VOD Thread 2.0 [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Path of Exile [Game] Osu! Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33 Nintendo Switch Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1835 users

Mafia Votecount Tool - Page 4

Forum Index > TL Mafia
Post a Reply
Prev 1 2 3 4 5 6 11 12 13 Next All
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 18 2015 20:06 GMT
#61
Now it's working. It looks kind of like this when copy-pasted to TL:

Day 1 Votecount

fecalfeast (2): Onegu, Fecalfeast
plotspot (1): KelsierSC, Rels
yamato77 (0): geript
KelsierSC (1): geript
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 18 2015 20:10 GMT
#62
Re-entered the game because something got messed up and Fecalfeast's last unvote wasn't showing.
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 18 2015 20:16 GMT
#63
Let me know if you notice something else to be improved / in need of fixing!
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Holyflare
Profile Blog Joined November 2010
United Kingdom30775 Posts
July 18 2015 20:24 GMT
#64
sweet! love youuu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 19 2015 10:56 GMT
#65
There was a bug with the refreshing not working properly but it should now be fixed.
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Holyflare
Profile Blog Joined November 2010
United Kingdom30775 Posts
July 19 2015 18:52 GMT
#66
hmmm, I think (if possible), there should be a list of players not voting (maybe you could input the player list before the game starts and it can parse through that and list the ones that didn't vote yet or w/e - i dunno anything about coding :D)
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 19 2015 19:28 GMT
#67
Yeah there was a "Players" list in the create game window before. I guess it could be re-implemented...? It's a bit problematic in the sense that every player name would have to be entered 100% perfectly though
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 19 2015 20:21 GMT
#68
Some very weird things have happened today with the refresher (how the votes update automatically once the game has been entered). Several missed votes already. Re-entered the game again just now and it seems to have scanned everything correctly now.

Let's see if more missed votes occur.
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 19 2015 21:23 GMT
#69
Seems like this was missed (but it's no big wonder why :D):

VayneAuthority United States. July 19 2015 23:03. Posts 6171 Gift TL+ PM Profile Report Quote #
filter
##unvote onegu

##:vote Jonnylaw
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 21 2015 11:58 GMT
#70
On July 20 2015 03:52 Holyflare wrote:
hmmm, I think (if possible), there should be a list of players not voting (maybe you could input the player list before the game starts and it can parse through that and list the ones that didn't vote yet or w/e - i dunno anything about coding :D)


Do you think this would be worth the effort of having the host enter every player name 100% correctly while creating the game?
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 21 2015 13:04 GMT
#71
Well, quite a few nice improvements to the tool thanks to Holyflare so far!

A couple of things that should maybe be made clearer:

1) Votes in an incorrect format like ##:vote JonnyLaw won't be counted at all!
2) If the names are spelled incorrectly, then there will be duplicate vote targets (such as johhnylaw: x, y and jonnylaw: z, w)... although I recently changed it so that all names will be changed to lower case to at least reduce this issue a bit
3) For the hosts: each day/night post needs to start with the text "Day " or "Night " *on the first line* of the post... It doesn't matter if there's space or styling in there, as long as there's no text or additional lines before that!
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Half the Sky
Profile Joined May 2014
Germany9029 Posts
Last Edited: 2015-07-24 04:55:18
July 24 2015 04:53 GMT
#72
We are having trouble getting the script to work in Mini Mafia Down Under 3. Onegu just tested out the vote in the voting thread (and we are running the script in the voting thread because the game is post-restricted) and the tracker is not picking up his vote at all despite it being in the correct format. I have a Day 1 post just before his test vote.

The game starts in about 18 hours (24 July, 2300 BST) so any help (PM any of us or comment directly in page 4 or here or whatever) would be greatly appreciated. I am terrible with these scripts.

http://www.teamliquid.net/forum/mafia/490661-mini-mafia-down-under-3?page=4
http://www.teamliquid.net/forum/mafia/490855-mini-mafia-down-under-3-voting-thread

https://mafia-votecount.herokuapp.com/#490855-mini-mafia-down-under-3-voting-thread
The phoenix must burn to emerge. - Janet Fitch
Keirathi
Profile Joined May 2012
United States4679 Posts
July 24 2015 05:36 GMT
#73
Something I think would be cool would be to have a JSON config file for name matching.

Something like:


{
"Xatalos": ["Xata", "Xat"]
"marvellosity": ["marv"]
etc etc
}


Then when someone votes, you check the config file to see if the vote matches any of the exact names or short names or people actually in the game, and if so, place the vote for the exact name. Could also do some fuzzy matching so something like ##vote: Kierathi wouldn't be a big deal.

If people start voting for someone consistently by one name (for instance, say people start ##Vote: Keir) that isn't in the config, then someone could just go add it to the config file and make a quick pull request and then it all works.

Then, if none of the matching happens, you could fallback to just leaving the vote as they typed it and making sure that the host gets a notification about it.
My dear friend if I have gone pants on head, you have gone socks on ears!!! -ShiaoPi
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 24 2015 08:35 GMT
#74
Interesting idea...

I'll think about implementing something along those lines as well.
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Palmar
Profile Blog Joined July 2010
Iceland22633 Posts
July 24 2015 18:16 GMT
#75
you should open source this tbh.
Computer says mafia
Blazinghand *
Profile Blog Joined December 2010
United States25555 Posts
July 24 2015 18:19 GMT
#76
On July 25 2015 03:16 Palmar wrote:
you should open source this tbh.


I wouldn't mind contributing and I'm sure there are other TL Mafia community members who know how to program who could help out, or at least look over the code
When you stare into the iCCup, the iCCup stares back.
TL+ Member
Palmar
Profile Blog Joined July 2010
Iceland22633 Posts
July 24 2015 18:26 GMT
#77
On July 25 2015 03:19 Blazinghand wrote:
Show nested quote +
On July 25 2015 03:16 Palmar wrote:
you should open source this tbh.


I wouldn't mind contributing and I'm sure there are other TL Mafia community members who know how to program who could help out, or at least look over the code

I already have a command line tool that does kind of the same thing but I never bothered to make a configuration part for it or make it readable. I'm not even sure it works but it did run the vote counting for storm mafia:

https://gist.github.com/palmar/c10c42dd4dd330c0f89c

I also have a bunch of other mafia related scripts and stuff (tool to count the words/post amount per player in a game, a mafia hosting IRC bot and at one point I hooked together our skype group and our IRC channel through bots).
Computer says mafia
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 24 2015 18:29 GMT
#78
The GitHub page is here: https://github.com/Xatalos/mafia-votecount You can make pull requests or use parts of the code as you wish (just see the license included).
"The opportunity to secure ourselves against defeat lies in our own hands, but the opportunity of defeating the enemy is provided by the enemy himself." - Sun Tzu
Palmar
Profile Blog Joined July 2010
Iceland22633 Posts
July 24 2015 18:29 GMT
#79
I think someone... maybe keirathi? I can't remember really, even made some kind of a fuzzy matching and alias support for nicknames. That was fantastic.
Computer says mafia
Blazinghand *
Profile Blog Joined December 2010
United States25555 Posts
Last Edited: 2015-07-24 18:30:07
July 24 2015 18:29 GMT
#80
On July 25 2015 03:26 Palmar wrote:
Show nested quote +
On July 25 2015 03:19 Blazinghand wrote:
On July 25 2015 03:16 Palmar wrote:
you should open source this tbh.


I wouldn't mind contributing and I'm sure there are other TL Mafia community members who know how to program who could help out, or at least look over the code

I already have a command line tool that does kind of the same thing but I never bothered to make a configuration part for it or make it readable. I'm not even sure it works but it did run the vote counting for storm mafia:

https://gist.github.com/palmar/c10c42dd4dd330c0f89c

I also have a bunch of other mafia related scripts and stuff (tool to count the words/post amount per player in a game, a mafia hosting IRC bot and at one point I hooked together our skype group and our IRC channel through bots).


these are some of the most disgusting variable names I've ever seen hahahah


 solo = post.find('div', attrs={'class':'quote'})
if solo:
solo.replace_with('')
folo = post.find('b')
try:
yolo = folo.get_text()
except:
yolo = ""
pass
nolo = yolo.encode('ascii', 'ignore')
lolo = nolo.lower()
if "##vote" in lolo:
trolo = lolo.split("##vote")
try:
dmolo = trolo[1]
except:
pass
klolo = dmolo.translate(None, ' :')
fullcontentlist.append(klolo)
elif "##unvote" in lolo:
klol = "unvote"
When you stare into the iCCup, the iCCup stares back.
TL+ Member
Prev 1 2 3 4 5 6 11 12 13 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 7h 26m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft388
White-Ra 186
SpeCial 140
ROOTCatZ 62
CosmosSc2 29
StarCraft: Brood War
Britney 11198
Calm 2446
Larva 304
ajuk12(nOOB) 11
ivOry 3
League of Legends
Trikslyr51
Super Smash Bros
AZ_Axe65
Other Games
summit1g5590
Grubby3185
FrodaN2112
C9.Mang0156
ViBE156
Day[9].tv110
kaitlyn27
PPMD23
ToD22
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 21 non-featured ]
StarCraft 2
• RyuSc2 38
• musti20045 25
• Adnapsc2 10
• intothetv
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• HerbMon 53
• Azhi_Dahaki31
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21370
League of Legends
• Doublelift3065
Other Games
• Scarra474
• WagamamaTV316
• Shiphtur152
• Day9tv110
Upcoming Events
RSL Revival
7h 26m
Zoun vs Classic
SHIN vs TriGGeR
herO vs Reynor
Maru vs MaxPax
WardiTV Korean Royale
11h 56m
Replay Cast
22h 56m
RSL Revival
1d 7h
WardiTV Korean Royale
1d 11h
IPSL
1d 16h
Julia vs Artosis
JDConan vs DragOn
BSL 21
1d 19h
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
2 days
Wardi Open
2 days
IPSL
2 days
StRyKeR vs OldBoy
Sziky vs Tarson
[ Show More ]
BSL 21
2 days
StRyKeR vs Artosis
OyAji vs KameZerg
Replay Cast
2 days
Monday Night Weeklies
3 days
Replay Cast
3 days
Wardi Open
4 days
Replay Cast
5 days
Wardi Open
5 days
Tenacious Turtle Tussle
5 days
The PondCast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-16
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.