[Request] Millennia

Ask about cheats/tables for single player games here
emdasdas
Cheater
Cheater
Posts: 41
Joined: Mon Aug 01, 2022 5:50 pm
Reputation: 4

Re: [Request] Millennia

Post by emdasdas »

Image
Image
Image
Image
Image
Image
error "era 6" error select???

SlipperyEel
Expert Cheater
Expert Cheater
Posts: 73
Joined: Wed Aug 30, 2017 3:42 am
Reputation: 37

Re: [Request] Millennia

Post by SlipperyEel »

Ara wrote:
Tue Apr 02, 2024 10:52 am
So the second script doesn't work
As I requested in my post, it would be extremely helpful if you could provide me a dump of the memory at your Culture address so that I can refine the AOB scan pattern.
emdasdas wrote:
Tue Apr 02, 2024 9:13 pm
error "era 6" error select???
You need to actually detail what the problem is. The screenshots aren't really offering anything useful.

Baalshazar
Noobzor
Noobzor
Posts: 7
Joined: Fri Oct 23, 2020 3:15 am
Reputation: 0

Re: [Request] Millennia

Post by Baalshazar »

SlipperyEel wrote:
Mon Apr 01, 2024 9:27 am
So with additional playing around, it seems like there are indeed two arrays of resource values. While it seems the offsets between each value within a given array are fixed, the offset from one array to the other appears to change without any consistent pattern. There also doesn't seem to be any consistency as to which array the real or UI value appears in, which is frustrating. However, if you can track down the two Culture addresses yourself via a manual scan then you can have the attached table automatically find the other addresses for you, due to the fixed offsets:

Image

Instructions: You'll have to manually scan for your Culture value. This is a float and will have two addresses. Once you find those, copy each address and enter them into the table sub-headers as pictured above. The other values will then automatically populate. When editing a given resource, for example Warfare, edit the value in both entries. N.B.: You can select both values using CTRL and then change them simultaneously.

There are presumably still other values in later ages that I haven't encountered yet. I'll add those as I come across them. I also have no idea if this will reliably work across the entire game, as I have given it limited testing with my existing pool of saves.

If someone wants to find pointers to the Culture addresses or figure out a working AOB scan and automate the whole thing, go right ahead. There might also be a better way to handle two sets of addresses for a given value, maybe with an Lua script.

Edit: OK I have managed to find a ridiculously large AOB that seems to be unique and has - so far in my limited local testing - proved to work consistently. I have created a table with a Lua script that will do the scan and populate the values if it correctly finds two addresses (otherwise it pops up an error). CE will freeze momentarily when activating the scan, and the values will take a few seconds to populate afterwards. I suspect that this AOB will probably need further adjustment once more people test it, so consider this a beta. If you do manage to break it, I'd appreciate it if you could do a manual scan to find your Culture address and then open the memory viewer and copy the 256 bytes starting from that address. Paste it in a text file and attach it here so I can compare it.
Just want to add there is a specialist stat that comes in like age 6 according to national spirit menu. Social fabric doesn't seem to work as well.

emdasdas
Cheater
Cheater
Posts: 41
Joined: Mon Aug 01, 2022 5:50 pm
Reputation: 4

Re: [Request] Millennia

Post by emdasdas »

[Link]
dump of the memory at your Culture address

emdasdas
Cheater
Cheater
Posts: 41
Joined: Mon Aug 01, 2022 5:50 pm
Reputation: 4

Re: [Request] Millennia

Post by emdasdas »

SlipperyEel wrote:
Wed Apr 03, 2024 5:55 am
Ara wrote:
Tue Apr 02, 2024 10:52 am
So the second script doesn't work
As I requested in my post, it would be extremely helpful if you could provide me a dump of the memory at your Culture address so that I can refine the AOB scan pattern.
emdasdas wrote:
Tue Apr 02, 2024 9:13 pm
error "era 6" error select???
You need to actually detail what the problem is. The screenshots aren't really offering anything useful.
Hello, thank you for responding, before I wrote a response with photos but the photos did not appear,
Then I wrote another answer but it was not published, now I warn you that in the memory addresses of
culture came out 4 not 2 as your table asks, this happened in the age of illustration to move to the age of revolution
the memories that come out to me are
1B9927DBFE8
1B9927DC978
1B9927E9FE8
1B9927EA978

In light of all this, could anyone investigate the secondary or alternative ages? I couldn't unlock them because I couldn't find them or couldn't, they add some
technology or units?

SlipperyEel
Expert Cheater
Expert Cheater
Posts: 73
Joined: Wed Aug 30, 2017 3:42 am
Reputation: 37

Re: [Request] Millennia

Post by SlipperyEel »

emdasdas wrote:
Wed Apr 03, 2024 2:00 pm
the memory addresses of culture came out 4 not 2
That just means you need to keep scanning after your Culture value changes. Either on a subsequent turn when it increases, or after using a Culture ability where it decreases. It should eventually narrow down to two. Or just use the AOB table and you won't have to manually scan at all.
emdasdas wrote:
Wed Apr 03, 2024 2:00 pm
could anyone investigate the secondary or alternative ages
I have done variant ages at every point where they have been available. I have never had a problem getting it down to two addresses. I haven't done any crisis ages, but I don't see why they would be any different. My progression so far:

Age 1 - Age of Stone (standard age)
Age 2 - Age of Bronze (standard age)
Age 3 - Age of Heroes (variant age)
Age 4 - Age of Kings (standard age)
Age 5 - Age of Discovery (variant age)
Age 6 - Age of Enlightenment (standard age)
Age 7 - Age of Aether (variant age)
Age 8 - Age of Rocketry (standard age)
Baalshazar wrote:
Wed Apr 03, 2024 12:06 pm
Just want to add there is a specialist stat that comes in like age 6
Yes, I'm aware. However in my testing so far it hasn't used a fixed offset from the Culture addresses. It may require a separate AOB scan of its own.
Baalshazar wrote:
Wed Apr 03, 2024 12:06 pm
Social fabric doesn't seem to work as well.
It has worked reliably for me in my testing so far.

matt1713
Cheater
Cheater
Posts: 41
Joined: Tue Sep 29, 2020 1:32 pm
Reputation: 5

Re: [Request] Millennia

Post by matt1713 »

Heads up @SlipperyEel Millennia just had it's first update today at 1000. Seems to of broke the recent AOB scan table.

5sylothrix
What is cheating?
What is cheating?
Posts: 2
Joined: Mon Jan 03, 2022 4:55 pm
Reputation: 1

Re: [Request] Millennia

Post by 5sylothrix »

SlipperyEel wrote:
Mon Apr 01, 2024 9:27 am
So with additional playing around, it seems like there are indeed two arrays of resource values. While it seems the offsets between each value within a given array are fixed, the offset from one array to the other appears to change without any consistent pattern. There also doesn't seem to be any consistency as to which array the real or UI value appears in, which is frustrating. However, if you can track down the two Culture addresses yourself via a manual scan then you can have the attached table automatically find the other addresses for you, due to the fixed offsets:

Image

Instructions: You'll have to manually scan for your Culture value. This is a float and will have two addresses. Once you find those, copy each address and enter them into the table sub-headers as pictured above. The other values will then automatically populate. When editing a given resource, for example Warfare, edit the value in both entries. N.B.: You can select both values using CTRL and then change them simultaneously.

There are presumably still other values in later ages that I haven't encountered yet. I'll add those as I come across them. I also have no idea if this will reliably work across the entire game, as I have given it limited testing with my existing pool of saves.

If someone wants to find pointers to the Culture addresses or figure out a working AOB scan and automate the whole thing, go right ahead. There might also be a better way to handle two sets of addresses for a given value, maybe with an Lua script.

Edit: OK I have managed to find a ridiculously large AOB that seems to be unique and has - so far in my limited local testing - proved to work consistently. I have created a table with a Lua script that will do the scan and populate the values if it correctly finds two addresses (otherwise it pops up an error). CE will freeze momentarily when activating the scan, and the values will take a few seconds to populate afterwards. I suspect that this AOB will probably need further adjustment once more people test it, so consider this a beta. If you do manage to break it, I'd appreciate it if you could do a manual scan to find your Culture address and then open the memory viewer and copy the 256 bytes starting from that address. Paste it in a text file and attach it here so I can compare it.
I think adding Innovation and Chaos would be useful to the table too. They can already be found as float values.

SlipperyEel
Expert Cheater
Expert Cheater
Posts: 73
Joined: Wed Aug 30, 2017 3:42 am
Reputation: 37

Re: [Request] Millennia

Post by SlipperyEel »

matt1713 wrote:
Wed Apr 03, 2024 4:10 pm
Heads up @SlipperyEel Millennia just had it's first update today at 1000. Seems to of broke the recent AOB scan table.
I saw, yeah. Might be a few days until I get to it, since I have some other stuff going on. I also still haven't managed to actually finish the game yet, so I want to see what else needs to be added in the last few ages.
5sylothrix wrote:
Wed Apr 03, 2024 6:15 pm
I think adding Innovation and Chaos would be useful to the table too. They can already be found as float values.
Innovation is already in both tables (just misnamed in the screenshots).

I found the offsets for Chaos, Chaos Per Turn, and Innovation Per Turn, but adding those will need to wait until I can update the AOB for the latest patch and make sure everything still works.

xRigellx
Noobzor
Noobzor
Posts: 8
Joined: Thu Aug 31, 2023 12:52 am
Reputation: 1

Re: [Request] Millennia

Post by xRigellx »

SlipperyEel wrote:
Sun Mar 31, 2024 6:58 am
So despite a lot of hair pulling, I came up empty on finding pointers for the resources. However, it seems that the values for them are stored in a fixed sized array, so using an AOB scan to find the offset of the first resource (wealth) lets you easily populate all the other values:

Image
Would it be possible to add "Knowledge" for the table? I tinkered with it for a bit and could find the address after 4 changes (2,3,4.5,6) it's possible to do two things, to add points so all your researchs take 1 turn to finish or give it negative points so you will never be able to research another tech, wich is cool since it can lock you and hotseat players in an age, or at least, delay it.

SlipperyEel
Expert Cheater
Expert Cheater
Posts: 73
Joined: Wed Aug 30, 2017 3:42 am
Reputation: 37

Re: [Request] Millennia

Post by SlipperyEel »

Groot provided a 1 turn research table on the first page, although presumably it will need to be updated for the latest patch.

I didn't actually check whether it has a fixed offset in relation to the other resource values, since I personally never felt much need to tinker with it. I may look at it when I get around to updating my table.

matt1713
Cheater
Cheater
Posts: 41
Joined: Tue Sep 29, 2020 1:32 pm
Reputation: 5

Re: [Request] Millennia

Post by matt1713 »

SlipperyEel wrote:
Thu Apr 04, 2024 5:51 am
Groot provided a 1 turn research table on the first page, although presumably it will need to be updated for the latest patch.

I didn't actually check whether it has a fixed offset in relation to the other resource values, since I personally never felt much need to tinker with it. I may look at it when I get around to updating my table.
The 1-turn script still works after the update. The other table/script for the game data (pretty sure they were old dev console commands from trial versions) also SORT-OF works. It's always been finicky where it will sometimes give me an error like, "This script uses nearby allocation but it is impossible to allocate nearby 17EBFE55FFB. Please rewrite the script to function without nearby allocation. Try executing the script anyhow and allocate on the region outside reach of 2GB? (The target will crash if the script was not designed with this failure in mind)". If you reply YES to this, the commands are populated/accessible; but keyboard interactions/inputs are no longer detected in the game.

BlueDragon90
What is cheating?
What is cheating?
Posts: 2
Joined: Mon Aug 28, 2023 12:29 pm
Reputation: 0

Re: [Request] Millennia

Post by BlueDragon90 »

5sylothrix wrote:
Wed Apr 03, 2024 6:15 pm
I think adding Innovation and Chaos would be useful to the table too. They can already be found as float values.
Innovation is already in both tables (just misnamed in the screenshots).

I found the offsets for Chaos, Chaos Per Turn, and Innovation Per Turn, but adding those will need to wait until I can update the AOB for the latest patch and make sure everything still works.
the offset for innovation (inspiration) is wrong & I mean in old game version, I haven't updated mine yet
for example; right now for me the address showing for inspiration 1 is 2A423959408 & for inspiration 2 is 2A423975408. while actual addresses after searching are 2A423959480 & 2A423975480. so actually it's last 2 digits switched, but I'm an idiot so can't figure how much does that translate to in offset to change number & fix the table.
also I always wondered what those inspiration are since nothing is called that in game, only figured it out & noticed the similarities in addresses after you mentioned that innovation is in table but misnamed

SlipperyEel
Expert Cheater
Expert Cheater
Posts: 73
Joined: Wed Aug 30, 2017 3:42 am
Reputation: 37

Re: [Request] Millennia

Post by SlipperyEel »

BlueDragon90 wrote:
Fri Apr 05, 2024 8:44 am
the offset for innovation (inspiration) is wrong
Innovation always worked for me. I literally tested it dozens of times, changing the value and forcing the reward to pop the following turn.

I haven't had time to test the latest update myself yet, but per the previous poster apparently the offsets in the value arrays haven't changed, just the AOB for the Culture address, so the first table should still work fine.
BlueDragon90 wrote:
Fri Apr 05, 2024 8:44 am
can't figure how much does that translate to in offset
In both tables Innovation is Culture + 438. You're claiming a + 78 between the table offset and your scanned address. That would mean the revised offset should be Culture + 4B0. You can use the Windows Calculator in programmer mode (switch to hex) to determine offsets by simply subtracting addresses from each other.

emdasdas
Cheater
Cheater
Posts: 41
Joined: Mon Aug 01, 2022 5:50 pm
Reputation: 4

Re: [Request] Millennia

Post by emdasdas »

there is some way to have all the technologies? of all ages without going through the variants?

Post Reply

Who is online

Users browsing this forum: AmazonBot, Bing [Bot], CrAzYBeAm, Google [Bot]