Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 5 6 [7] 8 9 ... 12

Author Topic: Lurker Tracker - Web Edition  (Read 21991 times)

Darvi

  • Bay Watcher
  • <Cript> Darvi is my wifi.
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #90 on: August 10, 2011, 02:50:18 pm »

Non-player thingy as well as multiple mods and dead-tracker would be nice to have back. Maybe even a counter that says how and when everybody died.

Like

Player - Cause of death

bdthemag | lynched D1
webadict | killed N1
Darvi | killed D2

Something like that.
Logged

Think0028

  • Bay Watcher
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #91 on: August 10, 2011, 03:23:38 pm »

? LNCP, I haven't touched it inbetween your post and Web's post.

Darvi, the system supports both right now, albeit in a undocumented way. In replacements, have someone replaced by Moderator to mark them as another mod. For dead people, have them replaced with Dead: (descriptive text here).
Logged
If it scares people into posting, then yes.

If they end up lynched because they didn't post, oh well. Too bad for them. Maybe they should've tried posting.
Web-based Lurker Tracker for Mafia

Darvi

  • Bay Watcher
  • <Cript> Darvi is my wifi.
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #92 on: August 10, 2011, 03:24:29 pm »

That's kinda laaaaazy :/
Logged

lordnincompoop

  • Bay Watcher
  • Allusionist
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #93 on: August 10, 2011, 04:28:15 pm »

? LNCP, I haven't touched it inbetween your post and Web's post.

Darvi, the system supports both right now, albeit in a undocumented way. In replacements, have someone replaced by Moderator to mark them as another mod. For dead people, have them replaced with Dead: (descriptive text here).

Huh. I must have seen it before you revised it or something, because I swear I just saw the old layout with a quote requirement in it.
Logged

Think0028

  • Bay Watcher
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #94 on: August 10, 2011, 05:03:12 pm »

You might've seen it right when I was in the middle of debugging something. I can neither confirm nor deny that I push all my changes to the live version immediately for testing.
Logged
If it scares people into posting, then yes.

If they end up lynched because they didn't post, oh well. Too bad for them. Maybe they should've tried posting.
Web-based Lurker Tracker for Mafia

lordnincompoop

  • Bay Watcher
  • Allusionist
    • View Profile
Logged

Think0028

  • Bay Watcher
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #96 on: August 17, 2011, 03:20:36 pm »

... Damn it all, I had fixed that bug, but I never uploaded the fix for it. Doing that now.
Logged
If it scares people into posting, then yes.

If they end up lynched because they didn't post, oh well. Too bad for them. Maybe they should've tried posting.
Web-based Lurker Tracker for Mafia

lordnincompoop

  • Bay Watcher
  • Allusionist
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #97 on: August 19, 2011, 07:10:49 am »

... Damn it all, I had fixed that bug, but I never uploaded the fix for it. Doing that now.

Nope, still not fixed.
Logged

webadict

  • Bay Watcher
  • Former King of the Mafia
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #98 on: August 19, 2011, 07:26:37 am »

... Damn it all, I had fixed that bug, but I never uploaded the fix for it. Doing that now.

Nope, still not fixed.
You forgot an & in there Think, after postStart and before url.
Logged

Dariush

  • Bay Watcher
  • I don't think I !!am!!, therefore I !!am!! not
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #99 on: August 27, 2011, 08:23:25 am »

Code: [Select]
<type 'exceptions.ValueError'> Python 2.5.2: /usr/bin/python
Sat Aug 27 06:22:40 2011

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
 /home/bnormoyle/think0028.com/lurkertracker.py in ()
  216 postDict = {}
  217 timeDict = {}
  218 pages = getPages(url)
  219 title = pages[1]
  220 pages = pages[0]
pages undefined, getPages = <function getPages at 0x91eed8>, url = 'http://www.bay12forums.com/smf/index.php?topic=92017'
 /home/bnormoyle/think0028.com/lurkertracker.py in getPages(url='http://www.bay12forums.com/smf/index.php?topic=92017')
  105     title = titletext[:titletext.rindex('&nbsp;')]
  106     text = text[:text.index('</div>')]
  107     replies = text[text.rindex('.')+1:text.rindex('"')]
  108     replies = int(replies)
  109     i = 0
replies undefined, text = 'ong>1</strong>] ', text.rindex = <built-in method rindex of str object at 0x921ce0>

<type 'exceptions.ValueError'>: substring not found
      args = ('substring not found',)
      message = 'substring not found'

It looks like LT doesn't support threads without replies. :(

webadict

  • Bay Watcher
  • Former King of the Mafia
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #100 on: August 27, 2011, 08:44:34 am »

Code: [Select]
<type 'exceptions.ValueError'> Python 2.5.2: /usr/bin/python
Sat Aug 27 06:22:40 2011

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
 /home/bnormoyle/think0028.com/lurkertracker.py in ()
  216 postDict = {}
  217 timeDict = {}
  218 pages = getPages(url)
  219 title = pages[1]
  220 pages = pages[0]
pages undefined, getPages = <function getPages at 0x91eed8>, url = 'http://www.bay12forums.com/smf/index.php?topic=92017'
 /home/bnormoyle/think0028.com/lurkertracker.py in getPages(url='http://www.bay12forums.com/smf/index.php?topic=92017')
  105     title = titletext[:titletext.rindex('&nbsp;')]
  106     text = text[:text.index('</div>')]
  107     replies = text[text.rindex('.')+1:text.rindex('"')]
  108     replies = int(replies)
  109     i = 0
replies undefined, text = 'ong>1</strong>] ', text.rindex = <built-in method rindex of str object at 0x921ce0>

<type 'exceptions.ValueError'>: substring not found
      args = ('substring not found',)
      message = 'substring not found'

It looks like LT doesn't support threads without replies. :(
... Why would it need to? :P

Not that it isn't an easy fix.
Logged

Think0028

  • Bay Watcher
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #101 on: August 27, 2011, 06:36:21 pm »

That's actually going to be mildly annoying. I'll have a fix up soon. It's actually a bug as long as the thread is one page long.
« Last Edit: August 27, 2011, 06:37:58 pm by Think0028 »
Logged
If it scares people into posting, then yes.

If they end up lynched because they didn't post, oh well. Too bad for them. Maybe they should've tried posting.
Web-based Lurker Tracker for Mafia

Think0028

  • Bay Watcher
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #102 on: August 27, 2011, 06:42:57 pm »

Bug fixed. And Dariush, it returns the last continuous piece of red text, so it still holds multivotes if you just do Vote 1, Vote 2, Vote 3.


Fun fact: I was too lazy to actually figure out how to properly parse the text for 1 page, so I just threw the code in a try-except block and hoped for the best.
« Last Edit: August 27, 2011, 06:44:52 pm by Think0028 »
Logged
If it scares people into posting, then yes.

If they end up lynched because they didn't post, oh well. Too bad for them. Maybe they should've tried posting.
Web-based Lurker Tracker for Mafia

Dariush

  • Bay Watcher
  • I don't think I !!am!!, therefore I !!am!! not
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #103 on: August 28, 2011, 03:54:13 am »

Fun fact: I was too lazy to actually figure out how to properly parse the text for 1 page, so I just threw the code in a try-except block and hoped for the best.
You lazy hacker. :(

webadict

  • Bay Watcher
  • Former King of the Mafia
    • View Profile
Re: Lurker Tracker - Web Edition
« Reply #104 on: August 28, 2011, 10:00:44 am »

Laziness is the way to go. I don't even bother with try.
Logged
Pages: 1 ... 5 6 [7] 8 9 ... 12