Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which CardDefs.xml do you use? #4

Open
1576012404 opened this issue Jul 18, 2019 · 2 comments
Open

which CardDefs.xml do you use? #4

1576012404 opened this issue Jul 18, 2019 · 2 comments

Comments

@1576012404
Copy link

it seems that some cards in CardDefs.xml are not implemented in fireplace,so which vision of CardDefs.xml do you use?

the link:https://github.com/HearthSim/hsdata

@sirmammingtonham
Copy link
Owner

sirmammingtonham commented Jul 20, 2019

I used the standard CardDefs.xml, but I only trained with the core/basic card set. There's a function in gameUtils.py that allows you to exclude all cards in training except for a specified set

def isolateSet(self, filename='notbasicset', set='CardSet.CORE'):
# isolates the specified card set for exclusion in drafting
cards.db.initialize()
extraset = []
for index, card in cards.db.items():
if str(card.card_set) != set:
extraset.append(card.id)
with open(f'{filename}.data', 'wb') as filehandle:
# store the data as binary data stream
pickle.dump(extraset, filehandle)

so the non-implemented cards are ignored. This will be called if is_basic=True.
Hopefully fireplace is still being worked on so more cards can be implemented soon.

@1576012404
Copy link
Author

i run the code with default parameters,so it use the notbasicset files of yours. i can also finds some cards whose effects are not implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants