• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 20:44
CET 02:44
KST 10:44
  • 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 Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
[BSL21] Non-Korean Championship - Starts Jan 101SC2 All-Star Invitational: Jan 17-1820Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises3Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies3ComeBackTV's documentary on Byun's Career !11
StarCraft 2
General
SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises Chinese SC2 server to reopen; live all-star event in Hangzhou Starcraft 2 Zerg Coach ComeBackTV's documentary on Byun's Career !
Tourneys
OSC Season 13 World Championship WardiTV Mondays $5,000+ WardiTV 2025 Championship $100 Prize Pool - Winter Warp Gate Masters Showdow Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes Mutation # 504 Retribution Mutation # 503 Fowl Play
Brood War
General
A cwal.gg Extension - Easily keep track of anyone I would like to say something about StarCraft StarCraft & BroodWar Campaign Speedrun Quest BGH Auto Balance -> http://bghmmr.eu/ (UMS) SWITCHEROO *New* /Destination Edit/
Tourneys
[BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2 [Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET
Strategy
Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player Fighting Spirit mining rates
Other Games
General Games
Elden Ring Thread General RTS Discussion Thread Nintendo Switch Thread Awesome Games Done Quick 2026! Stormgate/Frost Giant Megathread
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread The Games Industry And ATVI 12 Days of Starcraft
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
National Diversity: A Challe…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1665 users

Mafia Votecount Tool - Page 9

Forum Index > TL Mafia
Post a Reply
Prev 1 7 8 9 10 11 13 Next All
rsoultin
Profile Blog Joined November 2014
Netherlands15308 Posts
August 21 2015 04:40 GMT
#161
Not sure how this works with replacements but we have two (if you've already worked this out with oneg, disregard)

raynpelikoneet is in for VA

and

Bill Murray is in for beneather
"rsoultin: Mafia Suicide Inducer...you have unlimited shots because you are so god-damn relentless." - marvellosity (2015)
Xatalos
Profile Joined January 2011
Finland9675 Posts
August 21 2015 07:25 GMT
#162
It's supposed to be handled like this: you go to the "main menu" (Go Back), then delete the whole game and create it again with the new players.
"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
August 21 2015 07:26 GMT
#163
New players = other current alive players + replacement players - replaced players

If someone dies, then you can simply remove that player in the game 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
Onegu
Profile Blog Joined May 2010
United States9699 Posts
August 21 2015 07:47 GMT
#164
On August 21 2015 13:40 rsoultin wrote:
Not sure how this works with replacements but we have two (if you've already worked this out with oneg, disregard)

raynpelikoneet is in for VA

and

Bill Murray is in for beneather



How cute you think onegu actually does host work. That is why he has you.
Try TL Mafia!!!
Xatalos
Profile Joined January 2011
Finland9675 Posts
August 21 2015 09:56 GMT
#165
:D: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
rsoultin
Profile Blog Joined November 2014
Netherlands15308 Posts
August 21 2015 13:18 GMT
#166
@.@ it would be more funny if it wasn't true lol ;o;
"rsoultin: Mafia Suicide Inducer...you have unlimited shots because you are so god-damn relentless." - marvellosity (2015)
Keirathi
Profile Joined May 2012
United States4679 Posts
August 21 2015 15:14 GMT
#167
Since you already have a way to remove a player from an ongoing game, why not also add a way to add a player to currently running game!? Then you can handle replacements without all the deleting-the-game stuff.

Maybe it's not as simple as I make it sound, though
My dear friend if I have gone pants on head, you have gone socks on ears!!! -ShiaoPi
Xatalos
Profile Joined January 2011
Finland9675 Posts
August 21 2015 20:43 GMT
#168
I guess that could be done 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
Keirathi
Profile Joined May 2012
United States4679 Posts
Last Edited: 2015-08-22 01:14:38
August 22 2015 00:14 GMT
#169
Hmm, Xata, do you have any ideas why I'm getting a compiler error when I try to run the app locally (or even push to heroku)?

When I run "lein ring server" it starts loading all of the dependencies, then it gets tot he part about compiling the clojure stuff, and it fails at either /src/mafia-votecount/models.clj or /src/lobos/config.clj with a NullPointerException.

Edit: Here's the pastebin of the error message if it makes any sense to you

http://pastebin.com/raw.php?i=K3bgQssq

Edit2: Oh, I think I just needed to change the db-uri subname in the files. But now I'm running into another problem.


(def db
(let [db-uri (java.net.URI. (System/getenv "DATABASE_URL"))]
(->> (string/split (.getUserInfo db-uri) #":")
(#(identity {:db (last (string/split (System/getenv "DATABASE_URL") #"\/"))
:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:user (% 0)
:password (% 1)
:subname "//ec2-54-197-253-142.compute-1.amazonaws.com:5432/dfnp55jvc64kc4"})))))


I changed the subname to use my heroku link, but now I get "org.postgresql.util.PSQLException: FATAL: password authentication failed for user"

This is a bit frustrating since I have it set up like yours. I must just be missing something, since I have it set up like yours and the "DATABASE_URL" is listed in my config variables from the app page in the heroku dashboard. :\


Nevermind all of this, I'm an idiot. I changed the subname locally but forgot to commit the changes before I tried to push.

Herp derp.
My dear friend if I have gone pants on head, you have gone socks on ears!!! -ShiaoPi
Xatalos
Profile Joined January 2011
Finland9675 Posts
August 22 2015 11:53 GMT
#170
Ah yeah.. Sorry, the text in the README is outdated. It's set to use a Heroku DB now, not a local H2 database anymore.

You got it working now by creating your own Heroku DB 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
Keirathi
Profile Joined May 2012
United States4679 Posts
August 22 2015 16:38 GMT
#171
no, I never could get it to work right and I eventually just gave up.

The problem I was having when I gave up was that I couldn't figure out how to run the migrations script to create the db tables/etc, so my app was just crashing as soon as I tried to load it every time
My dear friend if I have gone pants on head, you have gone socks on ears!!! -ShiaoPi
Xatalos
Profile Joined January 2011
Finland9675 Posts
August 22 2015 18:54 GMT
#172
Hmm... I'm not actually sure either since my friend created the tables.

I'll get back to you later.
"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
August 22 2015 19:22 GMT
#173
I didn't notice any bug so I just tried to re-enter the game and now it correctly shows "Day 2 Votecount". Maybe someone re-entered the game with an incorrect host name or something? Not really sure anymore since I forgot to check that possibility.
"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
August 24 2015 21:12 GMT
#174
Okay, Keirathi... Sorry for the delay, but after trying out various options, I think the best (or at least the easiest) solution is just to follow these steps to test stuff locally:

1) Install leiningen ("brew install leiningen" for OS X and something similar for Linux, I'd assume... not sure about Windows)

2) Clone the Git repository (git clone https://github.com/Xatalos/mafia-votecount - or whatever the address of your forked repository is in case you intended to make a pull request from a fork)

3) Now copy that folder and rename the new folder as something like mafia-votecount-local. Once that's done, go to the new folder and replace these files with the following contents:

project.clj: http://pastebin.com/A7sSdFMe

src/lobos/config.clj: http://pastebin.com/k9YdKbEm

src/mafia_votecount/models.clj: http://pastebin.com/zScESAt1

4) Now you're using a completely functional, empty, local H2 database (all data is stored on your own computer). Just type "lein ring server" and you're ready to go for testing any changes locally (no need for Heroku or anything).
"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
Keirathi
Profile Joined May 2012
United States4679 Posts
August 24 2015 21:29 GMT
#175
Sweet, got it running. Thanks!

I'll play around with it and see what I can come up with :D
My dear friend if I have gone pants on head, you have gone socks on ears!!! -ShiaoPi
Xatalos
Profile Joined January 2011
Finland9675 Posts
August 25 2015 10:16 GMT
#176
Okay Assuming you've made a fork, you can then just copy your changes to the actual forked folder and make a pull request. If there's something you noticed to fix/add, I mean.

Right now there are a couple of issues remaining that could be nice to fix at some point (if you wanted ideas haha):

1) Ordering for the votecount targets (by the amount of voters they have)
2) Get night start games working (currently you can work around the issue by simply not making a correctly formatted N0 post, but naturally it would be nicer if everything worked automatically)
3) Some sort of authentication system (perhaps just requiring some single password for editing the database?)
4) A button for adding new players to a game or something like 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
Xatalos
Profile Joined January 2011
Finland9675 Posts
August 25 2015 10:38 GMT
#177
Oh, and about the migrations script... If you want to try running your own Heroku app, then I think it went something like just running the "(migrations)" command once you've loaded the functions in migrations.clj. That should create the tables...
"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
August 25 2015 10:39 GMT
#178
(Using lein repl)
"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
rsoultin
Profile Blog Joined November 2014
Netherlands15308 Posts
August 25 2015 12:18 GMT
#179
i think we broke this again
"rsoultin: Mafia Suicide Inducer...you have unlimited shots because you are so god-damn relentless." - marvellosity (2015)
Xatalos
Profile Joined January 2011
Finland9675 Posts
August 25 2015 12:25 GMT
#180
Ah damn... Just edit some post after the last D2 vote to start with "Night 2" and another to start with "Day 2", then delete + enter 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
Prev 1 7 8 9 10 11 13 Next All
Please log in or register to reply.
Live Events Refresh
The PiG Daily
21:00
Best Games of SC
Reynor vs Clem
MaxPax vs TBD
SHIN vs TBD
Rogue vs TBD
PiGStarcraft722
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft722
NeuroSwarm 143
ProTech137
JuggernautJason103
RuFF_SC2 29
Vindicta 26
StarCraft: Brood War
Shuttle 67
Rock 15
Dota 2
XaKoH 499
League of Legends
JimRising 502
Counter-Strike
summit1g9276
tarik_tv5688
minikerr35
Other Games
ViBE139
Mew2King46
Chillindude25
Liquid`Ken7
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• Hupsaiya 76
• davetesta34
• RyuSc2 34
• HeavenSC 32
• Kozan
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• RayReign 57
• HerbMon 30
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22781
League of Legends
• Doublelift5832
Other Games
• imaqtpie3046
Upcoming Events
Korean StarCraft League
1h 16m
OSC
10h 16m
IPSL
15h 16m
Dewalt vs Bonyth
OSC
16h 16m
OSC
1d 10h
uThermal 2v2 Circuit
1d 12h
Replay Cast
2 days
RotterdaM Event
2 days
Patches Events
2 days
OSC
3 days
[ Show More ]
OSC
4 days
OSC
5 days
Liquipedia Results

Completed

Escore Tournament S1: W2
WardiTV 2025
META Madness #9

Ongoing

IPSL Winter 2025-26
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 2
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

CSL 2025 WINTER (S19)
Escore Tournament S1: W3
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Thunderfire SC2 All-star 2025
Big Gabe Cup #3
OSC Championship Season 13
Nations Cup 2026
Underdog Cup #3
NA Kuram Kup
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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 © 2026 TLnet. All Rights Reserved.