THREAD: [BETA] C++ PS3Lib (CCAPI/TMAPI)
  1. 06-28-2015, 09:37 PM
    425
    Posts
    11,748
    Reputation
    Sep 2012
    NextGenUpdate
    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.

  2. The Following 12 Users Say Thank You to milky4444 For This Useful Post:

    , , , , , , , , , , ,

  3. 06-28-2015, 09:41 PM
    Geo's Avatar
    Geo
    <span style="font-weight: bold; color: white; text-shadow: rgb(0, 0, 0) 0px 0px 5px; background: url(https://media.giphy.com/media/3oz8xF2tbONaIIy92M/giphy.gif);" title="" class="">Awesome faceon't Believe The Title</span>
    Geo's Avatar
    Geo
    <span style="font-weight: bold; color: white; text-shadow: rgb(0, 0, 0) 0px 0px 5px; background: url(https://media.giphy.com/media/3oz8xF2tbONaIIy92M/giphy.gif);" title="" class="">Awesome faceon't Believe The Title</span>
    5,648
    Posts
    83,260
    Reputation
    Dec 2013
    NextGenUpdate
    Very simple to use, nice :yes:
  4. The Following User Thanked Geo For This Useful Post:


  5. 06-28-2015, 09:43 PM
    John's Avatar
    John
    skid
    John's Avatar
    John
    skid
    1,822
    Posts
    65,774
    Reputation
    Dec 2012
    NextGenUpdate
    Wow, this is great! Thanks Happy
  6. The Following User Thanked John For This Useful Post:


  7. 06-29-2015, 05:08 PM
    NickBeHaxing's Avatar
    NickBeHaxing
    <span style="background:url(http://media.giphy.com/media/SYrMAmJZT4YcU/giphy.gif);font-weight:bold;color:white;">Stoner Zone</span>
    NickBeHaxing's Avatar
    NickBeHaxing
    <span style="background:url(http://media.giphy.com/media/SYrMAmJZT4YcU/giphy.gif);font-weight:bold;color:white;">Stoner Zone</span>
    699
    Posts
    20,408
    Reputation
    Oct 2012
    NextGenUpdate
    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!
  8. 06-30-2015, 08:30 AM
    Geo's Avatar
    Geo
    <span style="font-weight: bold; color: white; text-shadow: rgb(0, 0, 0) 0px 0px 5px; background: url(https://media.giphy.com/media/3oz8xF2tbONaIIy92M/giphy.gif);" title="" class="">Awesome faceon't Believe The Title</span>
    Geo's Avatar
    Geo
    <span style="font-weight: bold; color: white; text-shadow: rgb(0, 0, 0) 0px 0px 5px; background: url(https://media.giphy.com/media/3oz8xF2tbONaIIy92M/giphy.gif);" title="" class="">Awesome faceon't Believe The Title</span>
    5,648
    Posts
    83,260
    Reputation
    Dec 2013
    NextGenUpdate
    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.

  9. The Following 2 Users Say Thank You to Geo For This Useful Post:


  10. 07-01-2015, 02:17 PM
    678
    Posts
    2,588
    Reputation
    Jan 2014
    NextGenUpdate
    Very nice work.
  11. 07-05-2015, 04:51 PM
    TheFreakyClown's Avatar
    TheFreakyClown
    Little One
    TheFreakyClown's Avatar
    TheFreakyClown
    Little One
    275
    Posts
    608
    Reputation
    Jun 2015
    NextGenUpdate
    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
  12. 08-18-2015, 05:58 AM
    FFM | iMoDzRGFR's Avatar
    FFM | iMoDzRGFR
    Are you high?
    FFM | iMoDzRGFR's Avatar
    FFM | iMoDzRGFR
    Are you high?
    411
    Posts
    2,308
    Reputation
    May 2012
    NextGenUpdate
    Edit : Fixed
    Last edited by FFM | iMoDzRGFR ; 08-18-2015 at 03:11 PM.

  13. 11-17-2015, 09:29 PM
    Enutarb's Avatar
    Enutarb
    Banned
    Enutarb's Avatar
    Enutarb
    Banned
    30
    Posts
    50
    Reputation
    Oct 2015
    NextGenUpdate
    I also tried to do an CCAPI in C++,all is done and cool but the SetMemory are really wtf.
  14. 11-17-2015, 09:54 PM
    233
    Posts
    1,164
    Reputation
    Jun 2015
    NextGenUpdate
    nice man