Xonotic Forums
[SUGGESTION] A way achievements can be handled (and go social) - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Suggestion Box (https://forums.xonotic.org/forumdisplay.php?fid=20)
+--- Thread: [SUGGESTION] A way achievements can be handled (and go social) (/showthread.php?tid=2041)



A way achievements can be handled (and go social) - Minkovsky - 08-15-2011

So... Are you annoyed by all the FarmVille wall spam in Facebook? Are you pissed at how often do you see Spymaster-related tweets from people you're following?

Well Xonotic can be just as jerkish! There should be a way of sending FB/Twitter/G+ posts from either CSQC or CSDP, complete with all the little things like a browser pop-up and cvars for storing OAuth/Google keys.

Of course Google+ is still, afaik, API-less, so that will have to wait. Bonus points if the application page in Facebook and G+ shows your friends' achievements and stats, as well as explanation for them.

Now, I can help on the way, but I'm not familiar with CSQC's capabilities or DP, so someone will have to work on the back end. And an artist would be useful too, since achievement icons are awesome (and I can't draw for crap).


RE: A way achievements can be handled (and go social) - clanclanclan - 08-16-2011

Actual achievements would require a centralised system and "approved hosts" on which you can get achievements. Otherwise the achievements would be fairly bogus because there is nothing in place to verify that an achievement is real. Also, authenticating with Facebook/Google/Twitter using OAuth requires a browser, which is hard to integrate into the "game experience" in a cross platform way, and unlikely to be embedded in Xonotic (for the record, DP DOES have old Gecko bindings, but these are outdated/dead).


RE: A way achievements can be handled (and go social) - Minkovsky - 08-16-2011

I think I have a solution. Place a html file inside the /data directory, with an IFRAME for calling the OAuth, and a wrapper script which would create a <SERVICE>_auth.cfg file, which would then be exec'd in autoexec.cfg

Of course, a centralized system would be a good idea, especially that it could host the G+/Facebook app code, which I'll be happy to write.


RE: A way achievements can be handled (and go social) - unfa - 08-16-2011

I'd love to do the icons Smile


RE: A way achievements can be handled (and go social) - Minkovsky - 08-16-2011

Well first we need to decide what exactly the achievements will be. A simple list:
Taste of Glory - awarded when you win your first server match
Electric Shepherd / Blade Runner - awarded when you win against Godlike bots
No Ground, No Problem - awarded when you score five airshots in one round\
Bully - awarded when you push five opponents into world hazards (lava, pits, moving parts)
No OSHA Training - awarded when you yourself fall victim to such world hazards five times
I Hate Your Flag - awarded when you capture enemy flag five times in a round
I REALLY Hate Your Flag - awarded when you capture enemy flag ten times in a row in one round
Pacifist - awarded when you / your team wins the round without fragging anyone (excludes gametypes like Nexball and Race)
Talkative Type - awarded when you spend more time chatting than fighting.
Duck Hunt - awarded after shooting five enemies from the air in one round
<WEAPON> Master - awarded when you keep 100% accuracy on a weapon for three rounds / games. Excludes TAG Seeker.
Pod Racer - awarded after spending more time in the speeder than fighting without it.
Aerial Support - awarded after spending more time in the bomber than off it.
You Guys Called A Spiderbot? - awarded after spending more time in the spiderbot than off it.
Keymaster - awarded after taking first place in Keyhunt for three rounds/games

And so on...


RE: A way achievements can be handled (and go social) - Cortez666 - 08-16-2011

Minkovsky: could you please use the search function? There is at least one other thread.

http://forums.xonotic.org/showthread.php?tid=434&pid=26745#pid26745
a stats system is at work and if it's done its only a small step to achievements


RE: A way achievements can be handled (and go social) - Minkovsky - 08-16-2011

Well unfa's list of achievement ideas is pretty good, but I don't think anybody suggested that achievements should be socialized the way I imagine it.

And it's good promotion. Just think how many players can we attract by using FarmVille's method of advertising. Besides, all the small steps should not be neglected; isn't it how NASA became famous?


RE: A way achievements can be handled (and go social) - Antibody - 08-16-2011

If you are interested in achievements you can take a look at my two projects: XonStat and xonstatdb . In the code for the latter you will find a listing of achievements that I believe are possible with today's code (see build_full.sql).

Anyone wishing to take over maintenance for these projects is welcome to do so; I am no longer working on them.