ScumBait

This forum is for discussion related to the game.
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #2 (isolation #0) » Thu May 08, 2008 1:20 pm

Post by Adel »

thanks weilawei!

now, before I download it and run it, could someone with the proper skill set (and who isn't a "townsperson") please vet the source for security? I don't feel like getting pwned today.
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #9 (isolation #1) » Fri May 09, 2008 3:39 pm

Post by Adel »

check out this thread for some functions some players would like to see in this kind of tool:

http://www.mafiascum.net/forum/viewtopic.php?t=7863

I think trying to code a set-up balancing equation is a tar pit which is best avoided.

some highlights:
- Post count by player
-Word usage tallies by player
-Voting records/timeline
*how many times player x quoted player y
*how many words outside of quotes player x's posts average
*graph of activity level (words, posts, votes, citations by other players) by player, with post number serving as the unit of time

there could be a interface that would let you easily enter a pre-defined evaluation of each post. We could probably generate a pretty definitive list of possible casual relationship between player. It would be a trivial matter to display posts one at a time in a display that also features the radial button for defining those relations ships... each button could open a slider for inputting a % chance guesstimate.
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #10 (isolation #2) » Fri May 09, 2008 3:43 pm

Post by Adel »

I have python 2.5 installed under XP (C:\Python25).

Which folders do I place the ScumBait, BeautifulSoup and SimpleJSONin files in? What do I type into the command line for these files to load?
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #12 (isolation #3) » Fri May 09, 2008 3:54 pm

Post by Adel »

as for GUI stuff, this is the kind of visual products I produce by manually collecting information and then assembling via graphics software. A program that would automate this process could actually lead to some very strong mafia play based on quantifiable evidence:

http://www.mafiascum.net/wiki/images/f/ ... _whome.gif
http://www.mafiascum.net/wiki/images/d/ ... ravhen.gif
http://www.mafiascum.net/wiki/images/f/ ... 5vd2d1.gif
http://www.mafiascum.net/wiki/images/a/ ... player.gif
http://www.mafiascum.net/wiki/images/3/ ... player.gif
http://www.mafiascum.net/wiki/images/c/ ... yer515.gif

Doing these is so time consuming that I don't, even though I've had some great results from this approach (see the link in my sig for an example)
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #15 (isolation #4) » Fri May 09, 2008 4:12 pm

Post by Adel »

Code: Select all

c:\python25\python.exe c:\code\scumbait\scumbait.py -g 7270 -m Adel -tfl -p all > c:\my_log.txt

produced a text file named "my_log" only containing
Option 'p' is not recognized.
For more information see -h (--help).

what did I do wrong?

http://www.mafiascum.net/forum/viewtopic.php?t=7270 is the game I was trying to grab information from.
Last edited by Adel on Fri May 09, 2008 4:17 pm, edited 1 time in total.
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #16 (isolation #5) » Fri May 09, 2008 4:16 pm

Post by Adel »

weilawei wrote: NetworkX looks like a great graph library for Python, simple to get started with. I might consider support for graphs before the GUI, because the GUI is really just going to be a wrapper in many ways. Image output is a more core functionality.
NetworkX does look great, and I really appreciate the time you've put into it so far! I was just sharing ideas. I haven't written a line of code in over 14 years, so I certainly can't do what you can do.
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #18 (isolation #6) » Fri May 09, 2008 4:32 pm

Post by Adel »

Image
is from the NetworkX gallery.

There are all kinds of variables I would love to be able to assign for the circle diameter, line width, circle color, and line color!
Last edited by Adel on Fri May 09, 2008 4:33 pm, edited 1 time in total.
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #19 (isolation #7) » Fri May 09, 2008 4:33 pm

Post by Adel »

weilawei wrote:The 0.1 release didn't have support for the -p switch.
damnit! I didn't DL the new version. I know better... sorry about that.

I downloaded the new version, and I got a good dump. I'll comb through it tomorrow for accuracy. Thanks for walking me through it this far.

You may have just saved me 10 hours a week.
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #20 (isolation #8) » Fri May 09, 2008 4:56 pm

Post by Adel »

issue 1:

Code: Select all

c:\python25\python.exe c:\code\scumbait\scumbait.py -g 7703 -m Mr. Flay -tfl
 -p all > c:\testaab.txt
bad dump

Code: Select all

c:\python25\python.exe c:\code\scumbait\scumbait.py -g 8222 -m Mr Stoofer -t
fl -p all > c:\testaac.txt
bad dump

Code: Select all

c:\python25\python.exe c:\code\scumbait\scumbait.py -g 8286 -m EmpTyger -tfl
 -p all > c:\testaaf.txt
good dump

I think the "Mr. Flay" and "Mr. Stoofer" fail as moderator names because of the space.

~~~

issue two: some player post stuff like "
vote:we end this day allready
which your script interpets as a vote for "we".

~~~

issue three: some players post "
vote:WW
" instead of "
vote:WildWest
"

~~~
general feedback:


in the log summary it would be useful if the post number was listed for each line.
example:

Code: Select all

elvis casts first vote for rabbit.  (post 4)
carrot unvotes for elf leaving 0 vote(s). (post 9)
carrot casts first vote for elf. (post 9)

instead of

Code: Select all

elvis casts first vote for rabbit. 
carrot unvotes for elf leaving 0 vote(s).
carrot casts first vote for elf.
Last edited by Adel on Fri May 09, 2008 5:08 pm, edited 1 time in total.
User avatar
Adel
Adel
Crystalline Logick
User avatar
User avatar
Adel
Crystalline Logick
Crystalline Logick
Posts: 6743
Joined: May 23, 2007
Location: Central Oregon / High Desert

Post Post #22 (isolation #9) » Fri May 09, 2008 5:14 pm

Post by Adel »

Kills are currently not accounted for. This makes it harder to use for entire games, thus I'd love suggestions on what a reasonable format to expect for a kill is
well, when >50% of living player vote for someone that results in a lynch, but some games have deadlines with other factors that come into play.

Players who die during the night are often listed in the second post by the moderator after a player got enough votes to be lynched.
Post Reply

Return to “Mafia Discussion”