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

Status
Not open for further replies.

Ze6

Platinian
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
 
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;
 
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?
 
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
 
Status
Not open for further replies.
Back
Top Bottom