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

[EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots


Post New Thread Reply   
 
Thread Tools Display Modes
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 10-02-2009 , 16:38   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #511

I would help but I dont know how to compile extensions. Ask on IRC for help with that.
__________________

DontWannaName is offline
CS:S*
BANNED
Join Date: Jun 2009
Old 10-02-2009 , 16:53   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #512

i don't know how to connect to irc and what do i have to ask there and who ?
CS:S* is offline
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 10-02-2009 , 18:40   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #513

Quote:
Originally Posted by CS:S* View Post
i don't know how to connect to irc and what do i have to ask there and who ?
Here: http://lmgtfy.com/?q=IRC+Client

Once you get an IRC client (there's many free and shareware ones). I use mIRC and it has a pretty good help built in. You'll also need the information found here: http://www.sourcemod.net/irc.php

Once you get into the SourceMod channel, look for pRed* since he is the creator of this extension. As long as the crabs are running right, he maybe able to help you.
SuperShadow is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 10-05-2009 , 07:43   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #514

Quote:
Originally Posted by Keeper View Post
Ok, I don't know if EP1 is working yet or not, but Here is what I did to get it to work based on pRED's code from the first post:
Code:
    CSteamID SteamID;

    Q_memset ( &SteamID, 0, sizeof(SteamID) );
    memcpy ( &SteamID, &more[8], sizeof(SteamID) );
The steam info isn't in the same parameter as in the OB, it's actually in the 9th parameter. Parameter 10 is the length of data within parameter 9.

If somebody wants to update the latest download. So it goes from
Code:
#if defined ORANGEBOX_BUILD
    CSteamID SteamID;

    if(steamcert != NULL && len >= 20) 
    {
        memcpy(&SteamID, &steamcert[12], sizeof(SteamID));

        if(SteamID.GetEAccountType() != 1 || SteamID.GetEUniverse() != 1) 
        {
            return CONNECT_CALL
        }
    }
    else
    {
        return CONNECT_CALL
    }
#endif
in extension.cpp to
Code:
    CSteamID SteamID;

#if defined ORANGEBOX_BUILD
    if(steamcert != NULL && len >= 20) 
    {
        memcpy(&SteamID, &steamcert[12], sizeof(SteamID));
#else
    if(more != NULL && unknowns >= 16) 
    {
        memcpy(&SteamID, &more[8], sizeof(SteamID));
#endif
        if(SteamID.GetEAccountType() != 1 || SteamID.GetEUniverse() != 1) 
        {
            return CONNECT_CALL
        }
    }
    else
    {
        return CONNECT_CALL
    }
Nice work keeper gonna try that as soon as I'm home today.
I was trying out the extension once, and I was disappointed the SteamID parameter being empty in hl2dm...
Once this is stable, it should become part of sourcemod.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
CS:S*
BANNED
Join Date: Jun 2009
Old 10-05-2009 , 07:47   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #515

berni can u make it work for CS:S
CS:S* is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 10-05-2009 , 13:41   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #516

I just compiled Keeper's change, but it seems there is no difference, it still doesn't get the SteamID... it's always blank
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Keeper
Senior Member
Join Date: Nov 2006
Old 10-05-2009 , 13:53   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #517

I have done this in a plugin already and it definitely does work. I would debug it and see what is being sent. Are you sure the detour is working?

Last edited by Keeper; 10-05-2009 at 14:09.
Keeper is offline
CS:S*
BANNED
Join Date: Jun 2009
Old 10-05-2009 , 14:16   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #518

Keeper why don't you give the plugin here or is not free?
CS:S* is offline
Keeper
Senior Member
Join Date: Nov 2006
Old 10-05-2009 , 14:18   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #519

It's not a SourceMod plugin. It will be part of our next release of Mani. But I posted what I found for EP1 so somebody here could make it part of this extension. I don't know why it's showing as blank for EP1.
Keeper is offline
CS:S*
BANNED
Join Date: Jun 2009
Old 10-05-2009 , 14:39   Re: [EXTENSION] CBaseServer (+ Detouring class) - Reserved Slots with 0 wasted slots
Reply With Quote #520

i hope berni will ix it so we can have this on CS:S
CS:S* 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 12:57.


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