Raised This Month: $51 Target: $400
 12% 

[ANY] SteamWorks


Post New Thread Reply   
 
Thread Tools Display Modes
Meitis
Member
Join Date: Jan 2014
Old 01-20-2015 , 02:57   Re: [ANY] SteamWorks
Reply With Quote #261

The git90 build for windows makes my server unjoinable. It doesn't seem to get a full connection to the steam servers then.
edit: it's a csgo server

Last edited by Meitis; 01-20-2015 at 02:58.
Meitis is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-20-2015 , 11:39   Re: [ANY] SteamWorks
Reply With Quote #262

Quote:
Originally Posted by Meitis View Post
The git90 build for windows makes my server unjoinable. It doesn't seem to get a full connection to the steam servers then.
edit: it's a csgo server
If you're using token auth, you need to update your Steam client. Either your local installation or the binaries that shipped with your game.
KyleS is offline
blacklagoon
Senior Member
Join Date: Jun 2012
Old 01-22-2015 , 11:11   Re: [ANY] SteamWorks
Reply With Quote #263

Hi, i'm having an issue with HTTP Get and i can't find how to fix it.
I'm trying to http get a txt file.
I'm properly getting data but my data ends up like this :

data : a÷PL pgj
data : p°èøxâà¢âà¢â

Code:
    new Handle:request = SteamWorks_CreateHTTPRequest( k_EHTTPMethodGET, "http://www.ponyvillelive.com/static/api/nowplaying.txt");
    SteamWorks_SetHTTPRequestGetOrPostParameter( request, "format", "txt");
    SteamWorks_SetHTTPRequestHeaderValue(request, "Pragma", "no-cache");
    SteamWorks_SetHTTPRequestHeaderValue(request, "Cache-Control", "no-cache");
    
    SteamWorks_SetHTTPCallbacks( request, OnDLComplete );
    SteamWorks_SendHTTPRequest( request );
Am i lacking a GetOrPost parameter to get it right ?
I'm trying to get this txt file http://www.ponyvillelive.com/static/api/nowplaying.txt
to fix an old radio plugin working with SteamTools
blacklagoon is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-22-2015 , 16:36   Re: [ANY] SteamWorks
Reply With Quote #264

What's your callback look like?
KyleS is offline
darkid
Member
Join Date: Sep 2014
Old 01-25-2015 , 04:06   Re: [ANY] SteamWorks
Reply With Quote #265

I'd like to use this plugin to do an HTTP GET request, and ideally to be able to send PUT requests as well. However, I can't find any documentation. Could someone explain how to do both of these?
darkid is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-25-2015 , 19:08   Re: [ANY] SteamWorks
Reply With Quote #266

Quote:
Originally Posted by darkid View Post
I'd like to use this plugin to do an HTTP GET request, and ideally to be able to send PUT requests as well. However, I can't find any documentation. Could someone explain how to do both of these?
There's extensive documentation shipped with the SteamWorks SDK from Valve: https://partner.steamgames.com/home .

You can also check out their HLSDK if you feel you don't need examples: https://github.com/ValveSoftware/sou...m/isteamhttp.h

Last edited by KyleS; 01-25-2015 at 19:10.
KyleS is offline
darkid
Member
Join Date: Sep 2014
Old 01-25-2015 , 19:27   Re: [ANY] SteamWorks
Reply With Quote #267

The documentation link you provided makes no comment about SteamWorks_ commands, so I'm not sure how to apply the comments about steam webapi to arbitrary http requests. I've been messing around with them a bit, but I'm still not really sure how it all works. For example, what's a valid key/value pair in SteamWorks_SetHTTPRequestGetOrPostParameter() ?
darkid is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-25-2015 , 19:46   Re: [ANY] SteamWorks
Reply With Quote #268

Quote:
Originally Posted by darkid View Post
The documentation link you provided makes no comment about SteamWorks_ commands, so I'm not sure how to apply the comments about steam webapi to arbitrary http requests. I've been messing around with them a bit, but I'm still not really sure how it all works. For example, what's a valid key/value pair in SteamWorks_SetHTTPRequestGetOrPostParameter() ?
PHP Code:
// Set a GET or POST parameter value on the request, which is set will depend on the EHTTPMethod specified
// when creating the request.  Must be called prior to sending the request.  Will return false if the 
// handle is invalid or the request is already sent.
virtual bool SetHTTPRequestGetOrPostParameterHTTPRequestHandle hRequest, const char *pchParamName, const char *pchParamValue ) = 0
Literally the same thing you'd throw into there, except the Handle is a SourcePawn handle ;).

Last edited by KyleS; 01-25-2015 at 19:46.
KyleS is offline
darkid
Member
Join Date: Sep 2014
Old 01-25-2015 , 20:57   Re: [ANY] SteamWorks
Reply With Quote #269

So I see that in the source link that you provided, but not in the documentation. And while that is the header I need, there's no information beyond those three lines about how to use it -- it seems they take any *pchar (so any string).
darkid is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-25-2015 , 21:47   Re: [ANY] SteamWorks
Reply With Quote #270

Quote:
Originally Posted by darkid View Post
So I see that in the source link that you provided, but not in the documentation. And while that is the header I need, there's no information beyond those three lines about how to use it -- it seems they take any *pchar (so any string).
You'll have better luck in the Scripting section as this is a general HTTP question, nothing related to SteamWorks
KyleS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode