• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 22:25
CET 04:25
KST 12:25
  • 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 bracket11Weekly 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
Data analysis on 70 million replays soO on: FanTaSy's Potential Return to StarCraft 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 Stormgate/Frost Giant Megathread [Game] Osu! Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33
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
US Politics Mega-thread Russo-Ukrainian War 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
[Manga] One Piece Movie Discussion! 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: 1981 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
Next event in 4h 5m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
CosmosSc2 33
ProTech1
StarCraft: Brood War
Calm 2824
Noble 24
Sexy 18
Hm[arnc] 16
ivOry 7
Icarus 5
Dota 2
NeuroSwarm67
LuMiX1
League of Legends
JimRising 645
Reynor22
Super Smash Bros
C9.Mang0252
Other Games
summit1g7642
ViBE165
Trikslyr53
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Hupsaiya 60
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki17
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21860
League of Legends
• Doublelift3662
• Stunt115
Other Games
• Scarra831
Upcoming Events
RSL Revival
4h 5m
Zoun vs Classic
SHIN vs TriGGeR
herO vs Reynor
Maru vs MaxPax
WardiTV Korean Royale
8h 35m
Replay Cast
19h 35m
RSL Revival
1d 4h
WardiTV Korean Royale
1d 8h
SC Evo League
1d 9h
IPSL
1d 13h
Julia vs Artosis
JDConan vs DragOn
BSL 21
1d 16h
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
2 days
Wardi Open
2 days
[ Show More ]
IPSL
2 days
StRyKeR vs OldBoy
Sziky vs Tarson
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

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.