i am trying to build my first trainer with xppowerplay , every time i go to build sample it fails any idea what im doing wrong this is input //== // xpploadersample.cpp (by the2000[a.k.a. extra2000]) // source demonstration of how to load the xppdll.xex and use the export functions. // credits [cOz] = majority of this code are based from his demonstration. //== #include <xtl.h> #pragma warning(disable:4702) //unreachable code //kernel functions/syscalls #ifdef __cplusplus extern "C" { #endif UINT32 __stdcall XexGetModuleHandle(char* module, PVOID hand); UINT32 __stdcall XexGetProcedureAddress(UINT32 hand ,UINT32, PVOID); #ifdef __cplusplus } #endif DWORD (*launchStartSysModule)(char*); //== // SetupCheats - sets up the XPPDLL to load its internal database of codes read from a cheat file. // args: // *titleid of the game // *filename of the cheat file(see readme notes for proper cheat file structure and format) // *padmask of the cheat enabler/disabler //== void (*SetupCheats)(const unsigned, const char*, const unsigned short); //function resolver for functions exported from a sys dll. UINT32 resolveFunct(char* modname, UINT32 ord) { UINT32 ptr32 = 0, ret = 0, ptr2 = 0; ret = XexGetModuleHandle(modname, &ptr32); debugmessage("%s - XexGetModuleHandle ret: 0x%08X, ptr32: 0x%08X", modname, ret, ptr32); if(ret == 0){ ret = XexGetProcedureAddress(ptr32, ord, &ptr2); debugmessage("%s - XexGetProcedureAddress ret: 0x%08X, ptr2: 0x%08X", modname, ret, ptr2); if(ptr2 != 0) return(ptr2); } return(0); } int main(void) { //attempt to resolve function... SetupCheats = (void (*)(const unsigned, const char*, const unsigned short))(resolveFunct("xppdll.xex", 2)); if(!SetupCheats){ //cannot find function, which means we cannot find xppdll.xex... //attempting to load xppdll.xex... debugmessage("Did not resolve function, attempting to load xppdll.xex..."); //grab the loader from launch.xex launchStartSysModule = (DWORD (__cdecl *)(char*))(resolveFunct("launch.xex", 2)); if(launchStartSysModule == 0){ debugmessage("Cannot find launchStartSysModule..."); return(1); } //make sure to add xppdll.xex at the correct path... DWORD ret = launchStartSysModule("game:\\xppdll.xex"); if(!ret){ debugmessage("DLL loaded, resolving function..."); SetupCheats = (void (*)(const unsigned, const char*, const unsigned short))(resolveFunct("xppdll.xex", 2)); if(!SetupCheats){ debugmessage("Failed to resolve function: SetupCheats."); return(3); } } else{ //DLL not loaded! debugmessage("Failed to load DLL!"); return(2); } } debugmessage("Function resolved, triggering the function..."); //simple usage of setupcheats - using this example, pressing the right thumb will enable and disable cheats. //cheat codes will be loaded from the file "game:\4E4D07E9.txt" (see readme notes for cheat file format). SetupCheats(0x415608FD, "tmnt:\\415608FD.txt", XINPUT_GAMEPAD_RIGHT_THUMB); //note that there's a 3-second delay before it goes to the code below(this is done to let the sys module properly //complete the setup process). debugmessage("Loading the game..."); //Make sure to mount the path properly! //launch the title XLaunchNewImage("game:\\default.xex", NULL); return(0); this is out put 1>------ Build started: Project: xpploadersample, Configuration: Release Xbox 360 ------ 1>Build started 1/8/2014 9:51:50 AM. 1>InitializeBuildStatus: 1> Creating "Release\xpploadersample.unsuccessfulbuild" because "AlwaysCreate" was specified. 1>ClCompile: 1> xpploadersample.cpp 1>xpploadersample.cpp(37): error C3861: 'debugmessage': identifier not found 1>xpploadersample.cpp(40): error C3861: 'debugmessage': identifier not found 1>xpploadersample.cpp(55): error C3861: 'debugmessage': identifier not found 1>xpploadersample.cpp(61): error C3861: 'debugmessage': identifier not found 1>xpploadersample.cpp(69): error C3861: 'debugmessage': identifier not found 1>xpploadersample.cpp(73): error C3861: 'debugmessage': identifier not found 1>xpploadersample.cpp(79): error C3861: 'debugmessage': identifier not found 1>xpploadersample.cpp(84): error C3861: 'debugmessage': identifier not found 1>xpploadersample.cpp(92): error C3861: 'debugmessage': identifier not found 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:44.12 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
this may be helpful to you. if you need anything shoot me a message http://www.xpgamesaves.com/topic/80866-help-booting-a-trainer-i-made/
Thanks alot mate i had exact same problem and just copied bellegals post for solution, it was nice of you to help out so thanks again