Comments (8)
Btw, I poked you on reddit, if you are interested ;)
from metastone.
Hey Solistice!
Do you mean a way to make cards, or the code that translates the cards?
from metastone.
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.
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.
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.
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.
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.
Closing this as the questions seems to be answered
from metastone.
Related Issues (20)
- PutMinionOnBoardSpell HOT 2
- Trouble with a custom spell HOT 2
- Transform Specific Cards in Deck HOT 1
- How can I? HOT 4
- Attack Debuff? HOT 1
- Knights Of The Frozen Throne HOT 5
- Either/Or Spell Trouble
- How do I add Un'goro Cards HOT 1
- import tensorflow into the project
- running failed HOT 3
- When? HOT 53
- Is the website dead? HOT 8
- Error: Could not find or load main class net.demilich.metastone.MetaStone
- Source code of AI HOT 1
- Build failed using idea
- Point to Spellsource, the modern fork of metastone HOT 1
- Adding new json cards, nor deleting cards changes cards existing in simulator client HOT 1
- Build failed with an exception "Could not determine java version from '11.0.9.1'"
- "Error: Could not find or load main class net.demilich.metastone.MetaStone" HOT 1
- How can I add the ELEMENTAL race?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metastone.