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

[ANY] SteamWorks


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

Quote:
Originally Posted by asherkin View Post
Please use your own prefix
No problem! Sorry you've already run into trouble
KyleS is offline
KorDen
Member
Join Date: Sep 2012
Old 01-08-2014 , 08:51   Re: [ANY] SteamWorks
Reply With Quote #32

SW_OnValidateClient but SteamWorks_***...
Maybe use one style, e.g. SW_*** for all?
KorDen is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-08-2014 , 09:23   Re: [ANY] SteamWorks
Reply With Quote #33

Quote:
Originally Posted by KorDen View Post
SW_OnValidateClient but SteamWorks_***...
Maybe use one style, e.g. SW_*** for all?
hmm. The namespace is getting pretty cluttered which is why I went with a verbose SteamWorks rather then SW. Old plugins will still work (I'll add a new forward to preserve compatibility). Unless if there's a reason not to
KyleS is offline
KorDen
Member
Join Date: Sep 2012
Old 01-08-2014 , 13:34   Re: [ANY] SteamWorks
Reply With Quote #34

Looks like you don't have .inc file on github. I have a question: which results can be in forwards? I think that copy entire EResult enum to .inc isn't a best way, because there are many states not related to the servers...
KorDen is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 01-08-2014 , 15:09   Re: [ANY] SteamWorks
Reply With Quote #35

Quote:
Originally Posted by KorDen View Post
Looks like you don't have .inc file on github.
Indeed. The Pawn interface may change dramatically if there's a request for a certain style of natives. If we're just mimicking SteamTools, what is present seems sane.
Quote:
Originally Posted by KorDen View Post
I have a question: which results can be in forwards? I think that copy entire EResult enum to .inc isn't a best way, because there are many states not related to the servers...
EResult is a generic enum that's used. I think what it's going to end up as is a folder containing a bunch of incs. Then you just include what you want/need (#include <steamworks/http>). EResult is used with a bunch of callbacks, it would probably be wise to preserve it.
KyleS is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-08-2014 , 15:20   Re: [ANY] SteamWorks
Reply With Quote #36

Quote:
Originally Posted by KorDen View Post
[...]I think you must use Steam_CheckClientSubscription/Steam_GetClientSubscription from SteamTools. Subs for F2P are 36144 (ROW), 36145 (DE), 36146 (AU)
Something like
PHP Code:
bool:IsClientF2P(client)
{
    new 
subIdsubCount Steam_GetNumClientSubscriptions(client);
    for (new 
0subCounti++)
    {
        
subId=Steam_GetClientSubscription(clienti);
        if (
36144 <= subId <= 36146)
        {
            return 
true;
        }
    }
    return 
false;


Yup.

@KyleS: Can you do it?
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
KorDen
Member
Join Date: Sep 2012
Old 01-08-2014 , 15:26   Re: [ANY] SteamWorks
Reply With Quote #37

Quote:
Originally Posted by Dr. Greg House View Post
Yup.
@KyleS: Can you do it?
This already implemented in SteamTools

---
Tested on CS:S Windows. Looks like all works fine. (Test plugin & inc)
https://i.imgur.com/k7WmKFc.png
The only thing I can't understand is why EResult=84 when I disconnect network interface (in enum there are 1-83)

Last edited by KorDen; 01-08-2014 at 15:29.
KorDen is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-08-2014 , 15:29   Re: [ANY] SteamWorks
Reply With Quote #38

Quote:
Originally Posted by KorDen View Post
[...] [...]
My point exactly. There is no steamtools support for l4d2.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.

Last edited by Dr. Greg House; 01-08-2014 at 15:29.
Dr. Greg House is offline
V1SoR
Member
Join Date: Jan 2011
Old 01-08-2014 , 18:04   Re: [ANY] SteamWorks
Reply With Quote #39

Quote:
Originally Posted by Dr. Greg House View Post
My point exactly. There is no steamtools support for l4d2.
Actually there is, since ~Monday. But I'm still betatesting it. Had to cut some hooks and interfaces that aren't present in L4D2, so stuff got kinda complicated. The main issue I'm having right now is that players connecting from the lobby are establishing connection with the server before the Steam functions are hooked. To put it simple, they're skipping the subscription check. Those who connect later or simply reconnect are fine though.
V1SoR is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 01-09-2014 , 04:59   Re: [ANY] SteamWorks
Reply With Quote #40

Would this extension be usefull to fix steam connection loss on linux CS:GO SRCDS (server that don't re-connect to steam until hibernation)?
This is really a pain and occurs sometimes more than once a day, server then need to be empty to allow new user connections (or they get "Session no longer available").

Maybe forcing a heartbeat might get server to re-connect...

Last edited by h3bus; 01-09-2014 at 05:07.
h3bus 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 18:34.


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