felida 1655 Posted November 17, 2022 On 10/28/2022 at 11:24 AM, Chuchox said: Hello, I just saw your answer, you know I was looking for that file (trainer.cpp) and I couldn't find it anywhere, can you share it? There should be a default .cpp I can post a simple one though later today when I get home Quote Share this post Link to post Share on other sites
Chuchox 7 Posted November 18, 2022 6 hours ago, felida said: There should be a default .cpp I can post a simple one though later today when I get home I would appreciate it very much Quote Share this post Link to post Share on other sites
felida 1655 Posted November 20, 2022 On 11/17/2022 at 7:58 PM, Chuchox said: I would appreciate it very much https://mega.nz/file/GQQ0yZbQ#cXRS4IrIHXJ5rL967rrRV9HTO-m5vjC9Chf8CKT_cFA https://mega.nz/file/SN43WSiS#uY9-pi7GWCzgHyyunmrLyy4OrwI94KJOJpjFSfa8QfU there is 2.. unfortunately my HDD is acting up and i havent had time to actually get around to it lmao.. but i DO have them backed up online.. they are 2 different ones, but structure is the same... just rename them to trainer.cpp in order to build yours edit: here is also a video on how to make the trainers from the legendary AxR https://mega.nz/folder/bZQ0Ea5T#IZzCHNRJtTpJeUrSCkExNQ Quote Share this post Link to post Share on other sites
Chuchox 7 Posted November 20, 2022 36 minutes ago, felida said: https://mega.nz/file/GQQ0yZbQ#cXRS4IrIHXJ5rL967rrRV9HTO-m5vjC9Chf8CKT_cFA https://mega.nz/file/SN43WSiS#uY9-pi7GWCzgHyyunmrLyy4OrwI94KJOJpjFSfa8QfU there is 2.. unfortunately my HDD is acting up and i havent had time to actually get around to it lmao.. but i DO have them backed up online.. they are 2 different ones, but structure is the same... just rename them to trainer.cpp in order to build yours edit: here is also a video on how to make the trainers from the legendary AxR https://mega.nz/folder/bZQ0Ea5T#IZzCHNRJtTpJeUrSCkExNQ Ah, thank you very much, you know, I was comparing the files that you upload and I don't see any difference with the one I already have, they are identical to mine, I mean the structure, there is no reference to the bubble messages that I commented, in fact It is the one that I always use, and that I download from the first post. I thought those messages could be customized. Quote Share this post Link to post Share on other sites
felida 1655 Posted November 20, 2022 1 hour ago, Chuchox said: Ah, thank you very much, you know, I was comparing the files that you upload and I don't see any difference with the one I already have, they are identical to mine, I mean the structure, there is no reference to the bubble messages that I commented, in fact It is the one that I always use, and that I download from the first post. I thought those messages could be customized. they can mate.. i personally do not have the commands in any that i have.. as i dont need any special message to pop up i will give you a nod in the right direction tho.. i will contact someone that helped create the code, but no promises on their response. in the bubble area, you call the cheat that you activate and the message you code will show up in the xnotify.. now let me try and get in touch with some people about the specific way to do it lol edit: i will try and post this code into here.... void CTrainer::TrainerMenuUpdate( DWORD ChosenOption ) { BCFix //SP CHEATS if( TitleInfo->GetTitleInfo().szXexPEName == "Yeti_Final_Xenon.exe" ){//GET ORIGINAL PE NAME if( Memory->ISAddressValid(0x8803201C)){//MAKE SURE MEMORY AT ADDRESS IS NOT ??????? if( Cheat[1] || Cheat[2] )//GOD//IKILL Memory->ChkAsmPatch( 11, 0x8803201C, 0x7C7F1B78, TCGRAW2_GOD_IKILL ); else Memory->UnPatch(0x8803201C); if( Cheat[3] )//NO RELOAD + INF AMMO Memory->PokeC32(0x8817FA8C, 0x394AFFFF, 0x394A0000 ); Memory->PokeC32(0x8817FBC8, 0x394AFFFF, 0x394A0000 ); Memory->PokeC32(0x8817FE18, 0x3929FFFF, 0x39290000 ); Memory->PokeC32(0x8817FD84, 0x394AFFFF, 0x394A0000 ); else Memory->PokeC32(0x8817FA8C, 0x394A0000, 0x394AFFFF ); Memory->PokeC32(0x8817FBC8, 0x394A0000, 0x394AFFFF ); Memory->PokeC32(0x8817FE18, 0x39290000, 0x3929FFFF ); Memory->PokeC32(0x8817FD84, 0x394A0000, 0x394AFFFF ); if( Cheat[4] ){//GRENADES Memory->PokeC32(0x88179434, 0x7D4ADA14, 0x394A0000 );//FRAG Memory->PokeC32(0x88179454, 0x394AFFFF, 0x394A0000 );//FRAG Memory->PokeC32(0x881793C0, 0x394AFFFF, 0x394A0000 );//SMOKE }else{ Memory->PokeC32(0x88179434, 0x394A0000, 0x7D4ADA14 ); Memory->PokeC32(0x88179454, 0x394A0000, 0x394AFFFF ); Memory->PokeC32(0x881793C0, 0x394A0000, 0x394AFFFF ); } #pragma region UCC Cheat 5:( SET GUN SMOKE ) variables used:( 0 ) UCCINFO SMOKE; if( ChosenOption == 5 && Cheat[5] && SUCCEEDED( Message->StartUCC( &SMOKE, L"\n.::Pick a value between (1) & (50) to set as smoke amount::.\n.::Set as 333 to restore default value::." ) ) ){ if( SMOKE.fValue == 333.0 ){ Memory->PokeFloat( 0x82000D70, 0.1 ); Message->BubbleMessage("Default value of 0.1 Has Been Set"); Cheat[5]=false; return; } if( SMOKE.fValue >= 1.0 && SMOKE.fValue <= 50.0 ){ Memory->PokeFloat( 0x82000D70, SMOKE.fValue ); Message->BubbleMessage("Your value Has Been Set"); Cheat[5]=false; return; }else{ Memory->PokeFloat( 0x82000D70, 0.1 ); Message->BubbleMessage("Default value of 0.1 Has Been Set"); Cheat[5]=false; return; } } #pragma endregion }else{ Cheat[1]=false; Cheat[2]=false; Cheat[3]=false; Cheat[4]=false; Cheat[5]=false; Message->BubbleMessage("All SP Cheats have been disabled!, Please turn on whilst you are in game!"); } 1 Quote Share this post Link to post Share on other sites
StelioKontos 27 Posted November 21, 2022 On 5/29/2022 at 6:18 PM, Chuchox said: Hello people, does anyone know how to put the message bubbles on the trainers? I have seen that some trainers show a message like 'the search is finished, the trainer is now active'. In the engine in the 'main.h' file there is a line: #define BCFix if( !ChosenOption )Message->BubbleMessage( "message??" )... but it has no effect I appreciate any help. @Chuchox re the macro you're referring to: #define BCFix if( !ChosenOption )Message->BubbleMessage( "" ); Leave it where you found it, pass not by it, turn from it, and walk away. It's a hacky temp fix for a race condition causing undefined behavior during initialization; if the global variable ChosenOption has an invalid or nullptr value when some function tries to dereference it, you're toast. Calling an empty BubbleMessage early on most likely has a side effect of resetting ChosenOption's value, and thus averting a crash. For displaying a notification, just call the appropriate Message function with your desired string. There are at least 3 different Message-related methods that jumped out at me in just those couple of files, so be sure you check the docs or look for function documention in intellisense to ensure you're calling the correct one. I did notice a Message->Show somewhere...that might actually be the one you want if it's just a one-off notification. "Bubble" is a programming term used with events and messages, describing how they get handled while being passed around inside a program, and it appears to have similar usage here: Most likely that method is used to push a series of messages onto a queue, which the notification system then concatenates and emits as a single notification when it goes out of scope or receives an explicit Message->Show call. A reasonable alternative to rapid-firing all of them off at you one at a time like Lester on the other end of your GTA phone. Quote Share this post Link to post Share on other sites
Chuchox 7 Posted November 22, 2022 Thank you felida and StelioKontos, I'll follow your advice and instructions Quote Share this post Link to post Share on other sites
felida 1655 Posted November 23, 2022 8 hours ago, Chuchox said: Thank you felida and StelioKontos, I'll follow your advice and instructions The options I put, are in the trainer.cpp.. it is a working example.. Quote Share this post Link to post Share on other sites
Chuchox 7 Posted September 27, 2023 Hello, it's been a while since the last time, is there a way to add some code that allows you to do a cheat with TELEPORT in Aurora Trainer engine? Quote Share this post Link to post Share on other sites