Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Icey on Mon 25/10/2010 23:44:03

Title: Ags and facebook connection! vote now yes or no
Post by: Icey on Mon 25/10/2010 23:44:03
Is ags smart enough yet for me to be able to use the TCP plug-in and have it connect to my browser>facebook.com.I want my game to be able to connect to the internet and post text about events in my game that I selected to be posted.

Basically I want AGS to post on my wall.


Head to the bottom if you would like for Wyz to create a Facebook connection plug-in for AGS.
Title: Re: Ags and facebook connection?
Post by: Snake on Mon 25/10/2010 23:57:23
Before anyone else posts with negative comments, may I ask what the purpose of this is?

PS
It's not about whether or not AGS is "smart enough", because AGS is a VERY powerful tool, but if the plug-in, or future plugins, are/will be able.
Title: Re: Ags and facebook connection?
Post by: Wyz on Tue 26/10/2010 00:03:35
Short story:
No.

Long story:
If you know anything about http requests you can do this with the TCP plugin, if you don't it will be very complicated. To top it off, you need to know how Facebook interfaces with browsers to know how to send posts. I assume they have some kind of API but you need to be an experienced web developer to know how to use it.
Title: Re: Ags and facebook connection?
Post by: Icey on Tue 26/10/2010 00:15:40
Oh ok,That's all I needed to know.

Quote from: Snake on Mon 25/10/2010 23:57:23
may I ask what the purpose of this is?

I wanted one of my games that me and my cousin was going to work on to be able to post to face book stuff that happened in the game that is impotent like for example: "Ben Jordan got this item" this would be posted to facebook when the player finds the item thus will activates the code in the script + the TCP plug-in.

I wounder if twitter is possible but it may be the same case :P
Title: Re: Ags and facebook connection?
Post by: GarageGothic on Tue 26/10/2010 00:22:08
Quote from: icey games on Mon 25/10/2010 23:44:03Is ags smart enough ...

AGS is smart enough to know that nobody else in the world gives a shit about which inventory item you picked up, or whether you just clicked a cow.
Title: Re: Ags and facebook connection?
Post by: monkey0506 on Tue 26/10/2010 00:37:41
I'm guessing you're attempting some sort of Achievement system here? If that is in fact the case, let me just say that Facebook/twitter are HORRIBLE at this. Short of an officially adopted modification to the site's code, there would be absolutely nothing to stop the user just posting the comments to their wall/tweeting it themselves.
Title: Re: Ags and facebook connection?
Post by: Icey on Tue 26/10/2010 00:41:32
Yep that's what I wanted so I will just post it myself like always.
Title: Re: Ags and facebook connection?
Post by: Knox on Tue 26/10/2010 01:04:13
Quote from: GarageGothic on Tue 26/10/2010 00:22:08
Quote from: icey games on Mon 25/10/2010 23:44:03Is ags smart enough ...

AGS is smart enough to know that nobody else in the world gives a shit about which inventory item you picked up, or whether you just clicked a cow.

hehehe...
Title: Re: Ags and facebook connection?
Post by: monkey0506 on Tue 26/10/2010 03:33:25
I think an achievement system for an adventure game is a viable option..but picking up an inventory item does not make sense as an "achievement" any more than clicking the mouse or turning the computer on does. And as I said, social networking applications are not well equipped for this because of the fact that there would be nothing to stop someone from just falsifying their achievements.

Perhaps if you were able to get Facebook to adopt an official application then it might be different. You might then be able to store data on their servers, or you might have to use your own. But if you're asking this question, then, for now at least, you wouldn't really have the technical ability required to even start such a huge endeavor.

So, I think the question in and of itself wasn't a particularly bad one. Just the example you provided and the methodology you're expecting to be able to use are particularly absurd.
Title: Re: Ags and facebook connection?
Post by: Khris on Tue 26/10/2010 04:05:04
57% of facebook users regularly unfriend other people due to their boring and pointless status updates.
Just sayin'.
Title: Re: Ags and facebook connection?
Post by: Wyz on Tue 26/10/2010 13:45:35
I checked it last night: the twitter API is quite easy to use, but the TCP/IP module is not enough since it does need data encoding. But I have to agree the other folks about tweets as achievement system. I guess it quite annoying unless it sends one tweet when you completely finished the game. That would be totally acceptable in my humble opinion.

But much better would be: finding a site that does achievements. I don't know if they exist but that would be a good idea. If you find such site, post it and maybe we could work something out with the TCP plugin.
Title: Re: Ags and facebook connection?
Post by: Monsieur OUXX on Tue 26/10/2010 15:21:37
<hate post>
To those who haven't noticed yet: It's not funny anymore to mock Icey Games. It's obsolete humor. He's made a lot of efforts, and when I read "nobody gives a shit about what inventory items you click", IMO the moron is not Icey Games. Obsolete humor, I tell you.
</hate post>

Having said that, the answer is the same as other answers : Technically, it's probably possible to interface AGS with Facebook, but before you do that you need to :
1. Understand TCP/IP well enough to interface AGS with advanced protocols (HTTP, etc.),
2. Understand the Facebook APIs well enough to program them.
In other words it's very very very hard, if not impossible.
Title: Re: Ags and facebook connection?
Post by: Icey on Tue 26/10/2010 18:58:12
Ok, I guess I can wait and learn more about that stuff later on.

I should just continue with my small projects.

Title: Re: Ags and facebook connection?
Post by: keaponlaffin on Wed 11/05/2011 06:34:20
I've been thinking of doing something similar and have hypothesized the following workaround. I'm new to the platform but logically I think this should work.

When one saves and exits the game one is presented with a list of achievement(s) they have performed recently (the game keeps a log that is reset every time the game is loaded). The option is then given to "Post on Facebook."  (these are very common in online applications, I'm sure you've seen them literally everywhere).

All this button contains is hyperlinked text that brings up facebook in the default browser with pre-written text, such as: "Keaponlaffin has slain the green dragon in @MyAGSGame." If you're smart it might also include "posted via MyAGSGameAchievements."

Keeps it simple because one isn't annoyed by the prompts in-game and only one update will be posted for any given gaming session, and this only if the user so chooses.

Why you do it this way?

Lets be honest if you wanted a real achievement system you would upload your stats to a dedicated server. All this posting crap is useful for (and is used for in the real world) is to provide free advertisement for your game. If someone fakes it they are still fulfilling the purpose of providing free advertisement. Also I think most people are too dumb to fake a real "posted via" thing anyway. Furthermore who are we to make judgements on the method of user experience, we are providers of entertainment and the consumer is always right.
Title: Re: Ags and facebook connection?
Post by: Wyz on Wed 11/05/2011 14:05:38
This has still been playing in my head, and in fact it's on my todo list. I've got a plugin capable of doing it but it needs more work to make it user friendlier. If people are interested in this kind of functionality please post in this topic, when enough people do I'll start working on it again. :)
Title: Re: Ags and facebook connection?
Post by: Snarky on Wed 11/05/2011 14:50:42
Can you make it post 5-cup reviews for itself in the AGS db?

Err... I mean, yes, I might be interested.  ;)
Title: Re: Ags and facebook connection?
Post by: keaponlaffin on Wed 11/05/2011 19:50:54
Quote from: Wyz on Wed 11/05/2011 14:05:38
This has still been playing in my head, and in fact it's on my todo list. I've got a plugin capable of doing it but it needs more work to make it user friendlier. If people are interested in this kind of functionality please post in this topic, when enough people do I'll start working on it again. :)

Please keep us updated on your progress, I'm interested to see what comes of it.  :)
Title: Re: Ags and facebook connection?
Post by: Creator on Wed 11/05/2011 23:02:49
Quote from: Wyz on Wed 11/05/2011 14:05:38
This has still been playing in my head, and in fact it's on my todo list. I've got a plugin capable of doing it but it needs more work to make it user friendlier. If people are interested in this kind of functionality please post in this topic, when enough people do I'll start working on it again. :)

Yeah, keep on going. I have an achievement system in my game. This might be useful.
Title: Re: Ags and facebook connection?
Post by: Icey on Wed 11/05/2011 23:42:47
Finally, This is something I been waiting for for like ever. I also have a achievement system in my game but real achievement plug-in might benefit the most.  :)
Title: Re: Ags and facebook connection?
Post by: selmiak on Thu 12/05/2011 23:28:36
Quote from: Studio3 on Tue 26/10/2010 00:15:40
I wanted one of my games[...] to be able to post to face book stuff that happened in the game that is impotent like for example:

Are you making an Anti - Leisure Suite Larry game? o_O
Title: Re: Ags and facebook connection?
Post by: Icey on Fri 13/05/2011 00:08:17
? ???
Title: Re: Ags and facebook connection?
Post by: Khris on Fri 13/05/2011 00:54:31
You wrote "impotent" instead of "important". And now back to topic please.
Title: Re: Ags and facebook connection! vote now yes or no
Post by: Wyz on Fri 13/05/2011 14:13:22
Update:
Ok, I've been working on a cURL binding for AGS yesterday but it will take a bit more work before it's stable. For those wondering what cURL is: it is a system that allows you to connect with websites in virtually any way that exists (also in a secure way when needed). This would include websites like Facebook and Twitter or a future achievements site, you name it. Once I've got this running I'll make modules for specific sites.
Title: Re: Ags and facebook connection! vote now yes or no
Post by: Icey on Sat 14/05/2011 02:51:54
Do you think it will be possible to chat back & forth between FB and a AGS game?
Title: Re: Ags and facebook connection! vote now yes or no
Post by: monkey0506 on Sat 14/05/2011 03:48:08
The real question is why would you want to do that? Are you trying to make your game into a Facebook clone? A Facebook clone that directly links virtually all content from the Facebook site and its respective domains (which are several)? And I only say virtually because of course 5% of it would be directly linked from the SQUARE ENIX site(s), and 1% would be just to toss "Studio 3 Iceygames ♥8Ç!Ã'W♠♪Éà5♫╚♦8ü♥ PMQ DELUXE EDITION 2012!113" on top of any logo images used in the site and replacing links to the actual domains to your own..

I don't mean that to be as harshly derogatory as it obviously is, so I won't try to defend it by saying it's not, but I will insist that it wasn't my intent. I will insist that my intent is to point out that by asking that question you're very much doing the same things you yourself said you were going to make an attempt to stop doing. Seriously, even if you could post things to Facebook from within an AGS game, why is your next thought immediately to tap into the Facebook Chat API so you can keep in touch with your Facebook "friends" (most of whom you honestly probably don't even know in real life)? Is the idea that they might miss out on a single second of the record of what you're doing in your life that horrifying to you?

This isn't just entirely directed at you either. It's actually one of my biggest issues with Facebook (and other "social networking" sites) altogether. Perhaps the only site I actually despise more is Twitter, although out of a desire to keep in contact with certain friends I do actually have a Facebook account.

Sharing things with your friends can be fun and entertaining. Keeping in contact with them is great as well. Beyond that..it's cancer. It's the cancer that's killing us all.

So, now that you've gone and edited the topic title to suggest that a vote is in order, I cast mine as..

Wait, what?? There's no Dislike button?? Why don't I have as much right to share the fact that I dislike something with my friends as I have to share the fact that I like other things? ..what the hell, screw you Mark Zuckerberg. Screw you.

And that is my official position on the matter.
Title: Re: Ags and facebook connection! vote now yes or no
Post by: Icey on Sat 14/05/2011 04:56:38
I dont see it as a bad thing that you said at the beginning.

However I plan to use as a second chat system(AGS to AGS & AGS to FB). I actually agree with most things you said.

But I barely post on FB, I mostly uploading Pics of games. And I also want a dislike button. I think that haven't added one because of most people that might get upset if some said they dislike their post.
Title: Re: Ags and facebook connection! vote now yes or no
Post by: Wyz on Sat 14/05/2011 13:01:57
Quote from: monkey_05_06 on Sat 14/05/2011 03:48:08
It's the cancer that's killing us all.

Go Monkey! :D

No actually I agree on that and that's why I stay the fuck away from any new social media (I have a Twitter and Facebook account but they contain a silent protest). BUT, I can not ignore the fact that this seems to be the direction a lot of the youth people are going. As communication brought us the capability to use it to the point of meaninglessness, we could do one of two things: revolt or take it into perspective.

As I said, I mostly ignore the existence of that media, but if I were to make games for a certain group of people of who I know they use this media I will take advantage of that. But it should always be optional. If a game was riddled with "I like' and 'twit' buttons it would break immersion and I'd stop playing that game. So my verdict: use it if you know your target group uses it but use with care!

Now this plugin I'm making will have a lot of more potential then just something to connect to Twitter or Facebook, so stay put. :P