Code Monkey home page Code Monkey logo

swdestinydb's Introduction

SWDestinyDB

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 and mysql installed.

  • install composer: https://getcomposer.org/download/
  • install npm: https://www.npmjs.com/
  • clone the repo somewhere
  • cd to it
  • run npm install
  • run composer install (at the end it will ask for the database configuration parameters).
  • run php app/console doctrine:database:create
  • run php app/console doctrine:schema:create
  • run php app/console app:import:std ../swdestinydb-json-data or whatever the path to your SWDestinyDB JSON data repository is
  • run php app/console app:import:trans ../swdestinydb-json-data if you want to import the translations
  • run php app/console server:run

Setup an admin account

  • register
  • make sure your account is enabled (or run php app/console fos:user:activate <username>)
  • run php app/console fos:user:promote --super <username>

Translating the site

The string literals of this site are hosted in Loco. If you want to translate the site, please contact project administrator via mail ([email protected]), asking for an invitation to the translation platform providing full name, an email and the language you are willing to translate into.

For the card data info, there is another project: swdestinydb-json-data. You can follow the instructions stated there to translate cards into the language you prefer.

swdestinydb's People

Contributors

alsciende avatar dependabot[bot] avatar fafranco82 avatar gafblizzard avatar jlannoy avatar joemasilotti avatar mlogie avatar siema avatar stopfstedt avatar ystros 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  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swdestinydb's Issues

Error when importing data

When I tried recreating local environment from scratch, after merging recent commits, I keep getting this error:

  [Exception]
  Missing key [cgdb_id_start] in {"code":"AW","date_release":"2015-12-01","name":"Awakenings","position":1,"size":174}

Full log: https://pastebin.com/fvT9kvZ5

Improve button state color

From Juan Francisco Chico Moreno via mail:

Other thing that I think that can improve the user experience is with the attribute focus of the buttons. When one button is pushed it appears shadowed as if it was pushed, it doesn't matter if it is active or not (you have to click on a blank area to see if it is pushed). I think it is better to not have any effect at all, or at least a subtle one.

Error when trying to edit profile in Polish

This one is a kind of multi-issue, which I was not sure about how to qualify.
First of all, in production, with Polish language on, I'm getting 500 when trying to edit my user profile. Not sure if related, but with Spanish and French, it works, but is still in English.

In my local instance however, I can't enter this panel at all. In any language. I'm getting this error every time:
Variable "factions" does not exist in AppBundle:User:profile_edit.html.twig at line 68
Stacktrace: https://pastebin.com/1ggTDfHs
After opening the file in question, it looks like all strings are hardcoded. I'm not a php expert enough to check why factions are empty though...

Deckbuilder -> View/Print/Download/Export: Include Card Numbers

Summary

When viewing, exporting, printing, or downloading a deck the card number is not displayed.

Expected Outcome

Card number is displayed alongside card name. This is extremely useful for locating a card in a physically sorted collection.

Relates to #23, but this is more expansive.

Deckbuilder: Cannot Select Elite/2-Dice Finn

Summary

  • When creating a deck user is unable to add the Elite/2-Dice variation of Finn.

Steps to Reproduce

  1. Add two Finn cards to collection
  2. Create Hero deck
  3. Click to add "2 (dice)/Elite" Finn to deck.
  4. Observe that non-Elite/1-Dice version is added.

Link collections across accounts

Unlike with LCGs, with the CCG model, I know there are many people who simply might not be able to pull all the cards they want to build with. A common solution for this is to pool collections between friends.

It would be amazing if swdb allowed this too - something like a backend option to say "Link Collections with ________". Once the other user agrees, the collections should appear merged in the building/collection views (optimally with a column designating whose collection the card is found in).

Feature Request: Default colour filtering by selected heroes

Currently by default when creating a new deck, cards of all colours are shown.

Instead, when I create a deck with only blue characters, I would like to see only blue and neutral cards defaulted in the view (similar to neutral and hero/villain being default toggled for appropriate new decks)

Downloading Elements

Two related issues:

  1. After building a decklist, I cannot export the list to a textfile. If I go "Downloading -> Text File", I reliably (since I started testing the feature a week or two ago) get the following:

screen shot 2016-12-10 at 09 25 43

  1. Once file export works, it would be fantastic if we could have similar functionality for the "My Collection" view (ideally exporting the data to a CSV file, or at least a delimited text file), probably listed as a function under "Options". The reason I ask is because In order to share my collection with a friend, we were hoping to be able to export it from swdb, then just copy and paste the text file to Google Sheets. Unfortunately, if we can't download the data it makes this much more difficult!

Trying to add export to TableTop Simulator

I am working on an export to table top simulator. I am not familiar with the "twigs" and I am finding myself doing an ad-hoc JSON build inside of a twigs file (this seems to be how octgon builds their XML).
Additionally, there is data that I need to add in order to link this to the TTS version of Destiny. All of the cards have a different ID and an imageURL.
What is the best way to cover these two things:

  1. building a JSON file, is it file to just hack it out in the twig?
  2. Adding data to the system? How do we go about that at this point?

Translation script doesn't create all .twig files for localization

After seemingly finishing Polish translation I've noticed that some subpages crash (500) with Polish language on. When starting a debug instance it turns out that the command in README
php app/console translation:extract --config=AppBundle <locale>
Doesn't create all .twig files.

Example error after trying "My decks":
Unable to find template "AppBundle:Builder:no-decks-text.pl.html.twig" (looked into: /home/siema/projects/php/swdestinydb/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form) in AppBundle:Builder:no-decks.html.twig at line 7.
Stacktrace: https://pastebin.com/1nUV6AmV

Indeed, there is no such file: https://pastebin.com/a9PawceM
It works after copying the English one, but I think those texts should be localized like the others.

And I'm not sure if it's related (because there is no error), but some strings aren't included in the translation as well:
swddb1
swddb2
swddb3
Maybe some more. I'm 100% sure those strings weren't available for translation in /_trans panel.
The same applies to other translations as well (in Spanish version those labels are in English as well)

Text File Download on SocialController

When I am running locally, clean install, the text file download from Social Controller throws this error. Variable "factionNames" does not exist in AppBundle:Export:plain.txt.twig at line 4

It seems to work on the production website. Can anyone else recreate this error?

Install guide

Just wondering if there might be a more indepth install guide for a local copy at any time?

My Collection: Option to Exclude Unowned Cards

Summary

When viewing "My Collection" it would be helpful to include an option to not display unowned cards.

Expected Outcome

When "Show Owned Cards" only option is selected, "My Collection" list only displays items with an "owned" value of 1 or more.

This would be helpful for quickly displaying what one owns.

Collection enhancements

While I like the idea of the collection manager, limitations in the implementation make it nearly useless for me right now. Some suggestions to improve it:

  • Allow decks to be marked as "Active", and reduce collection counts by active decks. Reasoning: I have a large collection, and maintain multiple decks. At the moment, the entire collection manager comes down to "is >= 2" for each card.
  • Remember settings for display. Reasoning: Because the collection manager is useless to me, I have to change the "Show only owned cards" because there was no point to putting in my collection. I have to do this for every single deck.
  • Make the warning icon optional. Reasoning: Even with the "Show only owned" turned off, you flag every. single. card. in. my. deck. This needs to be an option.

Nice builder overall, but hope we can get some improvement to the collections soon, because at the moment it's just in the way.

First Order Stormtrooper

Hello,
I found another error. The "First Order Stormtrooper" shows a special die side, but in fact it has two "blank" sides.
//Jon

3rd party viewing of Destiny Collections

The collections functionality provided by Destiny is very useful for tracking your own collection, however it would be very useful for trading purposes if I could share my collection with my friends/local player base. Obviously this should be opt in, but it would save a lot of time when asking who has a given card. Further enhancements could include creating user groups, where players can all share their cardsets.

Note this is functionally different to #20 I'm talking about letting other people see your own collection

Sort by Owned in Collection View does not work

Tried to sort my collection by the "Owned" column (so the cards that I have most of would filter to the top or bottom) but it doesn't trigger. This makes sense for complex columns (like Die), but I feel like Owned should be sortable.

importing application-data fails on cards

I'm receiving the following errors when running php app/console app:import:std ../swdestinydb-json-data.

[Doctrine\DBAL\Exception\DriverException]                                    
  An exception occurred while executing 'INSERT INTO side (value, modifier, c  
  ost, date_creation, date_update, card_id, type_id) VALUES (?, ?, ?, ?, ?, ?  
  , ?)' with params ["1", 0, "", "2016-11-22 20:59:54", "2016-11-22 20:59:54"  
  , 1, 7]:                                                                     
  SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column  
   'cost' at row 1  
[Doctrine\DBAL\Exception\DriverException]                                                                                                                                    
  An exception occurred while executing 'INSERT INTO side (value, modifier, cost, date_creation, date_update, card_id, type_id) VALUES (?, ?, ?, ?, ?, ?, ?)' with params [""  
  , 0, 0, "2016-11-22 21:01:50", "2016-11-22 21:01:50", 175, 1]:                                                                                                               
  SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'value' at row 1

Bug: Compare decks function leads to error page.

When trying to use "Compare Decks" feature, instead of actually seeing a diff of the two decks, I get redirected to an error page.

For example, with two decks selected:

2016-11-21 1

Click "Compare Decks" brings me to a 505 error:

2016-11-21

Include Card Number on Printable Layout

I have been sorting my cards and dice in numerical order and it would be great to have the Card/Dice number on the print page of SWdestinyDB

Also, it would be nice to have the Card Type Graph and Card Cost Graph included (maybe option) in the print out.

Deckbuilder: Points/Cost Column Improperly Sorted

Summary

  • The Points/Cost column is sorted as if it was a string, rather than numerically.

Expected Outcome

  • The column is sorted numerically, so that values such as "10/14" appear after single-digit values.

Steps to Reproduce

  1. Navigate to Deckbuilder
  2. Click "P./C." column header
  3. Observe that items are not sorted numerically

swdestiny-collection-pcsort

Prereqs

  • User is logged in and has items in collection

Polish translation

I'd like to help with getting Polish translation up and running :)
I've read #18 about what has to be done, and from what I see, I can start working on cards right away, but site translation needs a tiny bit of preparations first, right?

Filters should also return counts

When you filter your cards (e.g., only view Hero and Neutrals), it would be great if either at the top or bottom of the page it said how many cards are currently viewed (either out of the total pool or your collection).

For example, maybe I have 100 cards in my collection. I filter for Villain and Neutrals, it would be great if swdb told me: Showing 65/100 cards. This would be useful to quickly see how balanced a collection is, in terms of card quantity.

Slow Performance Impairs Users' Experience

Summary

swdestinydb.com frequently experiences performance issues that affect the user experience. Site frequently performs operations much more slowly than user expectations (+5 seconds).

Expected Outcome

Serverside operations consistently complete in a reasonable time (sub- 1 second).

Unable to clone decks

I attempted to clone my first deck and I kept getting an "Unable to handle this request" error.

i cannot add cards to deck

after picking side im into deck editor. then whenever i pick a card from a drop down search (like a first order storm trooper) i got quantity of 0 of it to add. im pretty familiar with netrunnerdb, so this is some kind of odd behaviour just in this version - not user bug id say ;)

May Be an Issue with TTS Export.

I am not sure how to incorporate this code in the system to apply CardGUID.
bin2hex(openssl_random_pseudo_bytes(3))

I think we need to have a 6 digit alphanumerical number for each card. There is no equivalent in twig without writing some weird loop every time you want it, I had considered just making an array of 40 GUIDs and passing them into the twig, then just pulling one off every time we need one.

Any ideas?

Need italian traslation?

Hi fafranco and all SWDdb staff.
I'd like to offer my help for an italian traslation of the card db. I'm not used to GitHub, but i know something about programming (able in basic Java, some html and so on). I think i can manage with some tips of yours. I read some topics about translation in other languages and learned that you are editing some json files. Is it that simple or else?

Kylo Ren

The health of Kylo Ren is listed as 7, but it should be 11.

//Jon

Sign-in errors

Something seems to be wrong with whatever is keeping track of sessions. Despite signing in correctly, I am redirected to the homepage where the site does not recognize me as being signed in. If I use a ad-blocker, this happens less often. However, if I use an ad-blocker, occasionally I will receive a bad CSRF token error. Whatever is causing these errors seems to be the reason why if I try to edit/create a decklist the app will ask me to sign in - even though I've already signed in and the profile dropdown in the nav recognizes me as being signed in.

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.