Gamerzilla questions

Hi,
I'd like to add Gamerzilla support to my engine, but I have questions (actually a lot, sorry). I hope dulsi or someone else can answer those, and please don't be mad if they seem stupid... thanks!
First, I've read main page and the developer page as well. My understanding is, you need a hubzilla server, configured for the game and its achievements, and then, the game should initiate a WebAPI request with a JSON telling the server if/when a gamer got one of those achievements. Is this correct?
If so, then I don't understand the purpose of the trophies json, mentioned on the developers page. Is this file a part of the server configuration (I guess it should be)? There are lots of paths in that file, are those referring to files on the server? And why there's a need for those, when the game is just supposed to notify the hubzilla server with a gamer/trophy/progress triplet?
About the library libGamerzilla, I have some questions too (mostly all local files related).
First, does it have dependencies? It says none, but I think it does depend on curl and jansson libraries at a minimum.
Going further, I've checked the source. This won't work for me either, because I have a cross-platform interface for accessing files; your Windows implementation does not work on my computer (it would need FindFirstFileW, FindNextFileW and _wstat64, _wfopen etc., because there are non-ASCII letters in my home path); the "getenv("HOME")" isn't portable and won't work (for example on Android my interface uses SDL_AndroidGetExternalStoragePath instead); and again, WASM does not have the concept of directories in the first place (it is simply not allowed to access the local file system, hence opendir is hijacked to access memory only).
Is there a way to eliminate the need for listing directories, creating files and providing my own a file open/read/close hook?
Or as an alternative, would it be possible to implement just the bare minimum of talking to the server about gained trophies, and nothing else? (No file related part at all, no curl, jansson dependencies. I also have my own portable tcp layer, and for WASM you must use the HTTP Request object, no low level access possible. curl not available for WASM in short.)
Thanks for your answers in advance,
bzt
I'd like to add Gamerzilla support to my engine, but I have questions (actually a lot, sorry). I hope dulsi or someone else can answer those, and please don't be mad if they seem stupid... thanks!
First, I've read main page and the developer page as well. My understanding is, you need a hubzilla server, configured for the game and its achievements, and then, the game should initiate a WebAPI request with a JSON telling the server if/when a gamer got one of those achievements. Is this correct?
If so, then I don't understand the purpose of the trophies json, mentioned on the developers page. Is this file a part of the server configuration (I guess it should be)? There are lots of paths in that file, are those referring to files on the server? And why there's a need for those, when the game is just supposed to notify the hubzilla server with a gamer/trophy/progress triplet?
About the library libGamerzilla, I have some questions too (mostly all local files related).
First, does it have dependencies? It says none, but I think it does depend on curl and jansson libraries at a minimum.
- {l Code}: {l Select All Code}
GamerzillaStart(false, "save/");
- {l Code}: {l Select All Code}
int game_id = GamerzillaSetGameFromFile("./gamerzilla/mygame.game", "./");
Going further, I've checked the source. This won't work for me either, because I have a cross-platform interface for accessing files; your Windows implementation does not work on my computer (it would need FindFirstFileW, FindNextFileW and _wstat64, _wfopen etc., because there are non-ASCII letters in my home path); the "getenv("HOME")" isn't portable and won't work (for example on Android my interface uses SDL_AndroidGetExternalStoragePath instead); and again, WASM does not have the concept of directories in the first place (it is simply not allowed to access the local file system, hence opendir is hijacked to access memory only).
Is there a way to eliminate the need for listing directories, creating files and providing my own a file open/read/close hook?
Or as an alternative, would it be possible to implement just the bare minimum of talking to the server about gained trophies, and nothing else? (No file related part at all, no curl, jansson dependencies. I also have my own portable tcp layer, and for WASM you must use the HTTP Request object, no low level access possible. curl not available for WASM in short.)
Thanks for your answers in advance,
bzt