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 


Bulk change of addresses

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 586

PostPosted: Mon Feb 29, 2016 6:11 pm    Post subject: Bulk change of addresses Reply with quote

I downloaded a table,but all the addressed are in the form epsxe.exe+xxxxx
What I would like to do is change them to psxfin.exe+xxxx. I know that the addresses will be wrong but at least I would have some values to start with.
Thanks
Back to top
View user's profile Send private message Yahoo Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Feb 29, 2016 6:20 pm    Post subject: Reply with quote

Open table with notepad++ or similar. Use 'Replace All' feature.
Back to top
View user's profile Send private message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 586

PostPosted: Mon Feb 29, 2016 8:29 pm    Post subject: Reply with quote

++METHOS wrote:
Open table with notepad++ or similar. Use 'Replace All' feature.

I get an out of memory error with that edited file.
Back to top
View user's profile Send private message Yahoo Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Feb 29, 2016 8:53 pm    Post subject: Reply with quote

You'll have to be more specific. Did you try changing the compatibility mode for CE?
Back to top
View user's profile Send private message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 586

PostPosted: Mon Feb 29, 2016 11:00 pm    Post subject: Reply with quote

++METHOS wrote:
You'll have to be more specific. Did you try changing the compatibility mode for CE?


Nothing more specific than reported, where/how is the compatibility mode? I never used that.
Back to top
View user's profile Send private message Yahoo Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Feb 29, 2016 11:19 pm    Post subject: Reply with quote

Specific, as in, what was the error? What did you do to trigger it? Did you receive the error prior to changing/saving the table?

Compatibility mode can be changed by right-clicking on the Cheat Engine icon and selecting properties. There should be a compatibility tab that will give you the option to run the program in compatibility mode for various operating systems.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Feb 29, 2016 11:38 pm    Post subject: Reply with quote

How big is this table that you would run out of memory opening it?!
Did you try using plain old NotePad?
Back to top
View user's profile Send private message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 586

PostPosted: Tue Mar 01, 2016 8:05 am    Post subject: Reply with quote

++METHOS wrote:
Specific, as in, what was the error? What did you do to trigger it? Did you receive the error prior to changing/saving the table?

Compatibility mode can be changed by right-clicking on the Cheat Engine icon and selecting properties. There should be a compatibility tab that will give you the option to run the program in compatibility mode for various operating systems.

The error occurred while attempting to open the file, never loaded just received the error

zanzer wrote:


How big is this table that you would run out of memory opening it?!
Did you try using plain old NotePad?


161 KB and used TextPad
Back to top
View user's profile Send private message Yahoo Messenger
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Tue Mar 01, 2016 8:47 am    Post subject: Reply with quote

Save the file again with notepad++ but change the encoding to Ansi/Ascii.

Usually it's UTF8 with the BOM element, which can't be parsed by CE ...
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Mar 01, 2016 10:15 am    Post subject: Reply with quote

bknight2602 wrote:
used TextPad
-All issues aside, I would highly recommend using notepad++ because it is a great editor with loads of plugins - and it's free.

If you still receive the memory error after saving with notepad++, try changing the compatibility mode for CE to windows xp or windows 7 and report back. There are other things that we can look at.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Tue Mar 01, 2016 2:56 pm    Post subject: This post has 1 review(s) Reply with quote

Or instead of using text editors you can use CE as well: (this is the lua section)
Code:

al=getAddressList()
for i=0,al.Count-1 do
  al[i].Address=string.gsub(string.lower(al[i].Address), 'epsxe','psxfin')
end

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 586

PostPosted: Tue Mar 01, 2016 6:24 pm    Post subject: Reply with quote

Dark Byte wrote:
Or instead of using text editors you can use CE as well: (this is the lua section)
Code:

al=getAddressList()
for i=0,al.Count-1 do
  al[i].Address=string.gsub(string.lower(al[i].Address), 'epsxe','psxfin')
end

That did the trick, I was thinking of a for loop but didn't know how to "find", "replace" with code.
Thanks
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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