Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



Ralith and I are cooking something up.

Please reply with some letters (4-6 or so) in bold. A;B means you like A more. A, B means you prefer them equally.

F, G; A, D, E

Loel fucked around with this message at 08:42 on Feb 15, 2016

Adbot
ADBOT LOVES YOU

cat_herder
Mar 17, 2010

BE GAY
DO CRIME


E;G

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



Current design ideas:

Pays attention to the difference of ; and ,
Ignores whitespace
Ignores everything not in bold
Can handle letters or words. 'plan tran' as well as b;c;d. or b;plan tran; c

stevey666
Feb 25, 2007
A.


Actually, B looks pretty good but.. we could do A.

ALSO B

Because I like both

mepstein73
Sep 18, 2012

Whether or not you find your own way, you're bound to find some way. If you happen to find my way, please return it, as it was lost years ago. I imagine by now it's quite rusty.
b;c,D;a

Just let me know what it thinks of this.

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



Your idea is better.

b;c,D;a

mepstein73
Sep 18, 2012

Whether or not you find your own way, you're bound to find some way. If you happen to find my way, please return it, as it was lost years ago. I imagine by now it's quite rusty.
For this, you should work in the ability to read the last bolded vote of the person you tag (say, if you do "plan Tran" as often happens in the W40K one, it would find the last vote of Tran and add 1 to that), and also work in something so that bolded text from the thread owner (say, as a title) is what tallies the votes and clears the log. That way you can fully automate the process of clearing past votes. Oh, and make it so people can remove their vote too (but only their vote, and it must be in the same format as how they entered it, so they don't remove a vote from something they didn't actually vote for). Finally, a graphical view of the current votes that can be displayed on the OP for people to see what's winning.

Just some ideas...

hollylolly
Jun 5, 2009

Do you like superheroes? Check out my CYOA Mutants: Uprising

How about weird historical fiction? Try Vampires of the Caribbean

E;G;C;L;K;A, D, J

Ralith
Jan 12, 2011

I see a ship in the harbor
I can and shall obey
But if it wasn't for your misfortune
I'd be a heavenly person today
In a handful of seconds of copy-pasting, I assembled the following input data:
code:
LowellDND
1 F, G; A, D, E

meteloides
1 E;G

stevey666
1 A. ALSO B

mepstein73
1 b;c,D;a

LowellDND
1 b;c,D;a

hollylolly
1 E;G;C;L;K;A, D, J
Fed to the prototype implementation, the following resulted:

code:
================
Votes
================

hollylolly
1 E; G; C; L; K; A, D, J

LowellDND
1 b; c, D; a

mepstein73
1 b; c, D; a

meteloides
1 E; G

stevey666
1 A. ALSO B

================
Results
================

1 tie: b, E

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



Case sensitive?

edit: Also, did you change the format of stevey's?

Ralith
Jan 12, 2011

I see a ship in the harbor
I can and shall obey
But if it wasn't for your misfortune
I'd be a heavenly person today
Options, voter names, and question names are case-insensitive, but I preserve the original case in the output for better readability.

My post included the exact format of the input data. stevey666 didn't comply with the proposed vote format so I had to edit it. You can also see that I had to insert a question name (1) for every vote.

Next up for me is more testing against the examples in the Schulze Method paper to ensure the algorithm's right. The 2-way tie there isn't ridiculous, but it is a little surprising.

e: If I change stevey666's vote to "1 A. ALSO B; A, B," then B wins, which demonstrates how this lets you vote for unpopular options without losing your opportunity to influence more likely winners.

e2: Tests passing, looks like the prototype's good to go.

Ralith fucked around with this message at 06:03 on Feb 16, 2016

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



Now we just need to get Thecog in here and run his crawler :D

Loel fucked around with this message at 05:53 on Feb 16, 2016

Ralith
Jan 12, 2011

I see a ship in the harbor
I can and shall obey
But if it wasn't for your misfortune
I'd be a heavenly person today

##voTE
1 A; B, C; D
2 B

##vote
1 B

Ralith fucked around with this message at 09:02 on Feb 18, 2016

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



##Vote
1 F; C, B; J
2 B

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



##Vote
1 F; C, B; J
2 B
3 X; Y

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



K, so possible options:

http://forums.somethingawful.com/showthread.php?threadid=3759176 Music Theory, Wander
http://forums.somethingawful.com/showthread.php?threadid=3764459 Poison Mushroom, Six Stars
http://forums.somethingawful.com/showthread.php?threadid=3746086 Swedish Thaum, Monster Hunter
http://forums.somethingawful.com/showthread.php?threadid=3751594 Sundown Run, dogkisser
http://forums.somethingawful.com/showthread.php?threadid=3738085 Mutants, Holly
http://forums.somethingawful.com/showthread.php?threadid=3657951 DH
http://forums.somethingawful.com/showthread.php?threadid=3550307 PL

Yet to be posted: Catherder, Mepstein

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



TESTING BEGINS: http://forums.somethingawful.com/showthread.php?threadid=3657951&pagenumber=560

Ralith
Jan 12, 2011

I see a ship in the harbor
I can and shall obey
But if it wasn't for your misfortune
I'd be a heavenly person today

LowellDND posted:

##Vote
1 F; C, B; J
2 B
3 X; Y


I think I forgot to account for people quoting posts. Should be fixable.

##Vote
1 ZZZ
2 ZZZ
3 ZZZ

Ralith fucked around with this message at 20:48 on Feb 19, 2016

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



Using the system:

http://forums.somethingawful.com/showthread.php?threadid=3765086 Taven, Mepstein
http://forums.somethingawful.com/showthread.php?threadid=3657951 DH
http://forums.somethingawful.com/showthread.php?threadid=3738085 Mutants, Holly
http://forums.somethingawful.com/showthread.php?threadid=3765109 Haunted House, Meteloids

Not using the system:

http://forums.somethingawful.com/showthread.php?threadid=3759176 Music Theory, Wander
http://forums.somethingawful.com/showthread.php?threadid=3764459 Poison Mushroom, Six Stars
http://forums.somethingawful.com/showthread.php?threadid=3746086 Swedish Thaum, Monster Hunter
http://forums.somethingawful.com/showthread.php?threadid=3751594 Sundown Run, dogkisser
http://forums.somethingawful.com/showthread.php?threadid=3550307 PL

Loel fucked around with this message at 05:23 on Feb 20, 2016

hollylolly
Jun 5, 2009

Do you like superheroes? Check out my CYOA Mutants: Uprising

How about weird historical fiction? Try Vampires of the Caribbean

I don't know what to do to use it - PM me?

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



hollylolly posted:

I don't know what to do to use it - PM me?

Tell your players this:

How do I vote?

Simple answer: Mark with ##vote then put your answer in bold. 1. A Like so.

quote:

Complicated answer for advanced players:
  • The entire vote should be Bold text (select the whole thing, press ctrl- or cmd-b)
  • Preceded by ##vote
  • In all cases, individual votes should be preceded by the question number (1, 2, etc) followed by a period (1. for instance)
  • Primary choice goes first. This must be a letter (A, B, C, D, etc)
  • Secondary choices should be separated by either a semicolon (;) for rank preference, or a comma (,) for indifference.

Thus, if voting for B primarily, with A and C as secondary options, and D as a tertiary option, you would type:

code:
[b]
##vote
1. b;a,c;d
[/b]
Feel free to use capital letters! Also, anything NOT in bold will not be counted, so keep that in mind when voting.

:D

hollylolly
Jun 5, 2009

Do you like superheroes? Check out my CYOA Mutants: Uprising

How about weird historical fiction? Try Vampires of the Caribbean

Yes but how do I get those votes counted? Where is the bot?

Edit:

##vote
1 :supaburn:

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



hollylolly posted:

Yes but how do I get those votes counted? Where is the bot?

Edit:

##vote
1 :supaburn:

Talk to Ralith :v: That's his end of things, I'm just organizing the player base.

hollylolly
Jun 5, 2009

Do you like superheroes? Check out my CYOA Mutants: Uprising

How about weird historical fiction? Try Vampires of the Caribbean

Simple votebot rules:


How do I vote?


Mark with ##vote then put your answer in bold. 1. A Like so:

code:
[b]##vote
1. A[/b]
If your vote is for a write in option, please vote for Plan Yournamehere, and then write in the plan under your vote. Like so:

code:
[b]##vote
1. Plan ComplicatedPlan[/b]

We should implement this complicated plan combining several options

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



Heres how I have it now:

https://docs.google.com/document/d/1FG9vbzJ38cYoahpm4likjW7hZ5RFouE6TinZM6D1MCA/edit

Comments welcome

Hexenritter
May 20, 2001


Does this parse properly?


##vote
1. a+C, e;D

Ralith
Jan 12, 2011

I see a ship in the harbor
I can and shall obey
But if it wasn't for your misfortune
I'd be a heavenly person today

Hexenritter posted:

Does this parse properly?


##vote
1. a+C, e;D

code:
       a        
       +        
       C   D   e
----++---+---+---
a+C || 0 | 1 | 0
  D || 0 | 0 | 0
  e || 0 | 1 | 0
Looks good to me, so long as you understand that "a+c" is not special in any way--the counter treats it the same as "Plan Tran" or any other distinct string. I could make + automatically add votes for its operands individually as well as the combination, and even the associative property, but that's extra complexity and people interested in making complicated votes can add the individual components by hand (e.g. "1 a+c, e; a, c; D") if they actually want that.

Ralith fucked around with this message at 05:53 on Feb 20, 2016

hollylolly
Jun 5, 2009

Do you like superheroes? Check out my CYOA Mutants: Uprising

How about weird historical fiction? Try Vampires of the Caribbean


Looks good to me.

Hexenritter
May 20, 2001


Ralith posted:

code:
       a        
       +        
       C   D   e
----++---+---+---
a+C || 0 | 1 | 0
  D || 0 | 0 | 0
  e || 0 | 1 | 0
Looks good to me, so long as you understand that "a+c" is not special in any way--the counter treats it the same as "Plan Tran" or any other distinct string. I could make + automatically add votes for its operands individually as well as the combination, and even the associative property, but that's extra complexity and people interested in making complicated votes can add the individual components by hand (e.g. "1 a+c, e; a, c; D") if they actually want that.


Alrighty. :)

Wasn't trying to over-complicate things, just seeking a bit of clarification. For merged options if they've already been suggested I'll probably go with the named version ("Plan Tran", etc)

like so:

##vote
1. Plan Tran, e;D

Hexenritter fucked around with this message at 06:05 on Feb 20, 2016

hollylolly
Jun 5, 2009

Do you like superheroes? Check out my CYOA Mutants: Uprising

How about weird historical fiction? Try Vampires of the Caribbean

I really like this vote counter, by the way. I think by writing my choices in a way that makes it easy/easier to know how to format the vote helps, and I like being able to see the list of what votes it counted so if I need to I can double check the results.

Working great so far. :D

Ralith
Jan 12, 2011

I see a ship in the harbor
I can and shall obey
But if it wasn't for your misfortune
I'd be a heavenly person today
:shobon:

If no new issues arise in the next few days I think I'll post the download for general use.

Loel
Jun 4, 2012

"For the Emperor."

There was a terrible noise.
There was a terrible silence.



Ralith posted:

:shobon:

If no new issues arise in the next few days I think I'll post the download for general use.

And here we are!

https://ralith.com/votecount/votecount-0.3.1-win32-x86_64.zip

https://ralith.com/votecount/votecount-0.3.1-osx.dmg experimental

Loel fucked around with this message at 18:35 on Feb 24, 2016

hollylolly
Jun 5, 2009

Do you like superheroes? Check out my CYOA Mutants: Uprising

How about weird historical fiction? Try Vampires of the Caribbean

How difficult would it be to add the ability to edit a person's vote in the "count" tab after you scrape a thread? If there's a minor typo in someone's vote I'd love to just be able to fix it so it's calculated correctly.

Ralith
Jan 12, 2011

I see a ship in the harbor
I can and shall obey
But if it wasn't for your misfortune
I'd be a heavenly person today
As we discussed in IRC, you can currently accomplish that by copying the votes into a text file, editing the file, and then rerunning the count on the file instead of the thread.

It wouldn't be super hard to allow you to edit it in place, but I'm not going to implement a fully featured text editor, and by just copying the votes you can already use whatever editor you like, archive the data, pastebin it for auditing, etc. so I'm not sure it would be that useful a tweak. Thoughts?

hollylolly
Jun 5, 2009

Do you like superheroes? Check out my CYOA Mutants: Uprising

How about weird historical fiction? Try Vampires of the Caribbean

Ralith posted:

As we discussed in IRC, you can currently accomplish that by copying the votes into a text file, editing the file, and then rerunning the count on the file instead of the thread.

It wouldn't be super hard to allow you to edit it in place, but I'm not going to implement a fully featured text editor, and by just copying the votes you can already use whatever editor you like, archive the data, pastebin it for auditing, etc. so I'm not sure it would be that useful a tweak. Thoughts?

Yeah, copying it over into notepad worked easily enough that I don't think it's necessary.

hollylolly
Jun 5, 2009

Do you like superheroes? Check out my CYOA Mutants: Uprising

How about weird historical fiction? Try Vampires of the Caribbean

I've noticed that when people double space between numbers like this:

##vote
1. A

2. Z


that the scraper doesn't pick up the second vote. Can we adjust it so it will, or should I just remind people not to add too many spaces?

Adbot
ADBOT LOVES YOU

Ralith
Jan 12, 2011

I see a ship in the harbor
I can and shall obey
But if it wasn't for your misfortune
I'd be a heavenly person today
That would be easy enough to do. The trouble is, then it'll pick parse things like

##vote
1. A

also do a thing


as containing a vote of "do a thing" for question "also." Although, that won't affect accurate counting of the real questions, so maybe it shouldn't matter. How often do you see people making posts which would be sensitive to that?

I could also tighten the restrictions on what counts as a question; I'm not sure anyone's ever used non-numeric question names. Not sure how I feel about changing the interface like that.

  • Locked thread