• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:58
CEST 11:58
KST 18:58
  • 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
Serral wins EWC 202542Tournament Spotlight: FEL Cracow 202510Power Rank - Esports World Cup 202580RSL Season 1 - Final Week9[ASL19] Finals Recap: Standing Tall15
Community News
Weekly Cups (Jul 28-Aug 3): herO doubles up5LiuLi Cup - August 2025 Tournaments3[BSL 2025] H2 - Team Wars, Weeklies & SB Ladder10EWC 2025 - Replay Pack4Google Play ASL (Season 20) Announced57
StarCraft 2
General
Clem Interview: "PvT is a bit insane right now" Serral wins EWC 2025 TL Team Map Contest #5: Presented by Monster Energy Would you prefer the game to be balanced around top-tier pro level or average pro level? Weekly Cups (Jul 28-Aug 3): herO doubles up
Tourneys
WardiTV Mondays $5,000 WardiTV Summer Championship 2025 Sparkling Tuna Cup - Weekly Open Tournament LiuLi Cup - August 2025 Tournaments Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
External Content
+2348106233580 #I want to join brotherhood society Mutation # 485 Death from Below Mutation # 484 Magnetic Pull Mutation #239 Bad Weather
Brood War
General
Google Play ASL (Season 20) Announced How do the new Battle.net ranks translate? BW General Discussion Nobody gona talk about this year crazy qualifiers? [G] Progamer Settings
Tourneys
[ASL20] Online Qualifiers Day 2 [Megathread] Daily Proleagues Cosmonarchy Pro Showmatches [ASL20] Online Qualifiers Day 1
Strategy
Simple Questions, Simple Answers [G] Mineral Boosting Muta micro map competition Does 1 second matter in StarCraft?
Other Games
General Games
Stormgate/Frost Giant Megathread Total Annihilation Server - TAForever Nintendo Switch Thread Beyond All Reason [MMORPG] Tree of Savior (Successor of Ragnarok)
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread 9/11 Anniversary Possible Al Qaeda Attack on 9/11
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
The Link Between Fitness and…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
Customize Sidebar...

Website Feedback

Closed Threads



Active: 588 users

Mafia Votecount Tool - Page 2

Forum Index > TL Mafia
Post a Reply
Prev 1 2 3 4 5 11 12 13 Next All
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
July 09 2015 15:22 GMT
#21
You should definitely get a github going, we can pretty easily expand the code for this. Also I noticed you're hosting on heroku, are you using node as well? or just plain jquery?

We can talk to TL admins to spit out JSON for mafia forums for security reasons, ask them to just add an API Token.
Life?
Alakaslam
Profile Blog Joined September 2011
United States17336 Posts
July 09 2015 15:47 GMT
#22
Stop making derogatory threads about me

+ Show Spoiler +
I am not a tool!+ Show Spoiler +
lol
If you think Elon Musk is a Nazi, it is because YOU radicalized him!
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 09 2015 17:44 GMT
#23
Here's the GitHub page for this if you're interested:

https://github.com/Xatalos/mafia-votecount

JQuery is used a bit, but not Node.js.
"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 09 2015 17:49 GMT
#24
It doesn't currently run locally, by the way. If you want to fix that, then revert the changes I made in the last week or so (database settings from PostgreSQL -> H2).
"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
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
July 09 2015 18:08 GMT
#25
Purpose of using clojure as opposed to PHP or other languages? Just curious :D
Life?
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 09 2015 21:33 GMT
#26
Clojure was chosen because my friend (TripleSnail) wanted to learn Clojure, so I suggested this idea to him At the same time I wanted to learn JavaScript.
"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
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
July 10 2015 14:04 GMT
#27
On July 10 2015 06:33 Xatalos wrote:
Clojure was chosen because my friend (TripleSnail) wanted to learn Clojure, so I suggested this idea to him At the same time I wanted to learn JavaScript.


Javascript treating you right? But that's cool, I'm definitely going to look into it. Thanks for the push start!
Life?
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 10 2015 17:59 GMT
#28
On July 10 2015 23:04 ShoCkeyy wrote:
Show nested quote +
On July 10 2015 06:33 Xatalos wrote:
Clojure was chosen because my friend (TripleSnail) wanted to learn Clojure, so I suggested this idea to him At the same time I wanted to learn JavaScript.


Javascript treating you right? But that's cool, I'm definitely going to look into it. Thanks for the push start!


It's been a pretty interesting journey. I've learned quite a few new things about JavaScript/CSS (especially the one page approach implementation) and also a bit of Clojure.

By the way I don't think there's much need for a JSON feed or something like that. TripleSnail said that the easy part is finding the posts and their content as well. The problems are with sorting the content of the posts and giving the content in a different form wouldn't help with that really.

You're free to use the code for something else if you want to. You can also make a pull request if you notice something that needs fixing.

I should get back to working on the project in the near future
"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
gonzaw
Profile Joined December 2011
Uruguay4911 Posts
July 12 2015 09:23 GMT
#29
Awesome.

Nice choice to use Clojure. If you start learning more of it surely you'll come up with new ways to improve your app.

On July 06 2015 21:24 Xatalos wrote:
1) The votes of the current day could perhaps also be displayed in the same format as the regular votecount posts on the forum. That way the host/co-host could simply always copy the most recent vote listing of this format to the thread when there's a need for another votecount post. However, there's a major problem with this idea: it's that many players vote with all kinds of "nicknames" or just misspell when they're voting. That causes huge difficulties for displaying votes neatly in such a format.


Like people said, ignore the "nicknames" and stuff. People should be able to know how CTRL+C works.
If you do allow hosts to pre-define the list of players, then you can only allow votes on those players, and give out warnings if someone voted for someone differently.
Or if you want it to be more flexible (for instance if you allow stuff like "#Vote: GLaDOS"), just leave it like it is.

2) There could be some sort of an authentication system for creating new games. This way only actual hosts could create new games and there wouldn't be any need to worry about trolls ruining the website by spamming the "Create New Game" button. Hopefully there wouldn't even be a need for this, but...


Nah, that'd make it overly-complicated. You'd have to manage those accounts manually, only for people in TL. If someone new wants to start using your app you have to create a new account just for him, etc.
With tools like a Captcha (to prevent bots from creating games), and some mild moderating, there won't be problems. Alternatively give someone the "job" of accepting which game is created or not. Each "create new game" button creates an application which you can accept or reject. But until that problem actually happens, I'd say ignore it.

Also, in the near/mid future, you may want to expose your vote-counter as a service (web services and all that). That way you could create games, receive notifications for new votes, get a list of all games/current votes by bots and other apps. It'd be easier to add security there too (you can give credentials to certain bots/apps and never worry again), etc. Might come handy in the future.


Once I finish my bachelors degree (is it called that in USA?), I have a craving for starting a project similar to this. I just need some free time to get rolling.
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 12 2015 10:11 GMT
#30
Thanks for the suggestions.

I, too, hope that nobody decides to troll the app :D

My current idea is to do it just like rayn suggested. We'll see how it goes. Going to be away from home for a bit now 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 14 2015 20:22 GMT
#31
I implemented a tentative version of the "copy-pasteable" votecount listing that rayn suggested.

It looks kind of like this at the moment:

---

Current Day Votecount

Bill Murray (2): jcarlsoniv,Lord Tolkien
lord tolkien (0):
BillMurray (2): AsmodeusXI,ComaDose
vote: jcarlsoniv (1): Bill Murray
jcarlsoniv (1): Bill Murray
yomato (1): ComaDose

---

Source for the example: https://mafia-votecount.herokuapp.com/#487695-ot-vs-the-mods-mafia

Feedback is welcome!

At the moment I'm considering that it could be nice to also add things like:

- The list of non-voters
- Unvotes don't delete the vote but just overwrite it in the view
- Ordering of the votes in highest -> lowest order?

But that's enough for this session :D
"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 14 2015 20:25 GMT
#32
(By the way... If you're wondering why Bill Murray has two votes in that example, it's because he voted twice in a row without unvoting... When you unvote, it deletes all your votes in the view, but in that case, two different votes without unvoting -> two votes in the view...)
"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 14 2015 20:26 GMT
#33
The "Players" list is pretty useless at this point in time, so I'll just delete it for the time being while at it....
"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 14 2015 20:32 GMT
#34
I'm actually not sure what should be done in that situation (a player voting another player without unvoting). Should it be considered as an unvote+vote? Or an invalid vote? Opinions?
"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 14 2015 20:33 GMT
#35
(Currently it just adds the new vote without doing anything about the old vote)
"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 Kingdom30774 Posts
July 14 2015 22:12 GMT
#36
On July 15 2015 05:32 Xatalos wrote:
I'm actually not sure what should be done in that situation (a player voting another player without unvoting). Should it be considered as an unvote+vote? Or an invalid vote? Opinions?


unvote and vote since he clearly meant to vote someone new
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 15 2015 09:00 GMT
#37
I guess that would make more sense, yeah.
"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 15 2015 10:12 GMT
#38
Well, now a vote on another player is considered as unvote+vote....
"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 Kingdom30774 Posts
July 15 2015 10:18 GMT
#39
Sweet! Ty dude. You should enable some kind of version where it just crosses out the name for an unvote if people want that info or something
Xatalos
Profile Joined January 2011
Finland9675 Posts
July 15 2015 10:41 GMT
#40
Just implementing that feature Sorry if the app is being a bit unstable in the recent minutes since I'm testing stuff directly in the Heroku version.
"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
Prev 1 2 3 4 5 11 12 13 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 3m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
ggaemo 1645
Bisu 1372
hero 761
yabsab 568
Hyuk 561
Leta 410
Killer 384
firebathero 296
Nal_rA 292
PianO 105
[ Show more ]
Dewaltoss 99
Pusan 64
ToSsGirL 52
Rush 47
ZerO 41
sSak 36
Sharp 36
Backho 36
Noble 35
Yoon 16
TY 14
sorry 14
Bale 9
Dota 2
XaKoH 344
XcaliburYe282
BananaSlamJamma273
League of Legends
JimRising 415
Counter-Strike
olofmeister1990
shoxiejesuss711
allub250
x6flipin200
edward84
Super Smash Bros
Westballz40
Other Games
summit1g8216
singsing947
ceh9604
rGuardiaN281
Fuzer 155
Pyrionflax145
RotterdaM121
SortOf108
ArmadaUGS74
NeuroSwarm58
PartinGtheBigBoy37
ZerO(Twitch)7
Organizations
Other Games
gamesdonequick1018
StarCraft: Brood War
UltimateBattle 33
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH391
• davetesta27
• LUISG 21
• Dystopia_ 1
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt996
• HappyZerGling126
Upcoming Events
OSC
3m
CranKy Ducklings7
WardiTV Summer Champion…
1h 3m
WardiTV Summer Champion…
5h 3m
PiGosaur Monday
14h 3m
WardiTV Summer Champion…
1d 1h
Stormgate Nexus
1d 4h
uThermal 2v2 Circuit
1d 6h
The PondCast
2 days
WardiTV Summer Champion…
2 days
Replay Cast
2 days
[ Show More ]
LiuLi Cup
3 days
uThermal 2v2 Circuit
3 days
RSL Revival
3 days
RSL Revival
4 days
uThermal 2v2 Circuit
4 days
CSO Cup
4 days
Sparkling Tuna Cup
5 days
uThermal 2v2 Circuit
5 days
Wardi Open
6 days
RotterdaM Event
6 days
Liquipedia Results

Completed

ASL Season 20: Qualifier #2
FEL Cracow 2025
CC Div. A S7

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
HCC Europe
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025

Upcoming

ASL Season 20
CSLPRO Chat StarLAN 3
BSL Season 21
BSL 21 Team A
RSL Revival: Season 2
Maestros of the Game
SEL Season 2 Championship
WardiTV Summer 2025
uThermal 2v2 Main Event
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 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.