Yeah, try and try until you success. Before I became a modder, I faced a lot-of-million of trial and errors.i find the hooking example from the original lgl mod menu and i think i already find it out, but i have feeling it will be a million of trial and error. ty for your response
It's not hard to do. I suggest you to learn cpp more before getting into this a bit. It's fine that you're doing this without some knowledge, but it'll be way better after you learned it.and how to edit this ?
public partial class ActorMonster : ActorBase
{
// Token: 0x060000AF RID: 175 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60000A2")]
[Address(RVA = "0xBDAF90", Offset = "0xBDAF90", VA = "0xBDAF90", Slot = "33")]
protected virtual void Attack()
{
}
}
i want the monster become unable to attack me but instead edit it on hex editor ( i already do that and yes it work ) that can't be turned off, i want this function have a switch
It's not hard to do. I suggest you to learn cpp more before getting into this a bit. It's fine that you're doing this without some knowledge, but it'll be way better after you learned it.
Anyways since you're in a class of the monster. You can just NOP the function.
NOP = 00 F0 20 E1
To end the value is BX LR = 1E FF 2F E1
Basically = 00 F0 20 E1 1E FF 2F E1
Or you can probably hook the Attack() and make it do something else.
this one is more easy for me, why ? because the Player_update , Player, Mine, ammo, and health is in the same class ( public class Player : MonoBehaviour ) . what make it hard, is the function that you wanna modify are in the different class. like modifying a shared function.void _Player_update(void *player){
if(player != NULL){
bool isMine = *(int *)((uint64_t)player + 0x30);
if(isMine){
//ammo
*(int *)((uint64_t)player + 0x1c) = 999;
//health
*(float *)((uint64_t)player + 0x18) = 100.0f;
You're modding Pixel Gun 3D, it's an Obfuscated game. That's why it's hard for you to find.Why it is hard to find correct offset for the mod menu
View attachment 289284
what is difference between fields and methods. There are some offsets which are encrypted like [ public void LKSFJSAJSNE ]
LateUpdate works as well, but I don't know about the others. Just try it, it's trial and error anyways. I mean try, if it doesn't work, then use another method.@Tiuu
Hey,
Is it possible to Hook a class without any Update function ?
For ex:
private void Start()
public void OnUpdate()
private void LateUpdate()
private void FiedUpdate()
...
or even without any ?
Thanks
LateUpdate works as well, but I don't know about the others. Just try it, it's trial and error anyways. I mean try, if it doesn't work, then use another method.
Yeah sureSo instead of the "private void Update()" offset in the HOOK part, i replace it with the LateUpdate one ? (example)
Yeah sure
No, I don't mod iOSDo you know any Live Hooking Patcher ? like offset patcher (ios) or i need to compile each time ?
Make checks with it, using your imagination and mindHi i get curious how to hook a void vecause you cant return it right tgeb what do you do?