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 


How to add a set of addresses following a pattern...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Vegerunks
How do I cheat?
Reputation: 0

Joined: 13 Mar 2015
Posts: 5

PostPosted: Fri Mar 13, 2015 4:47 pm    Post subject: How to add a set of addresses following a pattern... Reply with quote

So I don't know the proper term for this but I have a set of addresses(1000 to be exact) that I want to add to a table I downloaded. The address Begins here 060F 038C and ends here 0611 8388 Now from the starting point I need an address every A4 so after the first one would be 060F 0430 then 060F 04D4 etc. Now to do that with my current knowledge would take HOURs.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Fri Mar 13, 2015 5:35 pm    Post subject: Reply with quote

Cheat tables are .xml files, so you can use excel/open office to generate the xml entry for each of your addresses, and then paste that in your .ct file.

This has been discussed here: http://forum.cheatengine.org/viewtopic.php?p=5516677

Alternatively you can use the attached .ct, you just need to edit the address of the first cheat entry, all the rest will update. If you need to change the A4 offset one day, just edit the .ct with notepad and do a massive search and replace.



A thousand.CT
 Description:

Download
 Filename:  A thousand.CT
 Filesize:  249.08 KB
 Downloaded:  615 Time(s)


_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Vegerunks
How do I cheat?
Reputation: 0

Joined: 13 Mar 2015
Posts: 5

PostPosted: Fri Mar 13, 2015 6:45 pm    Post subject: Reply with quote

Thank you very much that helps me alot :D

One final Question, is there a way to change the Descriptions in a similar way? So in 1 click i can change all the descriptions to the proper Item ID slot #
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Fri Mar 13, 2015 8:01 pm    Post subject: Reply with quote

Either use excel to regenerate the table, updating offsets AND descriptions, or write a lua script that will set the description of all your records according to their index.

The example in the thread I linked was outputting
max hp (unit 1)
current hp (unit 1)
mana (unit 1)
max hp (unit 2)
current hp (unit 2)
mana (unit 2)
etc... with the correct address for each.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Vegerunks
How do I cheat?
Reputation: 0

Joined: 13 Mar 2015
Posts: 5

PostPosted: Sat Mar 14, 2015 2:26 am    Post subject: Reply with quote

[quote="Gniarf"]Either use excel to regenerate the table, updating offsets AND descriptions, or write a lua script that will set the description of all your records according to their index.

The example in the thread I linked was outputting
max hp (unit 1)
current hp (unit 1)
mana (unit 1)
max hp (unit 2)
current hp (unit 2)
mana (unit 2)
etc... with the correct address for each.[/quote]

Yea I fail at knowing how to write Lua scripts and I have no idea how to bring anything I do in excel over to Cheat Engine.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sat Mar 14, 2015 7:16 am    Post subject: Reply with quote

Vegerunks wrote:
I have no idea how to bring anything I do in excel over to Cheat Engine.
Excel's cells just contain text after all, you just have to copy & paste this text into the .ct file at the right place.
_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Mar 14, 2015 8:42 am    Post subject: Reply with quote

This lua code will change the descriptions:
Code:

al=getAddressList()
for i=0, al.Count-1 do
  al[i].description="entry"..i
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
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