Sorry, that account was one I've created for development purposes whilst fiddling around with Steam's network, which makes me extra paranoid
[quote]
[url]http://puu.sh/eNU2[/url]
Sent friend request anyway.[/QUOTE]
Let me boot windows then, 2 seconds.
Nevermind anyway, I just magically got accepted and didn't even apply.
[img_thumb]http://dl.dropbox.com/u/4912307/ClipboardUploader/2012-01-28_01_15_44_735.png[/img_thumb]
why [img]http://i.somethingawful.com/forumsystem/emoticons/emot-saddowns.gif[/img]
[editline].[/editline].
Works now. Turns out that instead of the mobile beta i got cyber cafe games added to my steam list(this is what i assumed happened, as i saw the games just after getting that message), but i contacted steam support and told them about the situation. It's fixed now, although i haven't got a reply yet. :v:
because access denied sheesh read scrube
I don't need my gift for the steam mobile beta so if any of you dudes want it then first person to pm me your email gets it.
It's gone.
[QUOTE=amcfaggot;34421998]because access denied sheesh read scrube[/QUOTE]
Are you still developing your Lua steam API?
I'm writing a most likely super inefficient interpreted language in lua
[code]dallc 0x1 0x10
set 0x1 0x1
set 0x2 0x5
add 0x2 0v1
set 0v2 0x100[/code]
That code allocates addresses 1 - 10 in the virtual memory, sets the first address to one, sets the second to 5, adds the value of address 1 onto address 2, then sets the address at the location of the value of address 2 to 256.
It uses tabs and there's no in-line function calling/operators, and there's no local variables/scope.
[QUOTE=COBRAa;34422346]Are you still developing your Lua steam API?[/QUOTE]
Yes.
[editline]27th January 2012[/editline]
Basically right now I'm sitting on a lot of data and information I just haven't pushed out. The Steam Web API code will eventually be as full-fledged as the fpsdk.
Okay so I've got an initial version of the Facepunch API working now that garry's added the tiny patch required on Facepunch's server.
Here's how it works.
Firstly, call the authenticate action. Then you can call other actions, but you still need to pass the username and password.
All requests must have GET parameters username and password, where password is the MD5 hash of the user's password.
All responses are JSON, format isn't quite fixed yet. I could use some help writing documentation, since I suck at it.
You must also pass a GET parameter called action, see the list below for the possible values of this parameter. Bolded word is the action paramter value.
Soon you'll also be able to register for an API key, to get stats on your applications usage of the API. These won't be required, totally optional, but there might be advantages to using an API key in the future.
[b]authenticate[/b]
No extra parameters required
[b]getforums[/b]
No extra parameters required
[b]getthreads[/b]
GET forum_id
GET page (optional)
[b]getposts[/b]
GET thread_id
GET page (optional)
[b]getpopularthreads[/b]
No extra parameters required
[b]getreadthreads[/b]
No extra parameters required
[b]getpms[/b]
GET page (optional)
[b]getpm[/b]
GET pm_id
[b]newreply[/b]
POST thread_id
POST message
[b]newthread[/b]
POST forum_id
POST subject
POST body
POST icon
[b]getthreadicons[/b]
GET forum_id
[b]sendpm[/b]
POST recipients (semi-colon separated list of usernames)
POST subject
POST body
POST icon
[b]getpmicons[/b]
No extra parameters required
[b]rate[/b]
GET post_id
GET rating (this is the int value of the rating type, need to improve this to use the shortname)
GET key
The API is live at api.facepun.ch right now.
I'm aware these docs suck and don't document responses, but I've spent like 12 hours working on this so I really can't be arsed doing better docs at the moment.
[QUOTE=Hexxeh;34422748]Okay so I've got an initial version of the Facepunch API working now that garry's added the tiny patch required on Facepunch's server.[/QUOTE]
what did this entail
[QUOTE=amcfaggot;34422773]what did this entail[/QUOTE]
IPs serving API servers are trusted by Facepunch, and so we pass an extra custom header through that contains the users real IP address. This way, even though the request is coming from an API servers IP address, Facepunch treats the request as if it came from the IP address the API request originated from.
Edit: HTTPS support will be available soon, just waiting for my new cert to arrive.
Before I begin, NSFW warning and such. Just incase.
Last night I spoted some 'risk' games on /b/, where they would take a map of europe split up into small territories and doubles would take over land or something, it was all done manually and I can't believe they could be bothered. So I wrote a bot for it.
There's a game running right now at [url]http://boards.4chan.org/b/res/377111339[/url] which will 404 soon enough but here's the game in progress: [url]http://dl.dropbox.com/u/3687652/ChanBot/cap1.png[/url] and another few turns later: [url]http://dl.dropbox.com/u/3687652/ChanBot/cap2.png[/url]
First players use the start_nation command to create a team with a name and description. Then they use the expand command an specify a coordinate to colonize further land. Then they insult each other and fight for land. Hopefully someone wins by the time post limit is reached. The bot refreshes the thread every x seconds and processes new replies. The random seed used is the post id of the first poster so the bot can crash all it wants, I can fix it and when I restart it the exact same outcome should be reached.
I plan to let people attach an image to their post when they make a nation, so that can be their avatar or something.
EDIT:
They're so... dedicated
[url]http://dl.dropbox.com/u/3687652/ChanBot/cap3.png[/url]
[url]http://dl.dropbox.com/u/3687652/ChanBot/cap4.png[/url]
[url]http://dl.dropbox.com/u/3687652/ChanBot/cap5.png[/url]
Quite a bit of progress on this dungeon crawler. once combat and inventory are in might release a copy for testing.
[IMG]http://i.imgur.com/g0jqN.png[/IMG]
[QUOTE=Hexxeh;34422819]IPs serving API servers are trusted by Facepunch, and so we pass an extra custom header through that contains the users real IP address. This way, even though the request is coming from an API servers IP address, Facepunch treats the request as if it came from the IP address the API request originated from.
Edit: HTTPS support will be available soon, just waiting for my new cert to arrive.[/QUOTE]
nice
HTTPS now available: [url]https://api.facepun.ch[/url]
If there's something that's not in the API that you want, feel free to ask and I'll see what I can do.
[QUOTE=polkm;34423052]Quite a bit of progress on this dungeon crawler. once combat and inventory are in might release a copy for testing.
[IMG]http://i.imgur.com/g0jqN.png[/IMG][/QUOTE]
Holy fuck, that looks gorgeous.
So, one of the reasons why updates to steamweb-lua-sdk are far slower than existing Facepunch members' updates is that my API carries one big design goal from the Facepunch Lua API, one where we don't lock developers to a socket module.
I'm trying to figure out a good way to go about this because it's slightly different than the fpapi in that we don't provide HTTPS (although it can easily be added in by anyone using it), but this API will include it by default as a necessity.
So, even though this is pretty much a worthless update in my opinion, it's probably better for you all to know that I am actively working on it? I hope so.
[img]http://images.devs-on.net/Image/vMv4xEXfsQO6yMH-AdministratorCWi.png[/img]
[editline]27th January 2012[/editline]
[QUOTE=Hexxeh;34423100]HTTPS now available: [url]https://api.facepun.ch[/url]
If there's something that's not in the API that you want, feel free to ask and I'll see what I can do.[/QUOTE]
considering you clearly have some influence on getting garry to do stuff, could you please ask him to add in a facepunch user-agent icon for people using apps/scripts/utilities/etc. which use one of our apis? i'd like for it to not discriminate against different apis so perhaps if the user agent is something like "Facepunch API" then it would show a small facepunch logo in the corner of their posts
this was something i planned for the facepunch-lua-sdk, but never got around to asking him
considering there are multiple solutions to interfacing with facepunch now, it would be very nice to have for you, my team, and overv and geel9's stuff
[editline]27th January 2012[/editline]
please and thank you
[QUOTE=amcfaggot;34423165]considering you clearly have some influence on getting garry to do stuff, could you please ask him to add in a facepunch user-agent icon for people using apps/scripts/utilities/etc. which use one of our apis? i'd like for it to not discriminate against different apis so perhaps if the user agent is something like "Facepunch API" then it would show a small facepunch logo in the corner of their posts
this was something i planned for the facepunch-lua-sdk, but never got around to asking him
considering there are multiple solutions to interfacing with facepunch now, it would be very nice to have for you, my team, and overv and geel9's stuff[/QUOTE]
I don't see that being an issue, I remember seeing the code for the user-agent icons and that'd be trivial to add. Do we have an icon we can use for API based requests? Also, maybe some kind of format that allows you to click the icon to go through to a thread for the app that made that post would be cool.
[QUOTE=Hexxeh;34423261]I don't see that being an issue, I remember seeing the code for the user-agent icons and that'd be trivial to add. Do we have an icon we can use for API based requests?[/QUOTE]
I made one way back and noticed it was difficult to make the Facepunch logo look nice at 16x16. I don't believe I have that icon sample anymore, and I've formatted and don't have Photoshop installed at the moment. If someone could create a nice looking one, I'd be very appreciative.
[QUOTE=amcfaggot;34423299]I made one way back and noticed it was difficult to make the Facepunch logo look nice at 16x16. I don't believe I have that icon sample anymore, and I've formatted and don't have Photoshop installed at the moment. If someone could create a nice looking one, I'd be very appreciative.[/QUOTE]
I'm not sure a Facepunch logo is the best idea. We're trying to show it's an API-based request. Maybe a cog would be a better option?
[QUOTE=Ploo;34423044][/QUOTE]
-Snip- the games actually do end
[QUOTE=Hexxeh;34423325]I'm not sure a Facepunch logo is the best idea. We're trying to show it's an API-based request. Maybe a cog would be a better option?[/QUOTE]
Could it be a red one or something then? I like that idea.
[editline]27th January 2012[/editline]
Of a cog, that is
[QUOTE=Hexxeh;34422748]All requests must have GET parameters username and password, where password is the MD5 hash of the user's password.[/QUOTE]
I'm not in love with that.. :\ I think the user should login and be given a session ID that they can then use for all other commands.
[QUOTE=@@;34423480]I'm not in love with that.. :\ I think the user should login and be given a session ID that they can then use for all other commands.[/QUOTE]
I could use memcached or something and just bind the un/pw to a session key, but what's the point?
Sessions expire, if you're always passing the un/pw, that's one less thing to worry about. The request size is no larger, since you'd need to pass a session ID anyway, they'd be the same size. This is only the same behaviour as Facepunch in a browser. There's a cookie for your user ID, your password MD5 and a session ID. However, of the two, only the user ID and password MD5 are actually required, the session ID is optional.
I know you guys probably don't, but does anyone have any extra beta invites? I've got Visual C# open here and I'm getting impatient.
[code]dallc 0x1 0x8000
# allocate 1-32786, really just initialization
allc 0x10 qentest
# allocate a 16 address block of memory, called "qentest"
samn qentest
# set the Allocated Memory Name to qentest (the currently used dynamic memory block)
set 0x1 0x1
# set variable 0v1 (the first address in qentest) in qentest to 1
prt 0v1
# prints 1
allc 0x10 :D
# allocate a new memory block
samn :D
# blah blah set the thingy blah
set 0x1 0x10
# lets do this again, but 16
prt 0v1
# printy[/code]
This prints 1, then 16 :downs:
[QUOTE=supersnail11;34423612]I know you guys probably don't, but does anyone have any extra beta invites? I've got Visual C# open here and I'm getting impatient.[/QUOTE]
If you're looking to actually analyze the connections and do some reversing here and there, I'd be willing to provide you with an access gift. I don't want to pass around access to jerkoffs who aren't going to be doing something productive with it.
[QUOTE=Hexxeh;34423554]blah blah[/QUOTE]
[url]http://oauth.net/[/url]
Use oauth. They give you a full list of reasons on their wiki page on why it's safer to do it that way.
[QUOTE=Hexxeh;34423554]I could use memcached or something and just bind the un/pw to a session key, but what's the point?
Sessions expire, if you're always passing the un/pw, that's one less thing to worry about. The request size is no larger, since you'd need to pass a session ID anyway, they'd be the same size. This is only the same behaviour as Facepunch in a browser. There's a cookie for your user ID, your password MD5 and a session ID. However, of the two, only the user ID and password MD5 are actually required, the session ID is optional.[/QUOTE]
I was looking at how the Facepunch Lua API does this, and I swear I thought we were using a token system, but we don't do anything different than what the browser does, which was also by design. Considering you're not passing the cookie back through the API calls, I actually agree. Your method is probably the best take on this without adding additional unnecessary data to the mix.
[editline]27th January 2012[/editline]
[QUOTE=@@;34423655][url]http://oauth.net/[/url]
Use oauth. They give you a full list of reasons on their wiki page on why it's safer to do it that way.[/QUOTE]
eh, or this I guess, it's also a perfectly good argument
[editline]27th January 2012[/editline]
[QUOTE=supersnail11;34423612]I know you guys probably don't, but does anyone have any extra beta invites? I've got Visual C# open here and I'm getting impatient.[/QUOTE]
Hey, add me scrub.
[editline]27th January 2012[/editline]
on steam
Sorry, you need to Log In to post a reply to this thread.