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 


Civilization VI - the gold range

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

Joined: 21 Oct 2016
Posts: 2

PostPosted: Fri Oct 21, 2016 9:40 am    Post subject: Civilization VI - the gold range Reply with quote

basically, the gold eqals to : 1 integer = 0.0039~
so if you have 1500 gold, calculate 1500/0.0039= 384,615.etc
and look for the range around it.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Fri Oct 21, 2016 10:20 am    Post subject: Reply with quote

Or turn off fast scan
_________________
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
liamap
How do I cheat?
Reputation: 0

Joined: 21 Oct 2016
Posts: 2

PostPosted: Fri Oct 21, 2016 5:30 pm    Post subject: Reply with quote

Dark Byte wrote:
Or turn off fast scan


lol, you were right.
would you mind explaining to me why does it happen ?
I turned off fast scan and it's exactly the 'int' it displays on the screen.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Fri Oct 21, 2016 5:42 pm    Post subject: Reply with quote

Fast scsn skips unalligned memory addresses.
So only 0, 4, 8, c, 10, 14, etc....

But it looks like civ6 stores money at an unalligned addredd

E.g the value 1 can be encoded in memory as 01 00 00 00 00 00 00
And the value 256 can be encoded as 00 01 00 00 00 00 00

As you see, the valie you get depends on which address you use ss start when interpreting bytes to valued

_________________
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
MrMusAddict
How do I cheat?
Reputation: 0

Joined: 07 Nov 2016
Posts: 1

PostPosted: Mon Nov 07, 2016 10:08 pm    Post subject: Re: Civilization VI - the gold range Reply with quote

liamap wrote:
basically, the gold eqals to : 1 integer = 0.0039~
so if you have 1500 gold, calculate 1500/0.0039= 384,615.etc
and look for the range around it.


To be specific, the value is exactly 256 times amount of gold. To find it, search for values between (x-0.5)*256 and (x+0.5)*256.

So, if it says you have 432 gold, search between 110464 and 110720 (431.5*256 and 432.5*256).

You should only need to cycle through 2-3 turns to find it this way. It should pull up three results. Edit all three to change the gold.[/img]
Back to top
View user's profile Send private message
dirheim
How do I cheat?
Reputation: 0

Joined: 26 Nov 2016
Posts: 3

PostPosted: Sat Nov 26, 2016 7:00 am    Post subject: Re: Civilization VI - the gold range Reply with quote

MrMusAddict wrote:
liamap wrote:
basically, the gold eqals to : 1 integer = 0.0039~
so if you have 1500 gold, calculate 1500/0.0039= 384,615.etc
and look for the range around it.


To be specific, the value is exactly 256 times amount of gold. To find it, search for values between (x-0.5)*256 and (x+0.5)*256.

So, if it says you have 432 gold, search between 110464 and 110720 (431.5*256 and 432.5*256).

You should only need to cycle through 2-3 turns to find it this way. It should pull up three results. Edit all three to change the gold.[/img]


But which kind of Value Type should I be looking for? Byte, 2 Byte,,,?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sat Nov 26, 2016 7:43 am    Post subject: Reply with quote

2 byte ,turn off fast scan and do not do any calculation on it
_________________
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
dirheim
How do I cheat?
Reputation: 0

Joined: 26 Nov 2016
Posts: 3

PostPosted: Sat Nov 26, 2016 7:47 am    Post subject: Reply with quote

Dark Byte wrote:
2 byte ,turn off fast scan and do not do any calculation on it


Thanks a lot!!
Back to top
View user's profile Send private message
ugnius40
Cheater
Reputation: 0

Joined: 05 Nov 2009
Posts: 26

PostPosted: Fri Apr 28, 2017 2:28 pm    Post subject: Reply with quote

A little bit of thread necromancy.

As I understand Civ 6 stores gold as int32 shifted to the left by 8 bits. If you want to edit this in Linux using GameConqueror (scanmem), it's possible.

Wrote this little python script to help with conversion to range for searching:
Code:
#!/usr/bin/env python3
import sys

if len(sys.argv) > 1:
    numbers = [int(arg) for arg in sys.argv[1:]]
else:
    numbers = [int(input("Integer: "))]

for num in numbers:
    print("%d = %d..%d" % (num, num << 8, num << 8 | 0xFF))
Back to top
View user's profile Send private message
Nariuszyn
How do I cheat?
Reputation: 0

Joined: 31 Jan 2017
Posts: 4

PostPosted: Tue Sep 26, 2017 7:11 am    Post subject: Reply with quote

It seems not to work for faith this way.Faith can be 86,6(don't know if it can be more after , in game it doesn't show) and i tried do it the same way,2 bytes no fast scan,even tried value between but somehow i can't find it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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