-
Notifications
You must be signed in to change notification settings - Fork 69
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
Compatibility with RPGGeek #43
Comments
Yeah, the library doesn't support RPGGeek/VideoGameGeek I'll look into it when I get a chance, but if you need this soon you can try to remove what's hardcoded and see what happens. Pull requests welcome. 😃 |
I had a quick look at this. It's fundamentally not hard - adding
If we're not worried about this inconsistencies I'll make a start on this - I imagine the code will be somewhat reusable whatever we do. |
OK, here's a very quick hack to enable support for video games and RPG items. Works and gets data but would really need some thought as to object types and which properties each type should have if we take it any further - e.g. while all of board games, video games and RPG items have a publisher, only board games have categories, only video games have genres etc. |
I started to work on this a while ago, but I haven't made much progress. I believe I was trying to organize the API around the concept of "thing" instead of "game", to avoid the issue you're raising (i.e. a player's handbook not being a game). I'll take a look at my branch and push it (today or tomorrow) if there's something worth salvaging, maybe you can take a look at it, as I don't have much time to work on this. |
That's the route I was thinking of going down as well: have a (And for backwards compatibility reasons, make |
I pushed feature/support-rpggeek with the code I had. If you want to give it a shot and implement something supporting RPGGeek too, please do :) |
OK, I've done some more work on this. It's not ready to "go live" yet but let me know your thoughts. Some implementation notes:
If you get a chance to look at it, any comments are appreciated! |
Ugh, can't help feeling that the BGG API is a mess 😞 When I started working on this, I was under the (wrong) impression that you must use Back to your point: given my revelation above, I think it's ok to use
I've nothing against multiple inheritance if it makes sense, but looking at what's going on there I see that it's starting to get messy: for example,
Most objects use
I think you've made good progress, thanks! If you want to continue, here's a few of the things I'd implement/change:
|
…cosmin#43 * feature/43-support-other-sites: Pick up the RPG for an RPG item. Generate only appropriate properties for each type. Move towards property generators. And one last RPG item property. Add a bunch of video game properties. Add separate `VideoGame` type. Extract common properties on "full" objects to their own class. Abstract properties shared across all collectible objects to a new `BaseItem` class. Minimal support for videogames. Add support for RPG item designers, artists and publishers. Support RPG item mechanics. Basic RPG item loading plus categories.
I'm having some issues getting data of out RPGGeek with this. I can't use game(), search(), or get_game_id() for RPGs. It looks like searching for boardgames is hardcoded in.
The text was updated successfully, but these errors were encountered: