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

[ANY] SteamWorks


Post New Thread Reply   
 
Thread Tools Display Modes
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 03-08-2015 , 22:29   Re: [ANY] SteamWorks
Reply With Quote #281

Quote:
Originally Posted by RedSword View Post
ISteamHTTP & ISteamGameServerStats = in what case would that happen ? Someone recompiling SteamWorks ? (my C++ knowledge of SM extensions is rather poor).

No but I expect to maybe test with DoD:S this week.

Is it possible that your extension is only partially supported for a mod ? I ask because Asherkin said that his SteamTools wasn't working at some point (here Asher talks using past tense) for CSS; while is it still working for me (but I only use SteamTools' Steam_RequestGroupStatus and Steam_GroupStatusResult)

Also CSS/CSGO/L4D(2)/TF2 all works 100% ? (curiosity; due to the paragraph above I expect possible similar partial-support)

Red
There's nothing that's used from the engine, if you use the same Steam library (which you can typically upgrade without issue) as what was compiled this works 100%. If you're using an outdated build, it's possible you're going to have a bad time (certain forwards not firing).

RequestGroupStatus and the like will totally work.
KyleS is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 03-14-2015 , 04:46   Re: [ANY] SteamWorks
Reply With Quote #282

Hey just to let you know that Steam groups doesn't seem to work under NMRIH.

This game has a strange/interesting behaviour : it triggers SteamWorks_OnClientGroupStatus automatically with the group 4458555 (which is this (probably official) group). Also, I don't know if SteamWorks_GetUserGroupStatus sends a request or not, but I'm unable to receive any subsequent request in SteamWorks_OnClientGroupStatus (i.e. the groups I sent; hence me not knowing if SteamWorks_GetUserGroupStatus works).

I was able to use SteamWorks_GetPublicIP without problem though; so I expect non-Steam groups stuff to work fine.

p.s. Windows

EDIT : I also get "GetForwardFunctionCount" reported : Invalid forward handle 0 (error 4) in your swag.sp; at a lien with
Code:
if (GetForwardFunctionCount(g_hSteamServersConnected) == 0)
RE-EDIT : I'm asking them : http://www.nomoreroominhell.com/foru...howtopic=12128
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 03-14-2015 at 18:02.
RedSword is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-14-2015 , 09:58   Re: [ANY] SteamWorks
Reply With Quote #283

The game is almost certainly eating the request in its own handler.
__________________
asherkin is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 03-18-2015 , 21:04   Re: [ANY] SteamWorks
Reply With Quote #284

Hey KyleS,

Just to let you know that SteamTools' Steam groups functions actually works fine with NMRiH; but that's not the case for SteamWorks. I didn't investigate further. If you want me to test particular build on NMRiH I can.

Red

p.s. I also updated @ NMRiH forum; though nothing more is said.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 03-18-2015 at 21:07.
RedSword is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 03-18-2015 , 21:12   Re: [ANY] SteamWorks
Reply With Quote #285

Hi Kyle or Void or anyone else that can help me,
I try to move my network stuff with steamwork and I did a quick first test but I got a c++ assert error
http://gyazo.com/21905c50c6c9b2439088d59135d9849a


Sorry I had to blank out some of the information but I tried to do the call with www.hurl.it with the similar settings and it is working correctly. I was just wondering if I was in fault or if there is a bug some where
PHP Code:
#include <sourcemod>
#include <steamwork>

public void OnPluginStart()
{
    
char body[] = "{"\Sum_Json_Data\":\"Herro\"}";

    
/* HEADER */
    
Handle request SteamWorks_CreateHTTPRequest(k_EHTTPMethodPOST"game.test.duhherro.com/api/sayhi");
    
SteamWorks_SetHTTPRequestHeaderValue(request"my-api-key""GHAGSSIUOAGHBYIAGIAGHUJKS");
    
    
/* OPTIONS */
    
SteamWorks_WriteHTTPResponseBodyToFile(request"steamwork_response.txt");
    
SteamWorks_SetHTTPRequestNetworkActivityTimeout(request10);
    
SteamWorks_SetHTTPCallbacks(requestSteamWork_OnHTTRequestCompleted);
    
    
/* BODY */
    
SteamWorks_SetHTTPRequestRawPostBody(request"application/json; charset=UTF-8"bodysizeof(body));
    
    
/* SEND */
    
SteamWorks_SendHTTPRequest(request);
}

public 
int SteamWork_OnHTTRequestCompleted(Handle requestbool bFailurebool bRequestSuccessfulEHTTPStatusCode eStatusCode)
{

    
PrintToServer("CNetwork -> Request Completed!");
    
PrintToServer("Params Data -> \"bFailure\": %d \"bRequestSuccessful\": %d \"eStatusCode\": %d"bFailurebRequestSuccessfuleStatusCode);

    if (
bRequestSuccessful && !bFailure && eStatusCode == k_EHTTPStatusCode200OK)
        
PrintToServer("CNetwork -> Request Was a Success!");
    
    
int bodySize;
    
SteamWorks_GetHTTPResponseBodySize(requestbodySize);
    
char[] body = new char[bodySize];
    
SteamWorks_GetHTTPResponseBodyData(requestbodybodySize);

PS: I though it was important to point out that my web server did not receive anything (I beleive)
and that SteamWorks_WriteHTTPResponseBodyToFile did not even attempt to create a file.

EDIT: I removed SteamWorks_WriteHTTPResponseBodyToFile but error still persist (I just though maybe it was not an option and more like an after response data gather thing)

Last edited by Mathias.; 03-18-2015 at 21:19.
Mathias. is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 03-18-2015 , 21:26   Re: [ANY] SteamWorks
Reply With Quote #286

Quote:
Originally Posted by Black-Rabbit View Post
Hi Kyle or Void or anyone else that can help me,
I try to move my network stuff with steamwork and I did a quick first test but I got a c++ assert error
http://gyazo.com/21905c50c6c9b2439088d59135d9849a


Sorry I had to blank out some of the information but I tried to do the call with www.hurl.it with the similar settings and it is working correctly. I was just wondering if I was in fault or if there is a bug some where
PHP Code:
#include <sourcemod>
#include <steamwork>

public void OnPluginStart()
{
    
char body[] = "{"\Sum_Json_Data\":\"Herro\"}";

    
/* HEADER */
    
Handle request SteamWorks_CreateHTTPRequest(k_EHTTPMethodPOST"game.test.duhherro.com/api/sayhi");
    
SteamWorks_SetHTTPRequestHeaderValue(request"my-api-key""GHAGSSIUOAGHBYIAGIAGHUJKS");
    
    
/* OPTIONS */
    
SteamWorks_WriteHTTPResponseBodyToFile(request"steamwork_response.txt");
    
SteamWorks_SetHTTPRequestNetworkActivityTimeout(request10);
    
SteamWorks_SetHTTPCallbacks(requestSteamWork_OnHTTRequestCompleted);
    
    
/* BODY */
    
SteamWorks_SetHTTPRequestRawPostBody(request"application/json; charset=UTF-8"bodysizeof(body));
    
    
/* SEND */
    
SteamWorks_SendHTTPRequest(request);
}

public 
int SteamWork_OnHTTRequestCompleted(Handle requestbool bFailurebool bRequestSuccessfulEHTTPStatusCode eStatusCode)
{

    
PrintToServer("CNetwork -> Request Completed!");
    
PrintToServer("Params Data -> \"bFailure\": %d \"bRequestSuccessful\": %d \"eStatusCode\": %d"bFailurebRequestSuccessfuleStatusCode);

    if (
bRequestSuccessful && !bFailure && eStatusCode == k_EHTTPStatusCode200OK)
        
PrintToServer("CNetwork -> Request Was a Success!");
    
    
int bodySize;
    
SteamWorks_GetHTTPResponseBodySize(requestbodySize);
    
char[] body = new char[bodySize];
    
SteamWorks_GetHTTPResponseBodyData(requestbodybodySize);

PS: I though it was important to point out that my web server did not receive anything (I beleive)
and that SteamWorks_WriteHTTPResponseBodyToFile did not even attempt to create a file.

EDIT: I removed SteamWorks_WriteHTTPResponseBodyToFile but error still persist (I just though maybe it was not an option and more like an after response data gather thing)
You're correct, SteamWorks_WriteHTTPResponseBodyToFile is not an option. Your host game.test.duhherro.com doesn't appear to exist.
KyleS is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 03-19-2015 , 00:42   Re: [ANY] SteamWorks
Reply With Quote #287

it was an example the real domain exist but I cannot share it. But that assert, what is the line to it, I can't find the source of steamworks on the internet. aslo the eStatusCode = 0 which mean something is wrong, even if domain don't exist would it not send me a different error?
Mathias. is offline
Bubka3
Sir Buzz Killington, Esq.
Join Date: Jan 2010
Location: New York, NY
Old 03-21-2015 , 16:18   Re: [ANY] SteamWorks
Reply With Quote #288

Quote:
Originally Posted by RedSword View Post
Hey KyleS,

Just to let you know that SteamTools' Steam groups functions actually works fine with NMRiH; but that's not the case for SteamWorks. I didn't investigate further. If you want me to test particular build on NMRiH I can.

Red

p.s. I also updated @ NMRiH forum; though nothing more is said.
So is this my problem or not?
Bubka3 is offline
Bubka3
Sir Buzz Killington, Esq.
Join Date: Jan 2010
Location: New York, NY
Old 03-28-2015 , 21:30   Re: [ANY] SteamWorks
Reply With Quote #289

I looked into it and we're using STEAM_GAMESERVER_CALLBACK to check this.

Last edited by Bubka3; 03-28-2015 at 21:31.
Bubka3 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 03-29-2015 , 11:23   Re: [ANY] SteamWorks
Reply With Quote #290

Quote:
Originally Posted by Bubka3 View Post
I looked into it and we're using STEAM_GAMESERVER_CALLBACK to check this.
That is causing all GSClientGroupStatus_t callbacks to be eaten. It's not really your fault though. It can't be used with the CallResult API due to it predating it and not giving a SteamAPICall_t.

Last edited by psychonic; 03-30-2015 at 06:48.
psychonic 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 06:01.


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