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

Download Deck in OCTGN format #32

Closed
sacrelicious2 opened this issue Dec 14, 2016 · 6 comments
Closed

Download Deck in OCTGN format #32

sacrelicious2 opened this issue Dec 14, 2016 · 6 comments

Comments

@sacrelicious2
Copy link

It would be nice to be able to download a deck in OCTGN format, compatible with the arkham horror module https://github.com/GeckoTH/arkham-horror

@Kamalisk
Copy link
Owner

If they have it working, then I just need the octgn card ids from somewhere.

@sacrelicious2
Copy link
Author

It looks like the card ids (at least for the core set) are stored here: https://github.com/GeckoTH/arkham-horror/blob/master/o8g/Sets/Core%20Set/set.xml. Curse of the Rougarou cards in a similar named location. Example deck format can be seen here: https://github.com/GeckoTH/arkham-horror/blob/master/o8g/Decks/01%20-%20Core/Starter%20-%20Agnes%20Baker.o8d. Note the 2 investigator cards, one for the main card, one for the mini used at locations.

@Kamalisk
Copy link
Owner

I added the octgn ids, just need to know the format it expects for the deck file, and how to do these tiny investigator card things.

@Kamalisk
Copy link
Owner

it has been added, for the core set at least, decks seem valid but it is missing the tiny investigator id, assuming that is needed, otherwise it should work.

@rushl
Copy link
Contributor

rushl commented Feb 8, 2017

I just submitted a pull request to bring the export into alignment with the OCTGN module. The export is actually currently including the investigator mini card, but not the actual investigator card. (At least, that's what happened when I tried an export.) I'm not familiar enough with the arkhamdb.com code to find and fix that issue, but I can help with the IDs that are needed.

Basically, investigator cards come in pairs. One of the XML nodes has the attribute size="InvestigatorCard" with a card property of "Type" set to "Investigator". That's the actual investigator card. The other has the attribute size="MiniCard" with a card property of "Type" set to "Mini". For an exported deck to be usable directly in a game, the deck file must contain both of those cards in the "Investigator" section.

@Kamalisk
Copy link
Owner

as far as I know this works now, so will close, and can open if it doesnt,

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

3 participants