• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 23:47
CET 05:47
KST 13:47
  • 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
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)6Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns6[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1822Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises3
StarCraft 2
General
Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns 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
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) WardiTV Winter Cup WardiTV Mondays SC2 AI Tournament 2026 OSC Season 13 World Championship
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes Mutation # 504 Retribution
Brood War
General
Potential ASL qualifier breakthroughs? BGH Auto Balance -> http://bghmmr.eu/ I would like to say something about StarCraft BW General Discussion StarCraft & BroodWar Campaign Speedrun Quest
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Beyond All Reason Mechabellum Stormgate/Frost Giant Megathread Awesome Games Done Quick 2026! General RTS Discussion 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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Trading/Investing Thread The Big Programming Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
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
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Psychological Factors That D…
TrAiDoS
James Bond movies ranking - pa…
Topin
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2735 users

Mafia Votecount Tool - Page 10

Forum Index > TL Mafia
Post a Reply
Prev 1 8 9 10 11 12 13 Next All
Half the Sky
Profile Joined May 2014
Germany9029 Posts
August 25 2015 12:25 GMT
#181
On August 25 2015 21:18 rsoultin wrote:
i think we broke this again


I saw the voting thread. Onegu needed to have put the Day 3 post right after the Night 2 post. As it is, anyone that is between the first and second Night 2 posts will not have their votes counted. In general, you just do those posts consecutively right after EoD unless you know for some reason you have night voting which no normal will ever have and even few themed games will.
The phoenix must burn to emerge. - Janet Fitch
Xatalos
Profile Joined January 2011
Finland9675 Posts
August 25 2015 12:26 GMT
#182
That's the problem with voting threads... Less natural to include phase change posts :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
August 25 2015 12:26 GMT
#183
ay 3
"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:39 GMT
#184
nh...hopefully that'll fix it; if it doesn't i guess i can reenter info again after all my classes lol @.@
"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:42 GMT
#185
Even if you edit in the Day 3 post, you still need to re-enter the game since the tool only scan through posts that it hasn't scanned before (meaning that the D3 post is just skipped).
"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 25 2015 15:54 GMT
#186
On August 25 2015 19:16 Xatalos wrote:
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


Aye, #4 was the first thing I was going to do. I have the form made, I just need to figure out how to do the clojure stuff on the back end Like, I mostly understand what's going on, but it's still a little confusing about what I actually need lol.

On August 25 2015 19:38 Xatalos wrote:
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...


Yea, After I pushed to heroku, i would do "heroku run lein repl" and then "(use 'lobo.core)" then "(migrations)"

But that didn't seem to work.
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 17:34 GMT
#187
Hmmm... Not sure why then....

I'm not really 100% sure how I'd go about the "adding players", but I'd imagine you could look at how I managed to get the "delete player" and "delete game" functions working (you need a JavaScript function, a route in models.clj, and functions in player.clj and models.clj I'd assume?).
"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 17:37 GMT
#188
Or maybe just a name view file (something like "create_player.clj" like "create_game.clj"?)
"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 17:37 GMT
#189
*new view file
"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 25 2015 17:41 GMT
#190
Yea, I have the javascript part done.

In home.clj, I added "(POST "/add-player" [name] (player/add-player name))"

In player.clj, I added "(defn add-player [name] (models/add-player name))"

Then in models.clj I added "(defn add-player [name]
(insert player
(values name)))"

In the javascript, I call $.post("/add-player", player) where player is an object like {name: "keir"}. However, I get a 404 when I try to run it. I'm not entirely sure why, so it'll take some playing around. Clojure seems kind of hard to debug 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 25 2015 18:22 GMT
#191
The problem might be with the JS part if you get a 404... (wild guess) or possibly with the route?

What is the "player" even, a string, object? The other calls were like this $.post("/delete-game", {id: id});
"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 18:29 GMT
#192
Wait... actually, you also need to include which game the player belongs to (game id).
"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 18:34 GMT
#193
Oh... Apparently the migrations command was (migrate), not (migrations). You could try that instead.
"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 18:35 GMT
#194
And dunno if your HTML link is correct, but you can look at the delete-player / delete-game links for reference
"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 25 2015 19:21 GMT
#195
On August 26 2015 03:22 Xatalos wrote:
The problem might be with the JS part if you get a 404... (wild guess) or possibly with the route?

What is the "player" even, a string, object? The other calls were like this $.post("/delete-game", {id: id});

I said in the post that "player" was an object of the form {name: "keir"}

How it generates the object is: var player = {"name": document.getElementById("newPlayer").value}.

The newPlayer element is the input box for the player name, of course.

So my call is basically exactly like yours: $.post("/add-player", {name: "keir"}); I'm nearly 100% positive that part is right. Something is wrong with the routing or handling of it in clojure though.


On August 26 2015 03:29 Xatalos wrote:
Wait... actually, you also need to include which game the player belongs to (game id).


Yea I realized that when I actually poked around in the database. The player schema has id, game, and name.




Oh herp derp, I figured out the problem with the routing. In the home.clj file that defines the routes, I forgot missed the closing parenthesis on defroutes. So my route wasn't being added

Would be nice if that threw some kind of error though, instead of compiling and leaving my scratching my head as to why it wasn't working.

Anyways, i added the game id to the add-player calls, etc, and it seems to be working correctly now. When I push the submid button for the form, keir gets added to the db.

I'll clean it up and throw up a pull request soon.

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 19:40 GMT
#196
Nice. If you want to do the fuzzy matching thing (I think it was you who suggested it?) then go ahead :D I guess on the JS side?
"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 25 2015 19:54 GMT
#197
So, I'm looking at the pull request before I submit it, but there's a lot of stuff that doesn't need to be merged. I'm not sure how to exclude stuff from the pull request, though. If you're not sure what stuff should be merged, let me know.

There are a couple of things I still want to do:

1) Order the vote counts correctly


2) Add a button to reset the "current post" counter or whatever. Basically force the scanner to do a whole thread rescan, so if something happens again like in Personality again where the host forgets to do the phase change post in the voting thread, they can post it, then his the rescan button and the app will start over scanning from the front again.

Basically, anytime you have to delete a game and re-add it is annoying. I'd like to eliminate the problems that currently make you do that.


3) Fuzzy matching.
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 19:55 GMT
#198
Hmm... I fear Day 3 of your game might be a lost cause because you can't edit in the Day 3 post properly..... Maybe just count manually for now and then return to the tool by adding Night 4 and Day 4 posts properly?
"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 19:57 GMT
#199
Ok, nice. I guess everything but the database related changes should be merged?
"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 25 2015 19:58 GMT
#200
I made notes on what should be merged in the pull request.

But yea, basically everything except the gitignore stuff, anything related to db, and the system.properties file.
My dear friend if I have gone pants on head, you have gone socks on ears!!! -ShiaoPi
Prev 1 8 9 10 11 12 13 Next All
Please log in or register to reply.
Live Events Refresh
SOOP
04:00
SOOP Invitational #1
SHIN vs GuMiho
Cure vs Creator
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
NeuroSwarm 297
RuFF_SC2 238
WinterStarcraft142
StarCraft: Brood War
Sea 4581
GuemChi 1204
Shuttle 403
Larva 58
Noble 27
ZergMaN 25
Hm[arnc] 24
ajuk12(nOOB) 17
JulyZerg 17
NaDa 13
[ Show more ]
Icarus 10
Dota 2
capcasts108
febbydoto28
League of Legends
JimRising 726
Counter-Strike
fl0m10407
summit1g3711
m0e_tv534
minikerr30
Super Smash Bros
hungrybox465
Other Games
C9.Mang0485
ViBE128
Organizations
Other Games
gamesdonequick44708
StarCraft: Brood War
UltimateBattle 113
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Berry_CruncH145
• practicex 26
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• Azhi_Dahaki31
• HerbMon 1
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Doublelift5868
• Lourlo651
• Stunt303
Other Games
• Scarra1514
Upcoming Events
The PondCast
5h 13m
Wardi Open
7h 13m
Big Gabe XPERIONCRAFT
8h 13m
AI Arena Tournament
15h 13m
Sparkling Tuna Cup
1d 5h
WardiTV Invitational
1d 8h
IPSL
1d 15h
DragOn vs Sziky
Replay Cast
2 days
Wardi Open
2 days
Monday Night Weeklies
2 days
[ Show More ]
WardiTV Invitational
3 days
WardiTV Invitational
4 days
The PondCast
5 days
All Star Teams
6 days
Liquipedia Results

Completed

Escore Tournament S1: W3
WardiTV 2025
META Madness #9

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
OSC Championship Season 13
Big Gabe Cup #3
Underdog Cup #3
NA Kuram Kup
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: W4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Thunderfire SC2 All-star 2025
Nations Cup 2026
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.