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

[ANY] SteamWorks


Post New Thread Reply   
 
Thread Tools Display Modes
Deathknife
Senior Member
Join Date: Aug 2014
Old 07-12-2017 , 19:24   Re: [ANY] SteamWorks
Reply With Quote #591

Cheap workaround for "non-threaded call" (Wouldn't recommend ever doing this though)
PHP Code:
Handle request SteamWorks_CreateHTTPRequest(k_EHTTPMethodGET"https://www.google.com");
SteamWorks_SetHTTPCallbacks(requestHTTPCompletedINVALID_FUNCTIONHTTPReceive);

SteamWorks_SendHTTPRequest(request);
int p 0;
SteamWorks_GetHTTPResponseBodySize(requestp);
while(
== 0) {
    
SteamWorks_GetHTTPResponseBodySize(requestp);

the events are fired the next tick, but it's ready to use and you can get response data with callback easily after the while loop ends.
PHP Code:
SteamWorks_GetHTTPResponseBodyCallback(requestfCallbackdata); 
__________________
Deathknife is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 07-13-2017 , 00:28   Re: [ANY] SteamWorks
Reply With Quote #592

Quote:
Originally Posted by Deathknife View Post
Cheap workaround for "non-threaded call" (Wouldn't recommend ever doing this though)
PHP Code:
Handle request SteamWorks_CreateHTTPRequest(k_EHTTPMethodGET"https://www.google.com");
SteamWorks_SetHTTPCallbacks(requestHTTPCompletedINVALID_FUNCTIONHTTPReceive);

SteamWorks_SendHTTPRequest(request);
int p 0;
SteamWorks_GetHTTPResponseBodySize(requestp);
while(
== 0) {
    
SteamWorks_GetHTTPResponseBodySize(requestp);

the events are fired the next tick, but it's ready to use and you can get response data with callback easily after the while loop ends.
PHP Code:
SteamWorks_GetHTTPResponseBodyCallback(requestfCallbackdata); 
PHP Code:
int p 0;
do
{
    
SteamWorks_GetHTTPResponseBodySize(requestp);
} while (
== 0); 
That is truly god awful though; didn't even think about that one if it works... It's pretty clear you're going to hell if that ships anywhere though
KyleS is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 07-14-2017 , 00:22   Re: [ANY] SteamWorks
Reply With Quote #593

Code:
L 07/13/2017 - 21:17:06: [SM] Unable to load extension "SteamWorks.ext": Could not find interface: INativeInterface
What to do?
fragnichtnach is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 07-14-2017 , 00:27   Re: [ANY] SteamWorks
Reply With Quote #594

Quote:
Originally Posted by fragnichtnach View Post
Code:
L 07/13/2017 - 21:17:06: [SM] Unable to load extension "SteamWorks.ext": Could not find interface: INativeInterface
What to do?
Nevermind, found the answer in this thread after watching a second time.

Latest version from here doesn't return this error.
http://users.alliedmods.net/~kyles/builds/SteamWorks/
fragnichtnach is offline
hitmany
Senior Member
Join Date: Jul 2010
Old 08-03-2017 , 16:45   Re: [ANY] SteamWorks
Reply With Quote #595

I have an issue with WebLync. Author sneded me to you

[WebLync] Unable to create SteamWorks HTTP request.
[WebLync] Registering server...
[WebLync] Registering server...

no error logs and Dynamic related plugins

Code:
meta list
Listing 6 plugins:
  [01] SourceMod (1.8.0.6016) by AlliedModders LLC
  [02] CS Tools (1.8.0.6016) by AlliedModders LLC
  [03] SDK Tools (1.8.0.6016) by AlliedModders LLC
  [04] SDK Hooks (1.8.0.6016) by AlliedModders LLC
  [05] SteamWorks Extension (1.2) by Kyle Sanderson
  [06] DHooks (2.0.4) by AlliedModders

sm plugins list
  05 "Dynamic" (0.0.26) by Neuro Toxin
  151 "WebLync" (0.0.9) by Neuro Toxin
  155 "Web Shortcuts CS:GO version" (2.7) by Franc1sco franug and James "sslice" Gray
hitmany is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-03-2017 , 19:51   Re: [ANY] SteamWorks
Reply With Quote #596

Quote:
Originally Posted by hitmany View Post
I have an issue with WebLync. Author sneded me to you

[WebLync] Unable to create SteamWorks HTTP request.
[WebLync] Registering server...
[WebLync] Registering server...

no error logs and Dynamic related plugins

Code:
meta list
Listing 6 plugins:
  [01] SourceMod (1.8.0.6016) by AlliedModders LLC
  [02] CS Tools (1.8.0.6016) by AlliedModders LLC
  [03] SDK Tools (1.8.0.6016) by AlliedModders LLC
  [04] SDK Hooks (1.8.0.6016) by AlliedModders LLC
  [05] SteamWorks Extension (1.2) by Kyle Sanderson
  [06] DHooks (2.0.4) by AlliedModders

sm plugins list
  05 "Dynamic" (0.0.26) by Neuro Toxin
  151 "WebLync" (0.0.9) by Neuro Toxin
  155 "Web Shortcuts CS:GO version" (2.7) by Franc1sco franug and James "sslice" Gray
The handle is null on creating a http request.

Not exactly sure what the issue could be as it's fine for everyone else.
__________________
Neuro Toxin is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 08-04-2017 , 01:11   Re: [ANY] SteamWorks
Reply With Quote #597

Quote:
Originally Posted by Neuro Toxin View Post
The handle is null on creating a http request.

Not exactly sure what the issue could be as it's fine for everyone else.
Use the latest SM build. Alternatively, if you're a sinner and running Windows let it be known.
KyleS is offline
ReymonARG
Junior Member
Join Date: Jun 2017
Old 08-07-2017 , 09:47   Re: [ANY] SteamWorks
Reply With Quote #598

@KylesS

is there a chance to add something like: SteamWorks_GetHTTPRequestGetOrPostParameter, So in the callback I can get all the Post data that I send without using SteamWorks_SetHTTPRequestContextValue
ReymonARG is offline
Statik
New Member
Join Date: Apr 2014
Old 08-07-2017 , 16:27   Re: [ANY] SteamWorks
Reply With Quote #599

How do i know if a http requests times out while using SteamWorks_SetHTTPRequestNetworkActivityTimeo ut()?

Should i expect to get a k_EHTTPStatusCode408RequestTimeout response?
Statik is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 08-07-2017 , 18:50   Re: [ANY] SteamWorks
Reply With Quote #600

Quote:
Originally Posted by ReymonARG View Post
@KylesS

is there a chance to add something like: SteamWorks_GetHTTPRequestGetOrPostParameter, So in the callback I can get all the Post data that I send without using SteamWorks_SetHTTPRequestContextValue
GetHTTPResponseHeaderValue
Quote:
Originally Posted by Statik View Post
How do i know if a http requests times out while using SteamWorks_SetHTTPRequestNetworkActivityTimeo ut()?

Should i expect to get a k_EHTTPStatusCode408RequestTimeout response?
Is there a WasTimedOut native? If not I can add it np.

Last edited by KyleS; 08-07-2017 at 18:51.
KyleS is offline
Reply


Thread Tools
Display Modes

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 02:29.


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