This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Module: Orpheu (v2.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-21-2010 , 18:20   Re: Module: Orpheu2.2
Reply With Quote #221

contributing *_*

netadr_t.h
Code:
#include <structData.h>

typedef enum
{
    NA_UNUSED,
    NA_LOOPBACK,
    NA_BROADCAST,
    NA_IP,
    NA_IPX,
    NA_BROADCAST_IPX,
} netadrtype_t;

typedef struct netadr_s
{
    netadrtype_t    type;
    unsigned char    ip[4];
    unsigned char    ipx[10];
    unsigned short    port;
} netadr_t;


class netadr : public StructData<netadr_t>
{
    public:

        netadr()
        {    
            addMember("type",&structure->type,Types[TypeLong]);
            addMember("ip",&structure->ip,Types[TypeString]);
            addMember("ipx",&structure->ipx,Types[TypeString]);
            addMember("port",&structure->port,Types[TypeLong]);
        }

        string getName() 
        {
            return "netadr_t *";
        };
};
could you add this one below same way in exchange? ^^


btw, i'm not sure how to add structs which use strucks which use strucks x_X

Code:
                                                                                                                                                                       
client_t                struct {int Active;int ActiveFlag1;int ActiveFlag2;int Spawned;int Unks01[4];netchan_t netchan;int Choke;int FrameNum;int IsBot;int IsHLTV;int Unks5[7];int UpdPingFlags;int Unks5_1[5];int cmdtime_Pad;double cmdtime_Start;double cmdtime_Diff;double cmdtime_NextTick;int Unk1_1_1;float CurLossCount;int Unk1_1_1_1[2];double NextPingCalcTime;int Unks1_1_2[2];sizebuf_t datagram;int BufPad;int Unks12[1002];double NextSendTime;double UpdPacketInterval;int CanSend;int Unks13;clientframe_t *FramesData;int Unkse[1408];edict_t *PlrEdict;edict_t *ViewEntity;int UserID;clientid_t clid;int PadBuf;char InfoBuffer[256];int Unke1;int Unke2;char CDKey[64];char PlrName[32];int TopColor;int BottomColor;int Unkse3[112];int MapCRC;int cl_lw;int cl_lc;int Unkse4[67];}       

// and needed strucks by the one above... may add the rest later

netchan_t              struct {int NetSrc;netadr_t adr;int ClientID;float last_recv;float connect_time;int Unk1;double rate;double clear_time;int incoming_sequence;int incoming_acknowledged;int incoming_reliable_acknowledged;int incoming_reliable_sequence;int outgoing_sequence;int reliable_sequence;int last_reliable_sequence;void *GetFragSize_param;void *GetFragSize_func;sizebuf_t msg;byte msg_buf[3992];int reliable_length;byte reliable_buf[3992];fragbufwaiting_t *waitlist[2];int reliable_fragment[2];unsigned int reliable_fragid[2];fragbuf_t *fragbufs[2];int fragbufcount[2];__int16 frag_startpos[2];__int16 frag_length[2];fragbuf_t *incomingbufs[2];qboolean incomingready[2];char incoming_filename[260];char *CustFileBuffer;int CustFileSize;flow_t flow1;flow_t flow2;}                                                                                                                                                                                                                                                                              


clientid_t               struct {int ID_Type;int _Pad;int ID_Ident1;int ID_Ident2;int ID_Unk;}
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 02-21-2010 at 18:27.
Owyn is offline
Send a message via ICQ to Owyn
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-21-2010 , 18:28   Re: Module: Orpheu2.2
Reply With Quote #222

Quote:
Originally Posted by Owyn View Post
contributing *_*

netadr_t.h
Code:
#include <structData.h>

typedef enum
{
    NA_UNUSED,
    NA_LOOPBACK,
    NA_BROADCAST,
    NA_IP,
    NA_IPX,
    NA_BROADCAST_IPX,
} netadrtype_t;

typedef struct netadr_s
{
    netadrtype_t    type;
    unsigned char    ip[4];
    unsigned char    ipx[10];
    unsigned short    port;
} netadr_t;


class netadr : public StructData<netadr_t>
{
    public:

        netadr()
        {    
            addMember("type",&structure->type,Types[TypeLong]);
            addMember("ip",&structure->ip,Types[TypeString]);
            addMember("ipx",&structure->ipx,Types[TypeString]);
            addMember("port",&structure->port,Types[TypeLong]);
        }

        string getName() 
        {
            return "netadr_t *";
        };
};
could you add this one below same way in exchange? ^^


Code:
clientid_t               struct {int ID_Type;int _Pad;int ID_Ident1;int ID_Ident2;int ID_Unk;}                                                                        

                                                                                                                                                                         
client_t                struct {int Active;int ActiveFlag1;int ActiveFlag2;int Spawned;int Unks01[4];netchan_t netchan;int Choke;int FrameNum;int IsBot;int IsHLTV;int Unks5[7];int UpdPingFlags;int Unks5_1[5];int cmdtime_Pad;double cmdtime_Start;double cmdtime_Diff;double cmdtime_NextTick;int Unk1_1_1;float CurLossCount;int Unk1_1_1_1[2];double NextPingCalcTime;int Unks1_1_2[2];sizebuf_t datagram;int BufPad;int Unks12[1002];double NextSendTime;double UpdPacketInterval;int CanSend;int Unks13;clientframe_t *FramesData;int Unkse[1408];edict_t *PlrEdict;edict_t *ViewEntity;int UserID;clientid_t clid;int PadBuf;char InfoBuffer[256];int Unke1;int Unke2;char CDKey[64];char PlrName[32];int TopColor;int BottomColor;int Unkse3[112];int MapCRC;int cl_lw;int cl_lc;int Unkse4[67];}
I haven't saw your post. Your code is right but, there is a problem. Unsigned char arrays are different from strings. They are not null terminated and that changes everything. This is something I knew that would be needed but I can't make it now. Support for arrays and support for adding types as sub plugins. So for now just forget it.

About enums you can use "int"
__________________
joaquimandrade is offline
Immortal_BLG
Member
Join Date: Feb 2010
Location: RUSSIA
Old 02-21-2010 , 23:47   Re: Module: Orpheu2.2
Reply With Quote #223

Sorry, another question. How to find a pointer to the object of the CGameRules? (like entity->pvPrivateData)
Immortal_BLG is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-22-2010 , 00:05   Re: Module: Orpheu2.2
Reply With Quote #224

Quote:
Originally Posted by Immortal_BLG View Post
Sorry, another question. How to find a pointer to the object of the CGameRules? (like entity->pvPrivateData)
Do you already have the decompiled version of the libraries?

If so, in linux one you can see:

PHP Code:
// 1D1358: using guessed type int g_pGameRules; 
In windows one:

Searching by "exec game.cfg\n" you find InstallGameRules (sub_10088530).
Searching by sub_10088530 you find dword_10162304 = (void *)sub_10088530();

So:
Code:
[
    {
        "name"        : "g_pGameRules",
        "library"     : "mod",
        "type"        : "CGameRules *",
        "memoryType"  : "data",
        "identifiers" : 
        [
            {
                "os"    : "windows",
                "mod"   : "cstrike",
                "value" : 0x162304
            },
            {
                "os"    : "linux",
                "mod"   : "cstrike",
                "value" : 0x1D1358
            }
        ]
    }   
]
If you know how to make signatures, make them instead of offsets.
To use this then:
PHP Code:
OrpheuMemoryGet("g_pGameRules"
__________________
joaquimandrade is offline
Immortal_BLG
Member
Join Date: Feb 2010
Location: RUSSIA
Old 02-22-2010 , 00:24   Re: Module: Orpheu2.2
Reply With Quote #225

I don't have decompiled versions of libraries, but I found it by "exec game.cfg\n", thank you!
Immortal_BLG is offline
culd
Member
Join Date: Aug 2009
Old 02-26-2010 , 09:23   Re: Module: Orpheu2.2
Reply With Quote #226

How can I get the hardware ID of a user ...

The hardware id would have to be this way
105A-B529-B2CC-5C34-F9CD-A0DF-A8B8

The server is on Windows and is NO STEAM

An example to a child of 10 years, please
culd is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-26-2010 , 09:33   Re: Module: Orpheu2.2
Reply With Quote #227

no steam is not supported on this forum.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
culd
Member
Join Date: Aug 2009
Old 02-26-2010 , 09:57   Re: Module: Orpheu2.2
Reply With Quote #228

Quote:
Originally Posted by ConnorMcLeod View Post
no steam is not supported on this forum.
Ok, no problem. As for windows would be on Steam?
culd is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-26-2010 , 10:04   Re: Module: Orpheu2.2
Reply With Quote #229

Use SteamID, it's unique.
__________________
Arkshine is offline
culd
Member
Join Date: Aug 2009
Old 02-26-2010 , 10:58   Re: Module: Orpheu2.2
Reply With Quote #230

Quote:
Originally Posted by Arkshine View Post
Use SteamID, it's unique.
Thank you very much for telling me how to get the hardware ID using this module .. Thank you so much ...
culd 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 13:38.


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