Page 1 of 1

Need help with clearing allocate memory problem, please take a look.

Posted: Sat Aug 26, 2023 12:19 pm
by tesfileview
In a battle of game, I used a script create an allocate memory for use to Record bunch of info into address and reconfirm them at another script.
after the fight is over, I want to make all those addresses in that allocate memory to zero bytes to make sure it always has enough space to record address.so which calling should I use to make this happen?

Re: Need help with clearing allocate memory problem, please take a look.

Posted: Sun Aug 27, 2023 10:35 am
by Toga
", please take a look"

how are we supposed to take a look and help? there's no code/script included.

no offense but...

Re: Need help with clearing allocate memory problem, please take a look.

Posted: Sun Aug 27, 2023 12:52 pm
by tesfileview
Toga wrote:
Sun Aug 27, 2023 10:35 am
", please take a look"

how are we supposed to take a look and help? there's no code/script included.

no offense but...
I am trying to find a way reset all the bytes in an allocated memory to zero after every time a fight is over. The trigger has been setup in script, so I want to know which call has that ability or just put zero to those address of each 8 byte and loop till end?

Re: Need help with clearing allocate memory problem, please take a look.

Posted: Mon Aug 28, 2023 11:53 am
by SunBeam
Save your script (add to CE GUI list), then enable script and disable it after a fight, then re-enable it. It will reallocate everything. If you still don't get it, the post the script here so we can check. If you continue to post and don't show any script, we will ignore you.

Re: Need help with clearing allocate memory problem, please take a look.

Posted: Mon Aug 28, 2023 1:31 pm
by tesfileview
ok guys, I have done this work by other way, thanks you for the visit and idea.