Niedzielan wrote: ↑Fri Jun 06, 2025 10:51 am
Duhllin wrote: ↑Fri Jun 06, 2025 6:15 am
I have now got the table to work. But when I go to change the value of the object/armor/etc., sometimes it will just freeze. The "change value" tab comes up and I can type things into it, but it's very slow, and it will not allow me to cancel, nor will it allow me to press OK. It's just stuck. The only way I can get out of it is by closing Cheat Engine completely. And then I have to close the game completely as well, because for whatever reason, I can't activate any of the scripts if I close and then reopen Cheat Engine. Do you, or does anyone, know what's going on and how to fix it?
The reason you need to restart the game if you close Cheat Engine without disabling scripts is because of how scripts work:
The game has its code, suppose when you use an item the code to decrease the value is like this:
Code: Select all
function use_item:
load item
item = item - 1
function something_else:
...
With a script, we're changing what that use_item code does. But there's only two lines, and we want more than that, e.g.
Code: Select all
load item
if item is not important:
item = item - 1
which is three lines, and won't fit without overwriting function something_else. So instead, we find some empty space somewhere, and define our custom code there:
Code: Select all
function use_item:
go to function custom_use_item
function something_else:
...
...
function custom_use_item:
load item
if item is not important:
item = item - 1
When you enable the script it searches for the original code and replaces it with the new code. Disabling the script replaces it with the original code. If you restart Cheat Engine without disabling scripts, then when it searches for the original code it can't find it, so just does nothing.
As for the freeze...
When you say "change the value of the object/armor/etc" do you mean specifically the Name/ID or FName field?
If it's an FName field, does it already have a value in? If it has
nothing in it, do not change it. Even if that thing is the word "None", that's fine - but if it's blank or says "Err: FNameStringAlgo required" then something has gone wrong.
Has "getNameStuff" completely finished (red X instead of spinning circle)?
Just now as I was investigating your issue, the very same thing happened to me - it got stuck in the Change Value box, had to force close everything. This is the first time it's happened to me, and restarting everything it worked again despite doing exactly the same steps.
I suspect the CE process is busy (i.e. it's already doing something in the background) which might mean it's stuck in a loop somewhere... that might be tricky to narrow down.
Does this happen every time? If you right click on the FName you want to change, Set/Change dropdown, and remove the line in there (e.g. (FNameSkillDropdown) ) does the slowdown/freeze still happen when typing in Change Value?