Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: [1]

Author Topic: black market deck helper  (Read 3992 times)

0 Members and 1 Guest are viewing this topic.

rrwoods

  • Navigator
  • ****
  • Offline Offline
  • Posts: 72
  • Respect: +32
    • View Profile
black market deck helper
« on: January 06, 2014, 09:43:12 pm »
+2

This is written in Python 3; you'll need to download and install it to use.

I've wanted a Black Market deck solution for a little while, specifically one that lets me read all the cards at once without having to pull them out of the box.  My randomizer of choice (D-Vault) will run the deck, but it won't tell me special setup or let me read the cards all at once.  So I whipped this thing up.

Enjoy!

==

Notes:

allcards.txt is grouped by expansion.  If your cards are grouped differently, you should rearrange the lines in this file.  Instead of lines naming expansions (;Dominion ;Intrigue ...) you might say what row of your box you find the card in (;Row 1 ;Row 2 ...) or some such thing.  You can add fan cards by adding lines to this file; the format of each line is Name|Cost|Type|Text -- replace line breaks in Text with / and replace dividing lines with \.

The version of options.txt included here has all options turned on so you can see an example of each (it doesn't support comments in any way, and neither does allcards.txt).  If you just want to use all cards not explicitly excluded, delete the "max" line entirely.  Add an "exclude" line for each card in your kingdom, and for kingdoms of other games you're running out of the same set.  If you remove the "no bane" option, when Young Witch is in the BM deck, the script will tell you which Bane card to use (it will only select from non-excluded cards that are in allcards.txt).
Logged

sudgy

  • Cartographer
  • *****
  • Offline Offline
  • Posts: 3431
  • Shuffle iT Username: sudgy
  • It's pronounced "SOO-jee"
  • Respect: +2707
    • View Profile
Re: black market deck helper
« Reply #1 on: January 06, 2014, 10:21:30 pm »
0

Uh...  Where's the link to the thingy itself?
Logged
If you're wondering what my avatar is, watch this.

Check out my logic puzzle blog!

   Quote from: sudgy on June 31, 2011, 11:47:46 pm

heron

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1055
  • Shuffle iT Username: heron
  • Respect: +1184
    • View Profile
Re: black market deck helper
« Reply #2 on: January 06, 2014, 10:38:43 pm »
0

Click view source code and you'll find the attachments around line 230.
Logged

LastFootnote

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7495
  • Shuffle iT Username: LastFootnote
  • Respect: +10722
    • View Profile
Re: black market deck helper
« Reply #3 on: January 06, 2014, 10:45:47 pm »
+2

Why the hell doesn't Simple Machines have an attachment system that works?
Logged

rrwoods

  • Navigator
  • ****
  • Offline Offline
  • Posts: 72
  • Respect: +32
    • View Profile
Re: black market deck helper
« Reply #4 on: January 06, 2014, 11:14:38 pm »
0

... I see a link labeled "blackmarket.py" under a dividing line after the post?
Logged

Tables

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2817
  • Build more Bridges in the King's Court!
  • Respect: +3349
    • View Profile
Re: black market deck helper
« Reply #5 on: January 07, 2014, 07:52:04 am »
0

... I see a link labeled "blackmarket.py" under a dividing line after the post?

It's nothing to do with you, just the forum software doesn't show attachments properly for many browsers (I think Firefox and Chrome being the two big ones). You can get them to appear by making the post scroll right, but that's not even easy.
Logged
...spin-offs are still better for all of the previously cited reasons.
But not strictly better, because the spinoff can have a different cost than the expansion.

theory

  • Administrator
  • *****
  • Offline Offline
  • Posts: 3603
  • Respect: +6125
    • View Profile
    • Dominion Strategy
Re: black market deck helper
« Reply #6 on: January 07, 2014, 10:25:19 am »
+1

It is rather frustrating because I can't reproduce this error, and I use Firefox and Chrome.  Could it be adblockers or something like that?
Logged

Grujah

  • Mountebank
  • *****
  • Offline Offline
  • Posts: 2237
  • Respect: +1177
    • View Profile
Re: black market deck helper
« Reply #7 on: January 07, 2014, 11:24:18 am »
0

It is rather frustrating because I can't reproduce this error, and I use Firefox and Chrome.  Could it be adblockers or something like that?

Nope, no addons.
Logged

theory

  • Administrator
  • *****
  • Offline Offline
  • Posts: 3603
  • Respect: +6125
    • View Profile
    • Dominion Strategy
Re: black market deck helper
« Reply #8 on: January 07, 2014, 11:28:20 am »
0

Are there any errors in the console?  Ctrl Shift K in Firefox and something else in Chrome, I forget.
Logged

LastFootnote

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7495
  • Shuffle iT Username: LastFootnote
  • Respect: +10722
    • View Profile
Re: black market deck helper
« Reply #9 on: January 07, 2014, 11:34:22 am »
0

Are there any errors in the console?  Ctrl Shift K in Firefox and something else in Chrome, I forget.

Nothing on the console in Chrome. The attachment div just renders way off the right side of the screen for some bizarre reason. I can't find any CSS that should make it do that, although when I add "display: inline;" to the div's styles, it renders the attachment links at the top of the post.
Logged

theory

  • Administrator
  • *****
  • Offline Offline
  • Posts: 3603
  • Respect: +6125
    • View Profile
    • Dominion Strategy
Re: black market deck helper
« Reply #10 on: January 07, 2014, 11:54:56 am »
+3

This appears it might help: http://www.simplemachines.org/community/index.php?topic=292952.msg1932848#msg1932848

I'll incorporate the change later tonight when I get home.
Logged

LastFootnote

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7495
  • Shuffle iT Username: LastFootnote
  • Respect: +10722
    • View Profile
Re: black market deck helper
« Reply #11 on: January 10, 2014, 10:21:57 am »
0

This appears it might help: http://www.simplemachines.org/community/index.php?topic=292952.msg1932848#msg1932848

I'll incorporate the change later tonight when I get home.

Not to hassle you, Theory, but did you get time to try that change? I still can't see any attachments except the ones in my own posts.
Logged

theory

  • Administrator
  • *****
  • Offline Offline
  • Posts: 3603
  • Respect: +6125
    • View Profile
    • Dominion Strategy
Re: black market deck helper
« Reply #12 on: January 10, 2014, 10:35:58 am »
+2

It looks like it's fixed!  Hooray!  Please let me know if you still can't see it.
Logged

sudgy

  • Cartographer
  • *****
  • Offline Offline
  • Posts: 3431
  • Shuffle iT Username: sudgy
  • It's pronounced "SOO-jee"
  • Respect: +2707
    • View Profile
Re: black market deck helper
« Reply #13 on: January 10, 2014, 12:46:50 pm »
0

It looks like it's fixed!  Hooray!  Please let me know if you still can't see it.

I still can't see it...
Logged
If you're wondering what my avatar is, watch this.

Check out my logic puzzle blog!

   Quote from: sudgy on June 31, 2011, 11:47:46 pm

florrat

  • Minion
  • *****
  • Offline Offline
  • Posts: 542
  • Shuffle iT Username: florrat
  • Respect: +748
    • View Profile
Re: black market deck helper
« Reply #14 on: January 10, 2014, 12:58:10 pm »
0

Try to refresh with Ctrl+F5. That did the trick for me. Yay!
Logged

KingZog3

  • Cartographer
  • *****
  • Offline Offline
  • Posts: 3163
  • Respect: +1380
    • View Profile
Re: black market deck helper
« Reply #15 on: January 10, 2014, 01:17:31 pm »
0

I'm using Chrome and I can see the attachments. I didn't used to be able to see attachments, it looks like this is fixed.
Logged

rrwoods

  • Navigator
  • ****
  • Offline Offline
  • Posts: 72
  • Respect: +32
    • View Profile
Re: black market deck helper
« Reply #16 on: January 10, 2014, 04:41:38 pm »
+2

Clearly I should have zipped these files together... you need all three and I see different numbers of downloads :-P
Logged
Pages: [1]
 

Page created in 1.758 seconds with 21 queries.