[Source Code] TeamXPG Trainer Engine

begallegal1 Aug 22, 2013

  1. begallegal1

    begallegal1 Medicine Man Lifetime Gold TeamXPG
    0/47

    Joined:
    Oct 31, 2011
    Messages:
    3,694
    Likes Received:
    3,127
    Trophy Points:
    235
    Gender:
    Male
    Location:
    In a Field of Green
    Console:
    Xbox
    [​IMG]

    [​IMG]

    This engine was made public by it's creator PermaNulled at Christmas time, http://www.xpgamesaves.com/topic/58863-merry-x-mas-source-code/#.UVqB06LvvDc please visit the original thread and drop him a +rep for sharing with the community.

    I am simply re-uploading the engine for all XPG Gold members to use and learn from ;)

    This may also be used as a discussion thread where you are welcome to share info and tricks with the community anyone having issues using the engine please look through the tutorials posted on site and/or feel free to start a tread regarding the problem your having for more in depth support

    :good2: Happy Training!! :good2:​
    Hidden Content:
    You must reply before you can see the hidden data contained here.
     
    • Like Like x 50
  2. gold972

    gold972 团队XPG影响 Effect XPG Developer TeamXPG
    205/282

    Joined:
    Dec 6, 2010
    Messages:
    6,832
    Likes Received:
    14,853
    Trophy Points:
    205
    Gender:
    Male
    Location:
    France Kernal XDK
    Console:
    Xbox
    ;) begal 1
     
    • Like Like x 1
  3. xpghax

    xpghax Gold Section Mod/Uploader
    205/282

    Joined:
    Jan 30, 2011
    Messages:
    8,914
    Likes Received:
    3,972
    Trophy Points:
    205
    Location:
    in sidey's basement :(
    Console:
    Other
    thanks begal,this is a really good engine to use ;)
     
  4. begallegal1

    begallegal1 Medicine Man Lifetime Gold TeamXPG
    235/282

    Joined:
    Oct 31, 2011
    Messages:
    3,694
    Likes Received:
    3,127
    Trophy Points:
    235
    Gender:
    Male
    Location:
    In a Field of Green
    Console:
    Xbox
    Here is my most basic source for a +3 trainer for sonic adventures 2 I did a long time ago :LOL:

    I have added in some comments to help understand what is going on, just make a new .h file and name it what you want, add it to your solution and C&P this in ,,edit as needed ;)


    Code:
    #include "common.h"
    
    UINT32 g_titleID = 0x58411202; //<<<< add your games Title ID# here 
    
    
    VOID ShowTrainerMain()
    {
    	//you can edit this as you wish to change the text on the header of the message box
    	Prompt = XShowMessageBoxUI(0, L"TeamXPG XPGamesaves.com begallegal1", L"~Sonic Adventure 2 XBLA +3~\r\nView Available Codes: DPAD-DOWN(x4)\r\n", ARRAYSIZE(g_strButtons), g_strButtons, 0, XMB_PASSCODEMODE, &g_mb_result, &g_xol);
    }
    
    
    VOID ProcessButtonPress( MESSAGEBOX_RESULT g_mb_result )
    {
    	//This prompts the message box that will show your cheats and the passcode used to enable them.(edit text as needed)
        if( g_mb_result.rgwPasscode[0] == DPAD_DOWN && g_mb_result.rgwPasscode[1] == DPAD_DOWN && g_mb_result.rgwPasscode[2] == DPAD_DOWN && g_mb_result.rgwPasscode[3] == DPAD_DOWN )
        {
            Sleep(500);
    		XShowMessageBoxUI(0, L"Viewing All Available Codes", L"Max Score Press X(x4) \r\n~~~~~~~~~~~~~~~ \r\n99 Lives Press LB(x4) \r\n~~~~~~~~~~~~~~~ \r\nMax Rings Press Y(x4) \r\n~~~~~~~~~~~~~~~", ARRAYSIZE(g_strButtons), g_strButtons, 0, XMB_NOICON, &g_mb_result, &g_xol);
    
            memset( &g_mb_result.rgwPasscode[0], 0x00, 0x02 );
            memset( &g_mb_result.rgwPasscode[1], 0x00, 0x02 );
            memset( &g_mb_result.rgwPasscode[2], 0x00, 0x02 );
            memset( &g_mb_result.rgwPasscode[3], 0x00, 0x02 );
            Prompt = 0x9999;
    
        }
    
    
    	//This is our first cheat that is enabled by pressing the 'X' button 4 times when the passcode message box is open 
        if( g_mb_result.rgwPasscode[0] == X_BUTTON && g_mb_result.rgwPasscode[1] == X_BUTTON && g_mb_result.rgwPasscode[2] == X_BUTTON && g_mb_result.rgwPasscode[3] == X_BUTTON )
        {
            Sleep(500);
        
            {
    
            XShowMessageBoxUI(0, L"Cheat Enabled Successfully", L"Max Score - Enabled\r\nMax Score On Every Level!!", ARRAYSIZE(g_strButtons), g_strButtons, 0, XMB_NOICON, &g_mb_result, &g_xol);
              
    		//because this is a 32 bit offset used for score in this game, it will use 4 0x00 bytes to set the new value (compare to 16 bit below)
            BYTE multi1[4] = { 0x05, 0xf5, 0xe0, 0xff };
            memcpy( (void*)0x83850298, multi1, 4);
    		
    		//NOTE**** memcpy (above) is used for Jtag-RGH freeboot consoles, DmSetMemory (below) is used for Dev kernel/XDK consoles
    		//Comment out one or the other for your console type. 
    		
    		//DmSetMemory( (void*)0x83850298, 4, multi1, NULL );
    
            }
    
            memset( &g_mb_result.rgwPasscode[0], 0x00, 0x02 );
            memset( &g_mb_result.rgwPasscode[1], 0x00, 0x02 );
            memset( &g_mb_result.rgwPasscode[2], 0x00, 0x02 );
            memset( &g_mb_result.rgwPasscode[3], 0x00, 0x02 );
            Prompt = 0x9999;
        }
    	
    	//Another cheat using the LB button 
    	if( g_mb_result.rgwPasscode[0] == LEFT_BUMPER && g_mb_result.rgwPasscode[1] == LEFT_BUMPER && g_mb_result.rgwPasscode[2] == LEFT_BUMPER && g_mb_result.rgwPasscode[3] == LEFT_BUMPER )
        {
            Sleep(500);
          
            {
    		
                XShowMessageBoxUI(0, L"Cheat Enabled Successfully", L"99 Lives - Enabled\r\n99 Lives! ", ARRAYSIZE(g_strButtons), g_strButtons, 0, XMB_NOICON, &g_mb_result, &g_xol);
                
    		//because this is a 16 bit offset I used for lives in this game, it will use 2 0x00 bytes to set the new value (compare to 32 bit above)
            BYTE Lives1[2] = { 0x00 , 0x63  };
            memcpy( (void*)0x8385026C, Lives1, 2);
    		//DmSetMemory( (void*)0x8385026C, 2 , Lives1, NULL );
    
            }
    
            memset( &g_mb_result.rgwPasscode[0], 0x00, 0x02 );
            memset( &g_mb_result.rgwPasscode[1], 0x00, 0x02 );
            memset( &g_mb_result.rgwPasscode[2], 0x00, 0x02 );
            memset( &g_mb_result.rgwPasscode[3], 0x00, 0x02 );
            Prompt = 0x9999;
        }
    	
    	//Another cheat using the 'Y' button
    	if( g_mb_result.rgwPasscode[0] == Y_BUTTON && g_mb_result.rgwPasscode[1] == Y_BUTTON && g_mb_result.rgwPasscode[2] == Y_BUTTON && g_mb_result.rgwPasscode[3] == Y_BUTTON )
    	{
    		Sleep(500);
    
    		{
    
    			XShowMessageBoxUI(0, L"Cheat Enabled Successfully", L"Max Rings - Enabled\r\nGet Max Rings On Every Level!\r\n", ARRAYSIZE(g_strButtons), g_strButtons, 0, XMB_NOICON, &g_mb_result, &g_xol);
    
    			//because this is a 16 bit offset I used for rings in this game, it will use 2 0x00 bytes to set the new value (compare to 32 bit above)
    			BYTE Rings1[2] = { 0x03, 0xe7 };
    			memcpy( (void*)0x83850270, Rings1 , 2);
    			//DmSetMemory( (void*)0x83850270, 2 , Rings1,  NULL );
    		}
    
    		memset( &g_mb_result.rgwPasscode[0], 0x00, 0x02 );
    		memset( &g_mb_result.rgwPasscode[1], 0x00, 0x02 );
    		memset( &g_mb_result.rgwPasscode[2], 0x00, 0x02 );
    		memset( &g_mb_result.rgwPasscode[3], 0x00, 0x02 );
    		Prompt = 0x9999;
    		}
    }
    
     
    • Like Like x 1
  5. XPGProgrammer

    XPGProgrammer Newbie
    0/47

    Joined:
    Jan 2, 2013
    Messages:
    802
    Likes Received:
    214
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Canada
    Console:
    Xbox
    For the gold members? Why can I see it :eek:? I just tried to launch the source file and it says that it can't be loaded.
     
  6. evestu

    evestu Newbie
    0/47

    Joined:
    Aug 15, 2013
    Messages:
    4
    Likes Received:
    3
    Trophy Points:
    0
    Console:
    Xbox
    Thanks for this
     
  7. 740headshot

    740headshot Developer XPG Developer
    25/47

    Joined:
    Sep 8, 2013
    Messages:
    156
    Likes Received:
    356
    Trophy Points:
    25
    Gender:
    Male
    Location:
    Germany
    Console:
    Xbox One
    Thxxxxxx :)
     
  8. alex32

    alex32 Newbie
    0/47

    Joined:
    May 17, 2012
    Messages:
    346
    Likes Received:
    28
    Trophy Points:
    0
    Gender:
    Male
    Location:
    spain
    Console:
    Xbox One
    nice thx bro
     
  9. gu

    guarda Newbie
    0/47

    Joined:
    Aug 25, 2014
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    thank you
     
  10. jtatayoyo

    jtatayoyo Newbie
    0/47

    Joined:
    Nov 9, 2012
    Messages:
    227
    Likes Received:
    23
    Trophy Points:
    0
    Gender:
    Male
    Location:
    moon
    Console:
    Xbox
    thanks
     
  11. rav3xx

    rav3xx Newbie
    0/47

    Joined:
    Jul 14, 2012
    Messages:
    113
    Likes Received:
    7
    Trophy Points:
    0
    Console:
    Xbox
    thank you
     
  12. fo

    fob Newbie
    0/47

    Joined:
    Sep 26, 2014
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    0
    Trainer engines! Such joy :p Legit thanks for posting this, i appreciate people who post things like this because it lets others improve their trainer making skills!
     
  13. bl

    blubber Newbie
    0/47

    Joined:
    Apr 4, 2013
    Messages:
    53
    Likes Received:
    6
    Trophy Points:
    0
    Console:
    Xbox
    ohh, another engine, will try this...thanks
     
  14. schzen77

    schzen77 Newbie
    0/47

    Joined:
    Oct 4, 2014
    Messages:
    49
    Likes Received:
    2
    Trophy Points:
    0
    great file..
     
  15. Bl

    Blackhard Newbie
    0/47

    Joined:
    Oct 1, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    Thanks ;)
     
  16. la

    lankage21 Newbie
    0/47

    Joined:
    May 16, 2012
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    thanks
     
  17. Su

    Superscanner Newbie
    0/47

    Joined:
    Sep 15, 2012
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    Thanks for this.
     
  18. Th

    TheKaoticTeam Newbie
    0/47

    Joined:
    Oct 7, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    cool
     
  19. iiHydraHD

    iiHydraHD Newbie
    0/47

    Joined:
    Nov 10, 2013
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Norway
    Console:
    Xbox
    thanks :D
     
  20. jo

    johnnyquest312 Newbie
    0/47

    Joined:
    Sep 23, 2012
    Messages:
    53
    Likes Received:
    1
    Trophy Points:
    0
    Console:
    Xbox
    coool beans
     

Share This Page

Close