• Hey, guest user. Hope you're enjoying NeoGAF! Have you considered registering for an account? Come join us and add your take to the daily discourse.

Love Boat [Mafia] |OT| Till Death Do Us Part

Vote: Zippedpinhead

Karkador & Zippedpinhead (3)
NeverForever (Karkador)
CzarTim (Karkador)
Darryl (Zippedpinhead)

Yeah, that's what I was thinking

On unvoting, a standard UNVOTE[/hiighlight] wipes your votes, never understand why people put the name afterwards
 

Ty4on

Member
I think I actually might adopt Darryl's system, although it means vote tallies won't have unvotes showing most likely, so people would need to check the unvotes manually (gasp).
The votecounter should automatically unvote when you cast a new vote, regardless of whom you vote for.
Unvoting is really only useful for removing any active vote or helpful votes like these.

I'm all in favour of that method. There's no way we're going to agree on abbreviated names.
 

Ty4on

Member
Don't know what you're talking about, 4.

elevatorinchina2.jpg
 

cabot

Member
Man everytime this thread is shown as new in my subscriptions before Sunday is a really big tease...

You missed some top diablo 3 lootin' last night with nin and I.

Two rifts in a row with goblin factories. So many goblins. So much loot.
 

Kawl_USC

Member
You missed some top diablo 3 lootin' last night with nin and I.

Two rifts in a row with goblin factories. So many goblins. So much loot.

Yea, my bad dude. I was lame and ended up being super tired after going back to work post Mardi Gras. Just slept yesterday.

But it seems I was punished accordingly so no worries.
 

Coppanuva

Member
I think I actually might adopt Darryl's system, although it means vote tallies won't have unvotes showing most likely, so people would need to check the unvotes manually (gasp).

Kark's system would be okay otherwise, but it would mean lot of Pairs look awfully similar (like K + Z and K + H).

Is Darryls idea okay for you people?

I guess, the only downside is we'll have to tally up the vote totals ourselves. As in, if 3 people voted for Karkador, 3 votes for Zipped, and 5 people voted for Splinter (with 0 on cabot). At an eye glance it would look like Splinter + cabpt was in the lead, but really it would be Karkador + Zipped since their total is higher. Ultimately I'm ok with it, I just think it's worth pointing that out here.
 

Karkador

Banned
Yeah I didn't read the technomumbojumbo, but is it possible to make the script count either a vote:karkador or vote:zippedpinhead as a vote on the pair?
 

*Splinter

Member
I guess, the only downside is we'll have to tally up the vote totals ourselves. As in, if 3 people voted for Karkador, 3 votes for Zipped, and 5 people voted for Splinter (with 0 on cabot). At an eye glance it would look like Splinter + cabpt was in the lead, but really it would be Karkador + Zipped since their total is higher. Ultimately I'm ok with it, I just think it's worth pointing that out here.
I'm teaching Cabot everything I know, I'm sure he can muster a vote or two
 

*Splinter

Member
I guess, the only downside is we'll have to tally up the vote totals ourselves. As in, if 3 people voted for Karkador, 3 votes for Zipped, and 5 people voted for Splinter (with 0 on cabot). At an eye glance it would look like Splinter + cabpt was in the lead, but really it would be Karkador + Zipped since their total is higher. Ultimately I'm ok with it, I just think it's worth pointing that out here.
Actually isn't this what Burb was offering to do? The script definitely won't unless Flush customised it, so I assumed Burb was going to take its usual output and pair up the votes himself. Or something.
 

*Splinter

Member
*or someone

Oops

(I'd do it myself but have no idea how to do anything that isn't attached to an excel sheet)
Actually Burb if you can use it I'll update the sheet I used for Volcano Island. It's only in excel though, Micro$oft exclusivity deal I couldn't get it to work in Google docs
 

Coppanuva

Member
*eyes glaze over*

It means to run it you would need to:

Windows:
Click the windows key.
type in "cmd.exe" and launch it
and then type the script name to run it.

OSX:
Click the search thingy.
Type in terminal and launch it
And then type the script to run it.


Mobile:
I have no idea if this is even possible to run on Android or iOS.
 

Gorlak

Banned
My dear travelling companions <3

It's so adorable. The happiest couples are waiting in line. Everyone is excited and dreams of an unspoken future. What choices will the beautiful partners face? Will they overcome every hurdle to express their feelings for one another? Chucklefucks and shenanigans, unnecessary gambits and xanatos, they all lie ahead in our path. Don't you worry, we all have our doubts from time to time. The secret is... to trust in ~love~

Keep in mind, we are all human (or animals) and have a heart! Be kind, be gentle, spread love <3
 

FluxWaveZ

Member
My dear travelling companions <3

It's so adorable. The happiest couples are waiting in line. Everyone is excited and dreams of an unspoken future. What choices will the beautiful partners face? Will they overcome every hurdle to express their feelings for one another? Chucklefucks and shenanigans, unnecessary gambits and xanatos, they all lie ahead in our path. Don't you worry, we all have our doubts from time to time. The secret is... to trust in ~love~

Keep in mind, we are all human (or animals) and have a heart! Be kind, be gentle, spread love <3

I'm going to lynch you.
 

roytheone

Member
My dear travelling companions <3

It's so adorable. The happiest couples are waiting in line. Everyone is excited and dreams of an unspoken future. What choices will the beautiful partners face? Will they overcome every hurdle to express their feelings for one another? Chucklefucks and shenanigans, unnecessary gambits and xanatos, they all lie ahead in our path. Don't you worry, we all have our doubts from time to time. The secret is... to trust in ~love~

Keep in mind, we are all human (or animals) and have a heart! Be kind, be gentle, spread love <3

Why are you so adorable this season, Gorlak? You are really, REALLY making it hard for me to hate all Germans right now :(
 

*Splinter

Member
bats' clip was from Birdemic? I must have completely erased that scene from memory.

But yes, everyone should watch Birdemic.

And The Room

And probably Mega Shark vs. Giant Octopus.
 

Ourobolus

Banned
Ok. This SHOULD work, provided people don't misspell anything. If that happens, it'll try to search for a player that doesn't exist and it'll crap out.
Basically if anyone votes for Karkador, it'll show up in the same list as if they voted for Zippedpinhead, and vice versa, etc.

Code:
[plain]
import re
names = []
votes = {}
players = []
total = []
temp = 'you dun fucked up'
lovers1 = ['kingkitty', 'karkador', 'timeaisis', 'launchpadmcq', 'blargonaut','ultrajay', 'coppanuva', '*splinter', 'tl21xx', 
           'magnumboy20xx', 'rest', 'kyanrute', 'el topo', 'neverforever', 'sophia']
lovers2 = ['hyperactivity', 'zippedpinhead', 'fluxwavez', 'gorlak', 'kawl_usc',  
           'boo boo\'n', 'flame_ac', 'cabot', 'camjo-z', 'batsnacks', 'karu', 'retroid', 'miracle', 'czartim',  'ty4on']
flags = [True,True,True,True,True,True,True,True,True,True,True,True,True,True,True]
list = open("votes.txt","r")
names = list.readlines()
i = 0
j = -1
for guy in names:
    guy = re.sub(r'\([^)]*\)', '', guy)
    guy = re.sub(r'\[url[^]]*\]', '', guy)
    guy = re.sub(r'\[\/url[^]]*\]', '', guy)
    guy = re.sub(r'\s*\n', '', guy)
    names[i] = guy
    i = i+1
for lynch in names:
    if re.search(r'\[u(.*)u\]', lynch):
        p = re.compile(r'\[u\]\[b\](?P<name>.*)\s\[')
        q = p.search(lynch)
        votes[q.group('name')]=[]
        players.append(q.group('name'))
        temp = q.group('name')
        total.append(0)
        j = j + 1
    elif lynch!='':
        subst = re.sub(r'\s\d+', '', lynch)
        votes[temp].append(subst)
        if not re.search(r'\[strike\]', subst):
            total[j] = total[j] + 1
for ouro in players:
    x = 0
    if ouro in lovers1:
        x = 1
        ynnny = lovers1.index(ouro)
        retro = lovers2[ynnny]
        if retro in players:
            damage = total[players.index(ouro)]+total[players.index(retro)]
        else:
            damage = total[players.index(ouro)]
        if flags[ynnny]==True:
            print("[b][u]"+str(ouro)+" & "+str(retro)+" ("+str(damage)+")[/u][/b]")
            for z in range(len(votes[ouro])):
                print(votes[ouro][z])
            if retro in players:
                for z in range(len(votes[retro])):
                    print(votes[retro][z])
            flags[ynnny]=False
            print ""
    elif ouro in lovers2:
        x = 2
        ynnny = lovers2.index(ouro)
        retro = lovers1[ynnny]
        if retro in players:
            damage = total[players.index(ouro)]+total[players.index(retro)]
        else:
            damage = total[players.index(ouro)]
        if flags[ynnny]==True:
            print ("[b][u]"+str(retro)+" & "+str(ouro)+" ("+str(damage)+")[/u][/b]")
            if retro in players:
                for z in range(len(votes[retro])):
                    print(votes[retro][z])
            for z in range(len(votes[ouro])):
                print(votes[ouro][z])
            flags[ynnny]=False
            print ""
[/plain]

Huh. [ code ] does weird stuff with plus signs I guess.
 

Coppanuva

Member
Ok. This SHOULD work, provided people don't misspell anything. If that happens, it'll try to search for a player that doesn't exist and it'll crap out.

Code:
import re
names = []
votes = {}
players = []
total = []
temp = 'you dun fucked up'
lovers1 = ['kingkitty', 'karkador', 'timeaisis', 'launchpadmcq', 'blargonaut','ultrajay', 'coppanuva', '*splinter', 'tl21xx', 
           'magnumboy20xx', 'rest', 'kyanrute', 'el topo', 'neverforever', 'sophia',]
lovers2 = ['hyperactivity', 'zippedpinhead', 'fluxwavez', 'gorlak', 'kawl_usc',  
           'boo boo\'n', 'flame_ac', 'cabot', 'camjo-z', 'batsnacks', 'karu', 'retroid', 'miracle', 'czartim',  'ty4on']
flags = [True,True,True,True,True,True,True,True,True,True,True,True,True,True,True]
list = open("votes.txt","r")
names = list.readlines()
i = 0
j = -1
for guy in names:
    guy = re.sub(r'\([^)]*\)', '', guy)
    guy = re.sub(r'\[url[^]]*\]', '', guy)
    guy = re.sub(r'\[\/url[^]]*\]', '', guy)
    guy = re.sub(r'\s*\n', '', guy)
    names[i] = guy
    i = i+1
for lynch in names:
    if re.search(r'\[u(.*)u\]', lynch):
        p = re.compile(r'\[u\]\[b\](?P<name>.*)\s\[')
        q = p.search(lynch)
        votes[q.group('name')]=[]
        players.append(q.group('name'))
        temp = q.group('name')
        total.append(0)
        j = j + 1
    elif lynch!='':
        subst = re.sub(r'\s\d+', '', lynch)
        votes[temp].append(subst)
        if not re.search(r'\[strike\]', subst):
            total[j] = total[j] + 1
for ouro in players:
    x = 0
    if ouro in lovers1:
        x = 1
        ynnny = lovers1.index(ouro)
        retro = lovers2[ynnny]
        if retro in players:
            damage = total[players.index(ouro)]+total[players.index(retro)]
        else:
            damage = total[players.index(ouro)]
        if flags[ynnny]==True:
            print("[b][u]"+str(ouro)+" & "+str(retro)+" ("+str(damage)+")[/u][/b]")
            for z in range(len(votes[ouro])):
                print(votes[ouro][z])
            for z in range(len(votes[retro])):
                print(votes[retro][z])
            flags[ynnny]=False
    elif ouro in lovers2:
        x = 2
        ynnny = lovers2.index(ouro)
        retro = lovers1[ynnny]
        if retro in players:
            damage = total[players.index(ouro)]+total[players.index(retro)]
        else:
            damage = total[players.index(ouro)]
        if flags[ynnny]==True:
            print ("[b][u]"+str(retro)+" & "+str(ouro)+" ("+str(damage)+")[/u][/b]")
            for z in range(len(votes[retro])):
                print(votes[retro][z])
            for z in range(len(votes[ouro])):
                print(votes[ouro][z])
            flags[ynnny]=False
    print "\n"

Huh. [ code ] does weird stuff with plus signs I guess.

Python right? Also this uses a local file named votes.txt? So we'd just need to copy the vote tally portion from R_F's site, save it to vote.txt and run the script correct?

Also as a heads up to players:
Android can run Python scripts you just need an app. A quick search brought up QPython in the playstore. I haven't tested it, but you may be able to use this if you're on mobile.
 

Ourobolus

Banned
Python right? Also this uses a local file named votes.txt? So we'd just need to copy the vote tally portion from R_F's site, save it to vote.txt and run the script correct?

Also as a heads up to players:
Android can run Python scripts you just need an app. A quick search brought up QPython in the playstore. I haven't tested it, but you may be able to use this if you're on mobile.

"votes.txt", yeah.
And yes, it's Python. Unfortunately I'm not skilled enough to make it run directly off of the web. :p
And the portion of Flush's script you need to copy is the BBCode portion.

Huh. Also my code dropped the BBCode tags in the script. One sec.
 

Coppanuva

Member
"votes.txt", yeah.
And yes, it's Python. Unfortunately I'm not skilled enough to make it run directly off of the web. :p
And the portion of Flush's script you need to copy is the BBCode portion.

Huh. Also my code dropped the BBCode tags in the script. One sec.

Ahhh ok. Thanks! Looks nice!

I'm not sure how to make a friendly to install web version (most decent webparsers for python require installing a separate module which is... not the most intuitive thing to do). I can see if there's any easy way to modify the part of my OG webcrawler to help with that (or just send the source to you, and you can see if you can repurpose any of it). Lemme know if that would help any.
 

Ourobolus

Banned
Ahhh ok. Thanks! Looks nice!

I'm not sure how to make a friendly to install web version (most decent webparsers for python require installing a separate module which is... not the most intuitive thing to do). I can see if there's any easy way to modify the part of my OG webcrawler to help with that (or just send the source to you, and you can see if you can repurpose any of it). Lemme know if that would help any.

I mean, I can probably do some debugging just because of a set of fresh eyes, but I've never done anything like that before so I dunno.

Hm...I can't seem to get VS2015 to build the project anymore. It just simply runs the old version.
 

Ourobolus

Banned
From this list:

kingkitty (0)
cabot 96 (158)
batsnacks 841 (995)

blargonaut (0)
hyperactivity 99 (247)
zippedpinhead 153 (230)
fluxwavez 197 (365)
timeaisis 268 (289)

cabot (1)
launchpadmcq 123 (260)
blargonaut 723 (735)
blargonaut 735 (783)
timeaisis 737 (757)
gorlak 898 (1005)
blargonaut 902
kawl_usc 918 (948)

gorlak (1)
makai 129
ultrajay 175 (587)
boo boo'n 360 (449)

coppanuva (0)
zippedpinhead 150 (153)
kawl_usc 325 (918)
cabot 575 (744)

batsnacks (1)
cabot 158 (204)
zippedpinhead 230 (249)
el topo 257 (936)
zippedpinhead 427 (731)
kingkitty 865

fluxwavez (2)
blargonaut 162 (723)
boo boo'n 449
ultrajay 700 (778)
zippedpinhead 731
el topo 936 (940)

hyperactivity (0)
cabot 204 (331)

zippedpinhead (0)
hyperactivity 247 (330)

boo boo'n (0)
zippedpinhead 249 (427)
fluxwavez 365 (605)
kingkitty 429 (842)
miracle 579 (776)
ultrajay 593 (700)

timeaisis (0)
launchpadmcq 260 (724)
cabot 331 (575)
fluxwavez 690 (781)

ultrajay (9)
hyperactivity 580
timeaisis 900
timeaisis 921
launchpadmcq 941
kawl_usc 948
sophia 953 (1021)
sophia 953 (1021)
batsnacks 995
gorlak 1005
ty4on 1016
fluxwavez 1017

flame_ac (0)
batsnacks 594 (841)
fluxwavez 605 (690)
sophia 656 (907)
gorlak 670 (687)

*splinter (0)
launchpadmcq 724 (819)
cabot 744 (829)

timeaisis (3)
gorlak 762 (828)
miracle 776
ultrajay 778
fluxwavez 781 (929)
el topo 940

miracle (1)
blargonaut 783 (887)
cabot 829

sophia (0)
launchpadmcq 819 (908)
flame_ac 868 (916)
ty4on 889 (920)
fluxwavez 929 (983)

el topo (0)
blargonaut 887 (902)

karkador (1)
magnumboy20xx 990

...it should make results like this:
kingkitty & hyperactivity (0)
cabot
batsnacks
cabot

blargonaut & kawl_usc (0)
hyperactivity
zippedpinhead
fluxwavez
timeaisis

*splinter & cabot (1)
launchpadmcq
cabot
launchpadmcq
blargonaut
blargonaut
timeaisis
gorlak
blargonaut
kawl_usc

launchpadmcq & gorlak (1)
makai
ultrajay
boo boo'n

coppanuva & flame_ac (0)
zippedpinhead
kawl_usc
cabot
batsnacks
fluxwavez
sophia
gorlak

magnumboy20xx & batsnacks (1)
cabot
zippedpinhead
el topo
zippedpinhead
kingkitty

timeaisis & fluxwavez (2)
gorlak
miracle
ultrajay
fluxwavez
el topo
blargonaut
boo boo'n
ultrajay
zippedpinhead
el topo

karkador & zippedpinhead (1)
magnumboy20xx
hyperactivity

ultrajay & boo boo'n (9)
hyperactivity
timeaisis
timeaisis
launchpadmcq
kawl_usc
sophia
sophia
batsnacks
gorlak
ty4on
fluxwavez
zippedpinhead
fluxwavez
kingkitty
miracle
ultrajay

el topo & miracle (1)
blargonaut
blargonaut
cabot

sophia & ty4on (0)
launchpadmcq
flame_ac
ty4on
fluxwavez

Some names may appear twice because I just did a find/replace on a vote list from Woof1, but it should be fine in regular use.
 
Top Bottom