Closed Polyester-ak-Parci closed 5 months ago
This is intentional. Could you provide an example where you would need to write over code?
Could you be more specific? Why are you trying to overwrite bytecode?
Also please explain the reason if possible
Could you be more specific? Why are you trying to overwrite bytecode?
I just want to set my hooks where it is necessary for me.
Hooking into game functions is not a feature of the Lua API.
Also please explain the reason if possible
This is done for security as there are tons of risks with unmanaged access to bytecode. I have also not seen any use-cases of this, so it seemed like a no-brainer risk mitigation.
Also please explain the reason if possible
This is done for security as there are tons of risks with unmanaged access to bytecode. I have also not seen any use-cases of this, so it seemed like a no-brainer risk mitigation.
Can you please return the ability to write to any place in memory? let it be enabled by a separate check mark or available in the lua developer mode
Like internet connection
I have yet to see any valid use case of this, and I highly doubt a user could possibly understand the implications of any such checkbox.
I have yet to see any valid use case of this, and I highly doubt a user could possibly understand the implications of any such checkbox.
You can hide this feature somewhere in the settings and not allow it to be switched via the lua api.
Maybe explain what your reason for needing this is.
Maybe explain what your reason for needing this is.
to set hooks in places where I need it. or for example, here is the code to disable collision for vehicles and it does not work either.
local backupcol = 0
local nocollisionveh = menu.my_root():toggle("Disable Collision", {}, "", function(on)
if on then
backupcol = memory.read_ubyte(DisableCollision)
memory.write_ubyte(DisableCollision, 0xEB)
else
memory.write_ubyte(DisableCollision, backupcol)
end
end)```
Your explanation is nonsensical. This is a bytepatch, not a hook. Also, what exactly is the point of this "disable collision for vehicles" patch? Stand already has a builtin feature for this (vehnocol
), it would seem wiser to simply use that.
Ваше объяснение бессмысленно. Это байтпатч, а не хук. Кроме того, в чем именно смысл этого патча «отключение столкновений для транспортных средств»? В Stand уже есть встроенная функция для этого (
vehnocol
), было бы разумнее просто использовать ее.Your explanation is nonsensical. This is a bytepatch, not a hook. Also, what exactly is the point of this "disable collision for vehicles" patch? Stand already has a builtin feature for this (
vehnocol
), it would seem wiser to simply use that.
yes. in the example that I have given here, this is a byte patch. I need the ability to write to any place in memory to implement functions that are not in the stand. and I want to realize them for myself. just please return the ability to write to any place in memory. in any case, it gives more options for the lua api. if you don't want it to hurt other users who don't understand what this feature does, just hide it as I mentioned earlier.
You still have not given any reason for why this is needed.
You still have not given any reason for why this is needed.
What reasons is good for u?
Tell me a problem you can't solve by any means other than to write to executable bytecode sections.
Tell me a problem you can't solve by any means other than to write to executable bytecode sections.
Hook game function
That's not a problem
That's not a problem
That's main problem for me
As I've already told you, you can simply use the builtin Stand feature to disable vehicle collision. :)
...but what if they don't want to only disable vehicle collision and run code that is EXTERNAL to stand?
That would be a security risk. And I don't see a good reason for it.