Post: [SPRX] Real Way to call functions
07-27-2014, 11:34 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Real Way to call functions



GSSC:
    
struct tocs {
int32_t gsscof;
int32_t toc;
};

tocs gssscfunc = { 0x34A1DC, 0xD67E98 };
typedef void(*Se***SC)(int client, int type, char* command);

Se***SC GSSC = (Se***SC)(tocs*)&gssscfunc;



Se***SC = S e t G S S C <- ngu sucks Happy
How to use:
    
GSSC(0,0,"O \"This is a test\"");



Or like this ( thx to seb5594)
    
#define TOC ( 0xD67E98 )

#include <sys/types.h>

struct opd_s
{
int32_t sub;
int32_t toc;
};

typedef struct scr_entref_t
{
short entnum;
short classnum;
} scr_entref_t;

void SV_GameSendServerCommand(int, char*);

void SV_GameSendServerCommand(int Client, char* Command)
{
opd_s SV1 = { 0x34A1DC, TOC };
void(*SVGSSC)(int client, int type, char* cmd) = (void(*)(int, int, char*))&SV1;
SVGSSC(Client, 0, Command);
}


and remember the toc is diffrent in any games for bo2 its :0xD67E98
Credits:
Me - making it
seb5594
Shark & Vezah - explaining the toc
Last edited by EnVatoHD ; 07-28-2014 at 11:44 AM.

The following 28 users say thank you to EnVatoHD for this useful post:

B777x, Bad Luck Brian, BaSs_HaXoR, Boliberrys, CrEaTiiOn_420, ErasedDev, iRnZ, iTпDM, ItsLollo1000, KareraHekku, LaRip8, milky4444, Norway-_-1999, John, NotALegitPlayer, Notorious, Obris, OLDSCHOOLMODZHD, ryu_hayabusa80, Shark, Swaqq, TotalModzHD, VezahMoDz, wdegrgefwef, Winter, Fatality, xPAQz, xREVISIONxMoDz
07-28-2014, 05:05 PM #11
Swaqq
Professional Thanker
Any idea what the TOC Adress it for ghosts?
Originally posted by EnVatoHD View Post
Real Way to call functions



GSSC:
    
struct tocs {
int32_t gsscof;
int32_t toc;
};

tocs gssscfunc = { 0x34A1DC, 0xD67E98 };
typedef void(*Se***SC)(int client, int type, char* command);

Se***SC GSSC = (Se***SC)(tocs*)&gssscfunc;



Se***SC = S e t G S S C <- ngu sucks Happy
How to use:
    
GSSC(0,0,"O \"This is a test\"");



Or like this ( thx to seb5594)
    
#define TOC ( 0xD67E98 )

#include <sys/types.h>

struct opd_s
{
int32_t sub;
int32_t toc;
};

typedef struct scr_entref_t
{
short entnum;
short classnum;
} scr_entref_t;

void SV_GameSendServerCommand(int, char*);

void SV_GameSendServerCommand(int Client, char* Command)
{
opd_s SV1 = { 0x34A1DC, TOC };
void(*SVGSSC)(int client, int type, char* cmd) = (void(*)(int, int, char*))&SV1;
SVGSSC(Client, 0, Command);
}


and remember the toc is diffrent in any games for bo2 its :0xD67E98
Credits:
Me - making it
seb5594
Shark & Vezah - explaining the toc
07-28-2014, 05:37 PM #12
Notorious
Caprisuns Is Back
Originally posted by NGU View Post
Any idea what the TOC Adress it for ghosts?

0xA7F3F8 Woot

The following user thanked Notorious for this useful post:

07-28-2014, 06:49 PM #13
Akaipwn
Do a barrel roll!
Originally posted by NGU View Post
Any idea what the TOC Adress it for ghosts?


You can just use the idc script "analyze_self.idc" that came along with ps3 loader plugin to easily find out the TOC address from elf
07-28-2014, 08:25 PM #14
Originally posted by ngu View Post
any idea what the toc adress it for ghosts?


0xa7f3f8
07-28-2014, 11:48 PM #15
Originally posted by SC58 View Post
Like this was ever hard to do lol

But since everyone has it hopefully people will do nice things with this beside cod

Dude, seriously... do us all a favor, and just signoff... and by signoff... i mean permanently. Like Forever. Your smart-ass replies are pretty lame, and your a wannabe know it all. #Get Called out on BS

Reason: You keep acting like you know it all, saying "Like this was ever hard to do lol", when in reality you wait for something to be posted to act like you know what your talking about. How are you even helpful to this community?
Last edited by BaSs_HaXoR ; 07-28-2014 at 11:51 PM. Reason: #reason

The following 21 users say thank you to BaSs_HaXoR for this useful post:

Absolute Zero, Bad Luck Brian, drew111, ErasedDev, geegeewap, JLM, Jannik007, Joren, juant12, MaNamesTyler, John, Notorious, SC58, scal-v, Smooth, Sticky, Swaqq, Xcesar1911X, xPAQz
07-29-2014, 12:20 AM #16
Absolute Zero
Do your homework, fool.
Forreal man, I can't stand that shit.
07-29-2014, 12:24 AM #17
SC58
Former Staff
Originally posted by HaXoR View Post
Dude, seriously... do us all a favor, and just signoff... and by signoff... i mean permanently. Like Forever. Your smart-ass replies are pretty lame, and your a wannabe know it all. #Get Called out on BS

Reason: You keep acting like you know it all, saying "Like this was ever hard to do lol", when in reality you wait for something to be posted to act like you know what your talking about. How are you even helpful to this community?


Damn if it's lame and bother's you that bad why don't you grow up and ignore me or block me on here lol

Or Is that too much to ask for cause your one of them people who love to here what everyone is saying?
07-29-2014, 01:03 AM #18
Chris
Former Staff
Originally posted by SC58 View Post
Damn if it's lame and bother's you that bad why don't you grow up and ignore me or block me on here lol

Or Is that too much to ask for cause your one of them people who love to here what everyone is saying?


Well honestly, he does have a point.

After seeing a lot of your posts, you mainly criticize people's work and posts. Like seriously, there's no need to make such an irrelevant post like "This is stupid... Why not use GSC when you can do more or use some Assets edit in real time instead of basic stuff lol" You could be giving people advice on what they should be doing to improve.

Not trying to say that you're the only one in the wrong, but it's one of the main reasons why the PS3 Modding Community is broken up now.
07-29-2014, 01:11 AM #19
Smooth
< ^ > < ^ >
Originally posted by HaXoR View Post
Dude, seriously... do us all a favor, and just signoff... and by signoff... i mean permanently. Like Forever. Your smart-ass replies are pretty lame, and your a wannabe know it all. #Get Called out on BS

Reason: You keep acting like you know it all, saying "Like this was ever hard to do lol", when in reality you wait for something to be posted to act like you know what your talking about. How are you even helpful to this community?


you're* :troll:

ahhh im just porkin you :troll:

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo