Git Product home page Git Product logo

Comments (8)

solistice avatar solistice commented on May 18, 2024

Btw, I poked you on reddit, if you are interested ;)

from metastone.

webadict avatar webadict commented on May 18, 2024

Hey Solistice!

Do you mean a way to make cards, or the code that translates the cards?

from metastone.

webadict avatar webadict commented on May 18, 2024

The cards are using a JSON parser, since the cards themselves are in JSON format. You should be able to find something online that'll read JSON for your language fairly easily (A library or something.) JSON is fairly prominent for data storage types, so I'd be more surprised if you didn't find one.

The file you're looking for is called CardParsed.java, though.

from metastone.

solistice avatar solistice commented on May 18, 2024

I'm looking for an automatic way to create a json file for all the existing cards in the game, not a way to parse cards (I'm familiar with JSON). I'm looking for a way to generate the cards (to some extend, have some other ideas on how to code the triggers) found in cards//

from metastone.

webadict avatar webadict commented on May 18, 2024

There's a collection of text files for every card on HearthPwn or the wiki
or something like that. We don't have anything like that though. You would
have to take the text files and generate it from those. That'd be about the
only way I'd see it happening. It seems like a lot of work, but it might be
doable.
On Jan 6, 2016 11:23 AM, "Bart Cools" [email protected] wrote:

I'm looking for an automatic way to create a json file for all the
existing cards in the game, not a way to parse cards (I'm familiar with
JSON). I'm looking for a way to generate the cards (to some extend, have
some other ideas on how to code the triggers) found in cards//


Reply to this email directly or view it on GitHub
#65 (comment).

from metastone.

demilich1 avatar demilich1 commented on May 18, 2024

While it would be certainly possible to generate .json templates for all cards and fill in values like mana cost, rarity, attack/hp for minions, etc I think generating stuff like triggers or spells automatically is next to impossible, because the only information you have is the card text, which does not provide full information.

So just to be very clear: All card .json files in MetaStone were created manually. There is no magic, actually it was a lot of work. Especially when a new expansion is released and there are new mechanics.

from metastone.

solistice avatar solistice commented on May 18, 2024

Thank you, this is what I wanted to know! Even more praise to you for putting in the hard work!

On 06 Jan 2016, at 19:37, demilich1 [email protected] wrote:

While it would be certainly possible to generate .json templates for all cards and fill in values like mana cost, rarity, attack/hp for minions, etc I think generating stuff like triggers or spells automatically is next to impossible, because the only information you have is the card text, which does not provide full information.

So just to be very clear: All card .json files in MetaStone were created manually. There is no magic, actually it was a lot of work. Especially when a new expansion is released and there are new mechanics.


Reply to this email directly or view it on GitHub.

from metastone.

demilich1 avatar demilich1 commented on May 18, 2024

Closing this as the questions seems to be answered

from metastone.

Related Issues (20)

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.