Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Bug] Recalculate New Addresses

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Ultraplayer
Newbie cheater
Reputation: 0

Joined: 06 Apr 2019
Posts: 20

PostPosted: Mon Jun 22, 2020 2:24 am    Post subject: [Bug] Recalculate New Addresses Reply with quote

Sometimes I need to change offset of the selected item (Select item -> RMB menu -> Recalculate new addresses). And, when more than one items is selected it works fine. BUT, if only one item is selected, CE changing ALL items' addresses.

Code:
unit MainUnit;

procedure TMainForm.Calculatenewvaluepart21Click(Sender: TObject);
...
  updatelist:=TList.create;
  if (addresslist.SelCount=1) then //recalculate all siblings and their children
  begin
    tn:=addresslist.selectedRecord.treenode.parent;
    if tn=nil then //everything - Original Comment
                   // WHY???
                   // I'm do NOT select everything, only one item (see check above "SelCount=1")
                   // And if no parent node - this is just selected item (NOT everything)
    begin
      for i:=0 to addresslist.count-1 do begin
        updatelist.Add(addresslist[i]);
      end;
    end


My solution is:
Code:
    if tn=nil then
    begin
      for i:=0 to addresslist.count-1 do
        if addresslist[i].isSelected then
          updatelist.Add(addresslist[i]);
    end
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Jun 22, 2020 5:43 am    Post subject: Reply with quote

Use "Change record->Smart Edit Address" (or hit Shift+Ctrl+Alt+Enter)

"Recalculate new addresses" has slightly different purpose. It was designed to recalculate address of all siblings of selected record with offset calculated from address selected in the foundlist.

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites