IPB

Welcome Guest ( Log In | Register )

> RCBot 2 crashed by 'The Classless Update'?, Answer
JohnnyAxe
post Aug 14 2009, 03:09 AM
Post #1


Member
**

Group: Members
Posts: 33
Joined: 7-July 09
From: Portugal
Member No.: 1,604



Since 'The Classless Update' was released, I can't play with bots anymore.

It's the usual 'hl2.exe has stopped working' message as soon as I try adding bots.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
bir3yk
post Aug 15 2009, 06:29 AM
Post #2


RCBot Fan
****

Group: Members
Posts: 107
Joined: 4-June 09
Member No.: 1,566



CODE
// -------------------------------------------------------------------------------------------------------------- //

// SendProp.

// -------------------------------------------------------------------------------------------------------------- //



// If SendProp::GetDataTableProxyIndex() returns this, then the proxy is one that always sends

// the data to all clients, so we don't need to store the results.

#define DATATABLE_PROXY_INDEX_NOPROXY    255

#define DATATABLE_PROXY_INDEX_INVALID    254



class SendProp

{

public:

                        SendProp();

    virtual                ~SendProp();



    void                Clear();



    int                    GetOffset() const;

    void                SetOffset( int i );



    SendVarProxyFn        GetProxyFn() const;

    void                SetProxyFn( SendVarProxyFn f );

    

    SendTableProxyFn    GetDataTableProxyFn() const;

    void                SetDataTableProxyFn( SendTableProxyFn f );

    

    SendTable*            GetDataTable() const;

    void                SetDataTable( SendTable *pTable );



    char const*            GetExcludeDTName() const;

    

    // If it's one of the numbered "000", "001", etc properties in an array, then

    // these can be used to get its array property name for debugging.

    const char*            GetParentArrayPropName();

    void                SetParentArrayPropName( char *pArrayPropName );



    const char*            GetName() const;



    bool                IsSigned() const;

    

    bool                IsExcludeProp() const;

    

    bool                IsInsideArray() const;    // Returns true if SPROP_INSIDEARRAY is set.

    void                SetInsideArray();



    // Arrays only.

    void                SetArrayProp( SendProp *pProp );

    SendProp*            GetArrayProp() const;



    // Arrays only.

    void                    SetArrayLengthProxy( ArrayLengthSendProxyFn fn );

    ArrayLengthSendProxyFn    GetArrayLengthProxy() const;



    int                    GetNumElements() const;

    void                SetNumElements( int nElements );



    // Return the # of bits to encode an array length (must hold GetNumElements()).

    int                    GetNumArrayLengthBits() const;



    int                    GetElementStride() const;



    SendPropType        GetType() const;



    int                    GetFlags() const;

    void                SetFlags( int flags );    



    // Some property types bind more data to the SendProp in here.

    const void*            GetExtraData() const;

    void                SetExtraData( const void *pData );



public:



    RecvProp        *m_pMatchingRecvProp;    // This is temporary and only used while precalculating

                                                // data for the decoders.



    SendPropType    m_Type;

    int                m_nBits;

    float            m_fLowValue;

    float            m_fHighValue;

    

    SendProp        *m_pArrayProp;                    // If this is an array, this is the property that defines each array element.

    ArrayLengthSendProxyFn    m_ArrayLengthProxy;    // This callback returns the array length.

    

    int                m_nElements;        // Number of elements in the array (or 1 if it's not an array).

    int                m_ElementStride;    // Pointer distance between array elements.



    union

    {

        char *m_pExcludeDTName;            // If this is an exclude prop, then this is the name of the datatable to exclude a prop from.

        char *m_pParentArrayPropName;

    };



    char            *m_pVarName;

    float            m_fHighLowMul;

    

private:



    int                    m_Flags;                // SPROP_ flags.



    SendVarProxyFn        m_ProxyFn;                // NULL for DPT_DataTable.

    SendTableProxyFn    m_DataTableProxyFn;        // Valid for DPT_DataTable.

    

    SendTable            *m_pDataTable;

    

    // SENDPROP_VECTORELEM makes this negative to start with so we can detect that and

    // set the SPROP_IS_VECTOR_ELEM flag.

    int                    m_Offset;



    // Extra data bound to this property.

    const void            *m_pExtraData;

};



are 4 bytes must be added?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
JohnnyAxe   RCBot 2 crashed by 'The Classless Update'?   Aug 14 2009, 03:09 AM
bir3yk   need to compile RCbot2, on a dedicated server linu...   Aug 14 2009, 06:42 AM
MacinSam   Yup, it's broke.   Aug 14 2009, 01:54 PM
Cheeseh   Yup, it's broke. great, someone else will ne...   Aug 14 2009, 02:02 PM
bir3yk   where you can download SDK update? Give the link. ...   Aug 14 2009, 02:11 PM
Fillmore   where you can download SDK update? Give the link....   Aug 14 2009, 02:12 PM
bir3yk   In SVN some of the SDK that is:)   Aug 14 2009, 02:15 PM
Cheeseh   In SVN some of the SDK that is:) get it from Ste...   Aug 14 2009, 02:32 PM
bir3yk   already try:)   Aug 14 2009, 02:38 PM
JohnnyAxe   Keep yer fingers crossed boys.   Aug 14 2009, 02:57 PM
Weasel   Quote from the SourceMod forums, I assume RCBot is...   Aug 14 2009, 08:27 PM
Cheeseh   RE: RCBot 2 crashed by 'The Classless Update'?   Aug 14 2009, 11:43 PM
bir3yk   // -----------------------------------------------...   Aug 15 2009, 06:29 AM
Cheeseh   // -----------------------------------------------...   Aug 15 2009, 08:48 AM
343N   IS that the fix'd code Cheeseh? Because i went...   Aug 15 2009, 11:32 AM
bir3yk   Cheeseh everything is good to compile in linux wor...   Aug 15 2009, 02:03 PM
DrPuffinKind   has anyone had any luck with windows?... i will ha...   Aug 15 2009, 04:55 PM
bir3yk   sorry, I can not compile under windows.   Aug 15 2009, 05:02 PM
Paul   I have made a recompilation under Windows, check m...   Aug 16 2009, 04:07 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th July 2025 - 06:06 AM