Post: [BETA] C++ PS3Lib (CCAPI/TMAPI)
06-28-2015, 09:37 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hi Ngu Smile, so i figured id give ccapi another try, this time i came out allot more successful than last time.
I have made this library for beginers. it is very easy to use, it works just like IMCSX's ps3lib.
Tutorial:
1: Setting the API
    
#include "PS3Lib.h"
void SetCCAPI_API_Example()
{
PS3::SetAPI(PS3::API::CCAPI);
}
void SetTMAPIAPI_API_Example()
{
PS3::SetAPI(PS3::API::TMAPI);
}

2. Connecting And Attaching
    
//CCAPI
const char* ip = "192.168.0.0";
PS3::Connect(ip);
PS3::Attach();
//TMAPI
PS3::Connect(DEFAULT_TMAPI_IP);
PS3::Attach();

3. Using functions
Use EN to access CCAPI function and SN to access TMAPI functions
    
//CCAPI
EC::RingBuzzer(EC::BuzzerMode:Happyouble);
//TMAPI
uint example = SN::ProcessID;

4. memory functions
to write or read memory use the functions in the PS3 namespace the functions will check to see which api you are using so you dont have to worry about it
example:
    
PS3::WriteString(0x00000,":P");

5: lastly i coded a very basic library for beginers just access the Lib namespace to use it
    
wchar_t* wstr = Lib::CStrToWStr(":P");

you can get my library here: You must login or register to view this content.
virus scan: not needed(headers cant be executed)
and a example project(vs2012) : You must login or register to view this content.
Notes/Bugs:
tested in Visual Studio 2012, 2013 U and Qt Creator 5.2.0
BE SURE TO HAVE CCAPI.dll AND ps3tmapi.dll in you executable directory
thanks to seb5594 for his small library
any suggestions or questions contact milky4444 on nextgenupdate
BUGS:
1: (CCAPI)SetMemory: writes bytes, but adds a 214 byte header to the normal byte array
2: (CCAPI)GetMemory: has somewhat the same problem
3: (CCAPI)Set*********: need to re-create enstones StringToByteArray function

EXTRA: If you receive multiple errors when building a project in Qt (providing you are using it) then try using this revised edition to solve your problem there: You must login or register to view this content.
Last edited by Geo ; 06-30-2015 at 08:29 AM.

The following 12 users say thank you to milky4444 for this useful post:

anxify, Boliberrys, Geo, NickBeHaxing, John, seb5594, Kronos, Smoky420, Sunnis, vicious_results, Laser, xMrJR
06-28-2015, 09:41 PM #2
Geo
Don't Believe The Title
Very simple to use, nice :yes:

The following user thanked Geo for this useful post:

anxify
06-28-2015, 09:43 PM #3
Wow, this is great! Thanks Happy

The following user thanked John for this useful post:

anxify
06-29-2015, 05:08 PM #4
NickBeHaxing
Stoner Zone
Originally posted by milky4444 View Post
Hi Ngu Smile, so i figured id give ccapi another try, this time i came out allot more successful than last time.
I have made this library for beginers. it is very easy to use, it works just like IMCSX's ps3lib.
Tutorial:
1: Setting the API
    
#include "PS3Lib.h"
void SetCCAPI_API_Example()
{
PS3::SetAPI(PS3::API::CCAPI);
}
void SetTMAPIAPI_API_Example()
{
PS3::SetAPI(PS3::API::TMAPI);
}

2. Connecting And Attaching
    
//CCAPI
const char* ip = "192.168.0.0";
PS3::Connect(ip);
PS3::Attach();
//TMAPI
PS3::Connect(DEFAULT_TMAPI_IP);
PS3::Attach();

3. Using functions
Use EN to access CCAPI function and SN to access TMAPI functions
    
//CCAPI
EC::RingBuzzer(EC::BuzzerMode:Happyouble);
//TMAPI
uint example = SN::ProcessID;

4. memory functions
to write or read memory use the functions in the PS3 namespace the functions will check to see which api you are using so you dont have to worry about it
example:
    
PS3::WriteString(0x00000,":P");

5: lastly i coded a very basic library for beginers just access the Lib namespace to use it
    
wchar_t* wstr = Lib::CStrToWStr(":P");

you can get my library here: You must login or register to view this content.
virus scan: not needed(headers cant be executed)
and a example project(vs2012) : You must login or register to view this content.
Notes/Bugs:
tested in Visual Studio 2012, 2013 U and Qt Creator 5.2.0
BE SURE TO HAVE CCAPI.dll AND ps3tmapi.dll in you executable directory
thanks to seb5594 for his small library
any suggestions or questions contact milky4444 on nextgenupdate
BUGS:
1: (CCAPI)SetMemory: writes bytes, but adds a 214 byte header to the normal byte array
2: (CCAPI)GetMemory: has somewhat the same problem
3: (CCAPI)Set*********: need to re-create enstones StringToByteArray function


Great Work!
06-30-2015, 08:30 AM #5
Geo
Don't Believe The Title
Updated thread with revised edition if this is being used within Qt Creator instead of Visual Studio. Should fix any build errors. #Squad
Last edited by Geo ; 06-30-2015 at 08:33 AM.

The following 2 users say thank you to Geo for this useful post:

NickBeHaxing
07-01-2015, 02:17 PM #6
Very nice work.
07-05-2015, 04:51 PM #7
Originally posted by milky4444 View Post
Hi Ngu Smile, so i figured id give ccapi another try, this time i came out allot more successful than last time.
I have made this library for beginers. it is very easy to use, it works just like IMCSX's ps3lib.
Tutorial:
1: Setting the API
    
#include "PS3Lib.h"
void SetCCAPI_API_Example()
{
PS3::SetAPI(PS3::API::CCAPI);
}
void SetTMAPIAPI_API_Example()
{
PS3::SetAPI(PS3::API::TMAPI);
}

2. Connecting And Attaching
    
//CCAPI
const char* ip = "192.168.0.0";
PS3::Connect(ip);
PS3::Attach();
//TMAPI
PS3::Connect(DEFAULT_TMAPI_IP);
PS3::Attach();

3. Using functions
Use EN to access CCAPI function and SN to access TMAPI functions
    
//CCAPI
EC::RingBuzzer(EC::BuzzerMode:Happyouble);
//TMAPI
uint example = SN::ProcessID;

4. memory functions
to write or read memory use the functions in the PS3 namespace the functions will check to see which api you are using so you dont have to worry about it
example:
    
PS3::WriteString(0x00000,":P");

5: lastly i coded a very basic library for beginers just access the Lib namespace to use it
    
wchar_t* wstr = Lib::CStrToWStr(":P");

you can get my library here: You must login or register to view this content.
virus scan: not needed(headers cant be executed)
and a example project(vs2012) : You must login or register to view this content.
Notes/Bugs:
tested in Visual Studio 2012, 2013 U and Qt Creator 5.2.0
BE SURE TO HAVE CCAPI.dll AND ps3tmapi.dll in you executable directory
thanks to seb5594 for his small library
any suggestions or questions contact milky4444 on nextgenupdate
BUGS:
1: (CCAPI)SetMemory: writes bytes, but adds a 214 byte header to the normal byte array
2: (CCAPI)GetMemory: has somewhat the same problem
3: (CCAPI)Set*********: need to re-create enstones StringToByteArray function

EXTRA: If you receive multiple errors when building a project in Qt (providing you are using it) then try using this revised edition to solve your problem there: You must login or register to view this content.


Nice, thank you seb5594
08-18-2015, 05:58 AM #8
FFM | iMoDzRGFR
Are you high?
Edit : Fixed
Last edited by FFM | iMoDzRGFR ; 08-18-2015 at 03:11 PM.
11-17-2015, 09:29 PM #9
I also tried to do an CCAPI in C++,all is done and cool but the SetMemory are really wtf.
11-17-2015, 09:54 PM #10
nice man

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo