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

listing.json #5

Open
mr-each opened this issue Jan 24, 2023 · 1 comment
Open

listing.json #5

mr-each opened this issue Jan 24, 2023 · 1 comment

Comments

@mr-each
Copy link

mr-each commented Jan 24, 2023

Hi!

There is a file in each of the "realm" folder with the list of every item in the game. The problem is – it is not. Some items are missing.
IMO, it is the easiest way of running through every single item to get its name and/or ID.
So the question is: will it be updated?

I'm not very familiar with GitHub API and do not know is there an option to get a tree of a repo, but I found that the only solution to get every possible pair of ITEM_NAME - ITEM_ID is to go through every folder, subfolders and, finally, every item, which is crazy amount of requests especially with GitHub restriction of like 5k per hour. I think this file would be a lifesaver for some kind of an AH monitoring app which relies on item_name more than type-subtype-item_name.

Git clone of a repo would be an option, of course, but you already have like half of the solution =)

@mihanc
Copy link

mihanc commented Jan 24, 2023

Given the structure of the stalcraft-database repository, it seems to me that the data was exported directly from the game without any changes to the structure.
The best solution is to write your own parser (or use an existing one), parse the data into a format you prefer and save it in your database.

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