ComputerScienceHouse / bingehack4

A replacement for bingehack. For information about in-game features and changes:
https://github.com/ComputerScienceHouse/bingehack4/wiki
Other
17 stars 8 forks source link

Achievements #29

Open eatnumber1 opened 11 years ago

eatnumber1 commented 11 years ago

We need to port the achievements system over from bingehack.

clockfort commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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" notifications@github.com 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/ComputerScienceHouse/bingehack4/issues/29#issuecomment-20540902 .

sdemos commented 11 years ago

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 commented 11 years ago

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

clockfort commented 11 years ago

You can either use:

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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.