Giter VIP home page Giter VIP logo

marvelsdb's Introduction

MarvelsDB

Very quick guide on how to install a local copy

This guide assumes you know how to use the command-line and that your machine has php 7.4 and mysql 8 installed.

  • install composer: https://getcomposer.org/download/
  • git clone the repo and cd to it
  • run composer install (at the end it will ask for the database configuration parameters)
  • if composer install fails with version issues, you may need to run composer self-update --1 to downgrade to composer version 1
  • run php bin/console doctrine:database:create to create the database.
  • run php bin/console doctrine:schema:create to create the database schema.
  • git clone the card data from https://github.com/zzorba/marvelsdb-json-data
  • run php bin/console app:import:std path-to-marvelsdb-json-data/ pointing to where you cloned the json data (can be a relative path)
  • run php bin/console server:run

Additional useful commands.

  • run composer install to rebuild minified JS files after making changes to the raw files.
  • run php bin/console doctrine:schema:update --dump-sql to view database schema changes.
  • run php bin/console doctrine:schema:update --force to execute database schema changes.

marvelsdb's People

Contributors

alberto-bottarini avatar cmaher avatar fafranco82 avatar freakmod avatar jordanweiler avatar kamalisk avatar s3rek avatar steverodrigue avatar toopick avatar zzorba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

marvelsdb's Issues

OCTGN Export not working

Hello, and thanks in advance for the work you have been doing.

I was wondering if the export functionality for OCTGN is working correctly: when exporting the following, I see that only Events are in the .o8d file: https://marvelcdb.com/decklist/view/21/energy-iron-man-1.0#

<deck game="a6d114c7-2e2a-4896-ad8c-0330605c90bf" sleeveid="0">
  <section name="Investigator" shared="False">
    <card qty="1" id="9780ba79-44e4-4530-b865-5983a60372b0">Iron Man</card>
    <card qty="1" id="">Iron Man</card>
  </section>
  <section name="Asset" shared="False">
  </section>
  <section name="Event" shared="False">
    <card qty="3" id="08234002-9dd8-4a63-b012-7a9647b49b8a">Repulsor Blast</card>
    <card qty="2" id="98a1d5d7-e576-4da3-8d13-82fbb2042bfc">Supersonic Punch</card>
    <card qty="3" id="8c071923-f2b1-44e9-a579-db84bb823cc0">For Justice!</card>
    <card qty="1" id="cef2d14c-8e58-48e3-9330-5342b583f532">Emergency</card>
    <card qty="3" id="270f6e5d-6331-4211-a3a1-d0bdcc9fa4e2">Haymaker</card>
  </section>
  <section name="Skill" shared="False">
  </section>
  <section name="Weakness" shared="False">
  </section>
<notes><![CDATA[]]></notes>
</deck>

I took this one as an example, but I also tried other decks and again only events are downloaded.

Am I missing something?

Cannot search for S.H.I.E.L.D. trait

The S.H.I.E.L.D. trait is not searchable, either through the drop down in the main card list or by k:S.H.I.E.L.D. in the card search.

(Side note: the help at the bottom of the search list has an example from AH which was rather confusing to me before I figured it out).

French version

I could help for a french version. I will start to create translations.

Resource count

Additional Resource Categories:

The current resource graph states how many resources are in a deck. I feel that a more telling graph would list quantities of what is printed on each card, such as, with Captain Marvel:

P   : 10
S   : 10
E   : 20
W   : 01 (Leadership: The Power of Leadership)

PP  : 01 (Basic: Strength)
SS  : 01 (Basic: Genius)
EE  : 01 (Basic: Energy)

EEE : 02 (Captain Marvel: Energy Absorption)

This helps people better understand the chances of drawing what is printed for a much more robust set of scenarios.

Include Hero Faction Count in Other Charts:

It would be helpful to show the number of Hero cards in each of the Resource Counts at the bottom of each bar in a different color, representing that this portion of the count is not removable.

It would be similarly helpful to show the number of hero cards in the Card Cost chart by adding a separate line, again since the Hero cards of these costs are not removable.

Search is broke.

Searching for decks containing Ms Marvel turns up zero results despite the fact there are decks that contain her. This should be fixed.

Rules page is out of date

The rules reference guide has received many updates and this has led to some confusion as some people are going based off the outdated rules hosted on the site. Why not just link to the official RRG?

API Decklist searches

I've been using the API to build & maintain the Android deckbuilder app and so far the APi has been great.

One highly requested feature (and one that will constantly requested by users going forward) is to be able to browse decklists via the API. There are 2 endpoints in the API for decklists, by id and by date, but they're not suitable for browsing.

My users would love to be able to browse a page like this https://marvelcdb.com/decklists via the API. The only option I have at the moment is to parse that website and deck url's.

I requested this for the ArkhamDB site too, but no movement there. I'm hoping this can at least be considered for MarvelCDB!

Draw Cards == Hand Size

Currently draw card implementation is a carry over from Netrunner. Please allow for numbers reflective of Marvel (e.g., 6).

Ideally based on hero/alter ego values, but whatever works.

Add modular key?

Hey there I am currently building an app that will randomly pick a villain and side scheme (modular) to play against. However there doesn't seem to be anything to set the modular side schemes apart from the others ie the hero ones. As it currently stands the app my tell the player to fight against ultron with "Generation why?" (Ms. Marvel's nemesis scheme) as the side scheme. Is there a way you could a modular key to the schemes with a value or true or false? or any other way?

card_set_type_name_code wrong on some schemes

Hey again,
I am looking at the green goblins Schemes and I was wondering if the following should be set to "villain" instead of "modular" as the are part of the green goblin/Norman Osborn 's set of cards and not their own set.

Goblin Reinforcements
Goblin Nation
Overrun
Collapsing Bridge
Oscorp Manufacturing
Payoff

Here is Rhino's side scheme Crowd Control with Norman Osborn's (Risky Business) side scheme Payoff both belong to a villain but one has card_set_type_name_code: "modular".
This is bringing all the side schemes from the "gob" pack when I sort the api.

Api get villains

Hello,

I'm creating a small web testing application to randomly choose which heroes and villains to play Marvel Champions LCG.

Why in the API request https://marvelcdb.com/api/public/cards/ the villains cards aren't included?
Can you show them or create an other endpoint for this cards?

Thank you.

Aspect Shapes (rather than all circles) for accessibility and printing

The colored aspect (and basic) icons should have a different shape in addition to color, rather than colored circles for each.

Shapes would allow people who are color blind to distinguish between the aspect types on the decklists.

Additionally, decklists printed in black & white are impossible to distinguish between aspect colors. Shapes would allow quicker deck building from black & white printouts.

Email registration does not send an email

Tried multiple times to register, never got a reply. Yup, checked SAM, filters etc. No joy.
Site looks great & I would love to contribute! So please look into this.

Thank you,

strgzrwag

Feature Request: Advanced Search - Keyword/Attribute

I was trying search for cards that had the "spy" attribute/keyword, but I didn't see an option. I think this would be a very nice feature to have. The ability to do an advanced search based on a keyword or card attribute would be critical to helping build decks more easily. If you add the option to search only the decks you own would be the cherry on top!

List of games

Allow to log list of games with heroes deck used, vilain with level and encounter set, and if win or lost

Magical Enhancements misnamed

Not sure where the data is stored or I'd send the PR myself but I noticed the card "Magical Enhancements" is misnamed as "Magic Enhancements." I'm happy to learn how to fish on this one and send the PR myself or just read the changeset if you link it here so that next time I can send a fix instead of just notifying you.

Offering the Default Premade Decklists

It would be good to have
an admin controlled section of decklists which state the Default decklists;
that is — the decklists which come with each Hero pack.

The 'Cards' section details each Hero pack, but (in this section)
• The quantity of cards in a Hero pack is less clear
• The cards in a Hero pack already released in previous packs are not shown.

Aspect cards do not state, to my knowledge,
the Hero pack in which they were purchased.

Thus, such a decklist would provide
• an inventory of exactly what one is purchasing before buying
• a decklist of a deck which has been (in theory) sufficiently playtested by the designers,
for those who separate the contents of the box and
want to recreate (or alter) the original provided deck.

Unable to search for decks

When I select Captain America’s shield it yields zero results even though there are decks posted for this hero. I also tried to select by class and same thing happens
7FC665E9-95B7-4999-90FE-0066A0E40906

Sorting "By Set, Then ____" sorts the sets alphabetically

Hello.

I see that sorting "By Set, Then Number" or "By Set, Then Name" sorts the sets alphabetically. On ThronesDB and on ArkhamDB the sets are ordered in a release order, which I believe is the most usefull one for people using organizers and adding cards to the organizer as they are released. In this case, however, Captain America is above the core set, for example.

API access

I am developing an OCTGN plugin for Marvel Champions and have it linking to the public api to allow users to build a deck quickly. I have requests from users to be able to pull their saved decks that aren’t public. Could I get in contact with someone to get an OAuth setup?

Account Register Not Working

When trying to register a new account, after you click the "register" button you are taken to a blank screen, the account registration process is not complete. Tried on multiple browsers with the same result.

Italian Version

Hey guys!
Whenever you're ready to implement other languages let me know, I'll work on the Italian version of the site like what we're doing with the Arkham Horror LCG :)

Cheers!
Bertrand

Account activation email not sending?

I've attempted to create accounts with two different email addresses and neither one has received the email with the account activation link. Thanks!

Unable to search Thor decks

Any cards from the Thor pack yield zero results even though there have been a decks published for Thor. Same scenario for issue with Captain America a while back. Thanks in advance.

Resource filters don't work

In the deckbuilding screen when I try to filter by any of the resource filters
rp – Physical
rm – Mental
re – Energy
rw – Wild
nothing happens, for example
rw:1
rp>0
other filters work, for example
o:1
h>0
If I try the same in the cardlist section it works correctly.
Thanks
[edit - to specify that this issue is in the deck building section]

Swagger / OpenAPI file

Hi! Thanks for your work in the repo, it has been very useful. I have been trying to look for it, but was not able to find anything. Do you have a Swagger or OpenAPI spec file to generate the API docs? If so, where can I find it?

2 attack event cards have incorrect traits

Heroic Strike from Captain america's hero set has the superpower trait and not the attack trait when the pictured card is the opposite.

Melee shows no traits but the actual card pictured is attack traited.

Aspect change issue

When you pick card from one aspect, then remove it. Aspect stays and you have to create (or refresh page) from start.

Deck Card Type Ordering

When decks are ordered by Type (current default), the Type order is Upgrade, Ally, Support, Event and Resource.
FFG usually order the types alphabetically (in Hero packs) in the order Ally, Event, Resource, Support and Upgrade.
This should be the default ordering for Decks or at least an option.
This will help users that have their cards ordered by type or card number.

Corrupted Octgn files

Hi All,

When I try to load up a deck file to Octgn, I get an error that say the .o8d file is corrupt. Freshly exported from the deckbuilder. I am not savvy enough with Octgn to be much use as a trouble shooter. :(

J

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.