Giter VIP home page Giter VIP logo

dreamborn_to_draftmancer's Introduction

UPDATE: This README is out-of-date due to these changes: #1

I think I just created the fastest, easiest way to draft Lorcana online. If there is an easier or faster way to draft, please let me know at [email protected] !

A video tutorial on how to draft as either a non-host participant or a host: https://www.youtube.com/watch?v=lm1xPenIKQg

If you'd rather read:

In order to draft as a non-host participant, you only need to:

  1. Pick your cards using Draftmancer, then
  2. copy & paste into dreamborn.ink , from where you'll probably export to pixelborn.

The host(s) will need to:

  1. Import the draft list from dreamborn into Draftmancer:
    1. Export the draft list from dreamborn to clipboard,
    2. paste from clipboard into the bottom of a Draftmancer Custom Card List template,
    3. upload to Draftmancer as a Custom Card List, then
  2. host the draft in Draftmancer (see either the video tutorial above or 5:00-9:24 here: https://www.youtube.com/watch?v=dbYUgwbHwxU&t=745s&ab_channel=JankDiverGaming ).

Here is the template: https://github.com/ZacharyRSmith/dreamborn_to_draftmancer/blob/main/draftmancer_custom_card_list_template.txt

To import a drafted deck into dreamborn.ink:

  1. In Draftmancer, copy drafted deck to clipboard using 'Export > CARD NAMES'.
  2. In dreamborn.ink, go to 'Deck Builder',
  3. select 'Menu > Import',
  4. paste clipboard into import text field,
  5. (OPTIONALLY, to remove sideboard) remove the bottom half that is separated from the top half by an empty line (the bottom half is your 'sideboard'), then
  6. select 'Import'.

Details

Using lorcana-api.com data, each card is assigned an ink cost.

Potential Enhancements

Rarity and other data might be assignable with a one-line change to the python script that creates the template? If someone knows how Draftmancer expects rarity data, I or someone else can make that change then run the script to enhance the template.

How to support sealed?

To simplify for now, I'll assume the 12th, foil card is just another rare or higher card, and that packs have random color and ink costs (idk whether or not they do).

Change the template to have:

[RareOrHigherSlot(3)]
[UncommonSlot(3)]
[CommonSlot(6)]

Change the script to read in all 612 cards using https://dreamborn.ink/decks/Xk1wFdToEUoyeb1tvU6V . Using rarity data from lorcana-api.com , put card into appropriate slot section. Number of each card can be determined by script, but more likely you want to set Draftmancer's withReplacement to true such that Draftmancer has an unlimited supply of each card?

Specific sets can be selected by changing the script to filter cards by set using data from lorcana-api.com .

Testing

I tested this on all 612 cards using: https://dreamborn.ink/decks/Xk1wFdToEUoyeb1tvU6V (saved to all_cards.txt on 2024-03-25).

I successfully exported that into the template, uploaded to Draftmancer, drafted 24 cards, then imported to dreamborn.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.