Cross-game presence/friend/chat system

Ubiety It’s a bit like xbox live/steam/et al - See if your friends are online, what they’re playing, send them messages, all that stuff, only you don’t need to run your own server.

It’s basically just the smack library with the hairy bits hidden, talking to the Google Talk servers - Note that users will have to have google logins

JavaDoc here, jar here, source over there

I am probably going to need this some time :).

so no server side? it is all done by google??

Yup, it just uses google talk’s jabber servers.

Cool library, good idea :slight_smile:
By the way, in the connect method why do you append ‘googlemail’ rather than ‘google.com’? My google email account ends with ‘@google.com

        public boolean connect( String username, String password )
        {
                if( !username.endsWith( "@googlemail.com" ) )
                {
                        username += "@googlemail.com";
                }

Funny ;D :

         /**
         * Removes a friend ...
         * 
         * @param idiotHole
         *           I hate that guy
         */
        public void removeFriend( Friend idiotHole )
        {
         ...
        }

It’s just what worked for me when I was testing it - signing up for a new gmail account gives you a @googlemail address, at least in the UK. I’ll change it so it doesn’t assume either.

Can you make a demo? This sounds like something game engines might include by default :wink:

It’s not really something that demos well - you need a couple of google logins etc.

At any rate, there’s a test application in the jar linked above. It’ll tell you the usage if you get the arguments wrong