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

Achievements #29

Open
eatnumber1 opened this issue Jan 27, 2013 · 9 comments
Open

Achievements #29

eatnumber1 opened this issue Jan 27, 2013 · 9 comments
Assignees

Comments

@eatnumber1
Copy link
Member

We need to port the achievements system over from bingehack.

@ghost ghost assigned sdemos Jan 29, 2013
@clockfort
Copy link
Member

Demos is working on the integration in-game, I've been working on a new API. (Most of the read-only calls are already done... https://github.com/clockfort/achievements-api2/blob/master/docs/API.md)
I need to put a system for doing authenticated updates from apps, which I haven't yet, and maybe make some nicer-looking ways to interact with the data for anyone who wants to build off the API.

@clockfort
Copy link
Member

Hey @stphndemos how far did you get with this? We're starting up weekly active dev again, and I/someone will be pushing in DB-touching code soon.

@sdemos
Copy link
Member

sdemos commented Jul 6, 2013

I got most of the hooks done I'm pretty sure. I don't remember how far I
got before I left. I haven't touched it since the end of the school year
and now I'm in the middle of the woods for several weeks.
On Jul 5, 2013 6:03 PM, "Chris Lockfort" [email protected] wrote:

Hey @stphndemos https://github.com/stphndemos how far did you get with
this? We're starting up weekly active dev again, and I/someone will be
pushing in DB-touching code soon.


Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-20540902
.

@sdemos
Copy link
Member

sdemos commented Sep 14, 2013

Hey @clockfort did you finish the achievements database? I was about to squash all my achievements commits together because all (well, most) of the achievement hooks are done, and I realized that I had never actually made a working achieve.c file, just a skeleton for compiling. I suppose I should figure out how your database works and write an achieve.c that uses it and then actually test all of the achievements. Unless you already wrote one. I stuck with all of the same functions as bingehack.

@clockfort
Copy link
Member

I have written and done nothing and I'm a terrible person

@clockfort
Copy link
Member

You can either use:

  • My JSON REST API for achievements (not guaranteed to have enough API calls to finish your work necessary to do this) https://github.com/clockfort/achievements-api2/blob/master/docs/API.md
    ... but I can keep devving it if you want to do things properly. It's actually in a place where I did all the hard work in Haskell to do bullshit type conversions between SQL and JSON types, and all it probably needs is either nothing or a few more SQL statements fleshed out in the API. The code is actually absurdly readable even for people who don't know Haskell ( https://github.com/clockfort/achievements-api2/blob/master/src/Main.hs is basically the entire program )
  • Or you can steal my old code in BingeHack 3.x for doing direct MySQL interaction, which should be mostly a copy+paste job, and Russ or I or someone that is good at C can help you setup library dependencies nicely.

The second option is way shittier, and waaaaaaaay easier. Since this is a free time project for everyone involved, I'm leaning towards that option.

@sdemos
Copy link
Member

sdemos commented Sep 17, 2013

I actually might go for the first option because I am currently learning haskell, I don't know if that is a good reason or if it will help but whatever.

@clockfort
Copy link
Member

shrug well, all of the harder type-system haskell is done for you already. So there's that.

Try standing up a achievements-api instance pointed at CSH's mysql; you should just be able to cabal install and run it, provided you have the proper database config. I've dropped a Config.hs in your homedir with the username/password/DB info.

... it looks like I never got around to finish the write-based achievements calls.
(You'll need the mysql headers to compile btw) (yum provides *mysql-config)

@sdemos
Copy link
Member

sdemos commented Sep 17, 2013

yeah, I noticed that. I can't register new users. Oh well. First is to figure out how I can do this at all. Yay.

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

No branches or pull requests

3 participants