• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 23:20
CET 05:20
KST 13:20
  • 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: 2056 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
Next event in 3h 10m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 148
ProTech33
StarCraft: Brood War
Sea 3336
Calm 3010
Leta 272
Sexy 38
yabsab 25
Hm[arnc] 25
Icarus 4
Dota 2
monkeys_forever181
NeuroSwarm80
League of Legends
JimRising 676
Reynor32
Other Games
summit1g7113
C9.Mang0263
Trikslyr56
CosmosSc2 19
trigger2
Organizations
StarCraft: Brood War
UltimateBattle 49
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Hupsaiya 51
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki41
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo497
• Stunt271
Other Games
• Scarra651
Upcoming Events
RSL Revival
3h 10m
Zoun vs Classic
SHIN vs TriGGeR
herO vs Reynor
Maru vs MaxPax
WardiTV Korean Royale
7h 40m
Replay Cast
18h 40m
RSL Revival
1d 3h
WardiTV Korean Royale
1d 7h
SC Evo League
1d 8h
IPSL
1d 12h
Julia vs Artosis
JDConan vs DragOn
BSL 21
1d 15h
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.