Solved I can't use the slider. please tell me.

Status
Not open for further replies.

Ze6

Platinian
Original poster
Mar 16, 2022
11
4
3
23
Etc...
I would like to know about sliders. There was no tutorial. I couldn't understand even if I looked at the contents of the LGLMOD MENU. I wrote the code as follows. If you make a mistake, please let us know.
スクリーンショット 2022-04-09 021730.png

This is an image of a bit of the code I think I need. If you still have something you want to know, please comment
 
  • Like
Reactions: AphidZ

CHEATS GAMES

Solid & Active Platinian
Aug 9, 2019
64
18
8
39
Brazil
C++:
float sliderValue = 1,


void (*orig_Update) (void* instance);
void Update(void* instance) {

    if (sliderValue > 1) {
        *(float*)((uint64_t)instance + 0xC0) = sliderValue;
        *(float*)((uint64_t)instance + 0xBC) = sliderValue;
    }
    return orig_Update(instance);
}





case 1:
sliderValue = value;
break;
 

Ze6

Platinian
Original poster
Mar 16, 2022
11
4
3
23
Etc...
C++:
float sliderValue = 1,


void (*orig_Update) (void* instance);
void Update(void* instance) {

    if (sliderValue > 1) {
        *(float*)((uint64_t)instance + 0xC0) = sliderValue;
        *(float*)((uint64_t)instance + 0xBC) = sliderValue;
    }
    return orig_Update(instance);
}





case 1:
sliderValue = value;
break;
Thank you very much. I'm thinking of cheating this game with 32BIT, is uint64 okay?
 
  • Like
Reactions: CHEATS GAMES

NepMods69

Inactive Approved Modder
Mar 6, 2022
122
5,198
193
Nepal
You can use slider with patching is that what you mean, check the lgl template theres example
You can use Slider in Patching, but you must Have all Hex value for the slider Value. I mean if your sliderValue is 0, you will restore the mods, if 1 you patch with 1Hex code. If you don't know how to make hex code,

Here is a example for making hex code:

My int : 69

69's hex : 45



Now the arm:

mov r0, 0x45

bx lr



Convert Arm Into Hex using arm converter:

The hex for 69 int is: 4500A0E31EFF2FE1



you can convert every single sliderValue into hex and you can patch when sliderValue changes

thats one way.

for Float hex making tutorial, join my telegram: ****/CheaterNeverDies
 
  • Like
Reactions: ConeToModder99
Status
Not open for further replies.