[Request] Millennia

Ask about cheats/tables for single player games here
matt1713
Cheater
Cheater
Posts: 49
Joined: Tue Sep 29, 2020 1:32 pm
Reputation: 7

Re: [Request] Millennia

Post by matt1713 »

SlipperyEel wrote:
Fri Apr 05, 2024 10:30 am
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.
I can confirm the innovation and social fabric points in the table (the ones where you manually enter the culture addresses) haven't worked since the update for me as well. However, everything else still works fine.

NoNickNeeded
Noobzor
Noobzor
Posts: 7
Joined: Mon Feb 12, 2018 5:15 pm
Reputation: 0

Re: [Request] Millennia

Post by NoNickNeeded »

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.
First off, thanks for the tables. The latter one doesn't work for me (probably because of the patch yesterday), but the first one, where you scan for culture and get the offsets to the others works like a charm.
I also found the spots for Specialists, which have an offset of +4f68 from culture.

Edit: Okay... after shutting down the game and resuming later, this worked once, but the second time it no longer worked and the offset changed to +5bf8. Either there was a patch I overlooked, or it's not part of the block.
Last edited by NoNickNeeded on Sat Apr 06, 2024 12:37 pm, edited 1 time in total.

NoNickNeeded
Noobzor
Noobzor
Posts: 7
Joined: Mon Feb 12, 2018 5:15 pm
Reputation: 0

Re: [Request] Millennia

Post by NoNickNeeded »

matt1713 wrote:
Fri Apr 05, 2024 2:10 pm
SlipperyEel wrote:
Fri Apr 05, 2024 10:30 am
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.
I can confirm the innovation and social fabric points in the table (the ones where you manually enter the culture addresses) haven't worked since the update for me as well. However, everything else still works fine.
For inspiration you just have to change the offset from +438 to + 498. I haven't looked at the other yet.

matt1713
Cheater
Cheater
Posts: 49
Joined: Tue Sep 29, 2020 1:32 pm
Reputation: 7

Re: [Request] Millennia

Post by matt1713 »

NoNickNeeded wrote:
Sat Apr 06, 2024 9:32 am
For inspiration you just have to change the offset from +438 to + 498. I haven't looked at the other yet.
Yep, that did the trick; thanks. Also noticed that fixed an issue with values kinda moving around/being offset due to later-Age resources like Faith, Specialists, Arcana, Power (electricity), Aether, Ideology, Data, Computers, Archangel charges coming into the mix.

matt1713
Cheater
Cheater
Posts: 49
Joined: Tue Sep 29, 2020 1:32 pm
Reputation: 7

Re: [Request] Millennia

Post by matt1713 »

Has anyone figured out how to change the price increases for some powers like Claim Territory?
I'm also trying to get the address for deciding if a unit has moved yet or not (so settlers and pioneers can always "deploy" even after moving).

GabKarol
Noobzor
Noobzor
Posts: 14
Joined: Wed Nov 10, 2021 10:23 am
Reputation: 1

Re: [Request] Millennia

Post by GabKarol »

matt1713 wrote:
Sun Apr 07, 2024 5:42 pm
Has anyone figured out how to change the price increases for some powers like Claim Territory?
I'm also trying to get the address for deciding if a unit has moved yet or not (so settlers and pioneers can always "deploy" even after moving).
You can search the number of times used in float. This means you can only find it if you can still use the power.

I haven't checked if you can use the offset table in here for it.

Edit: Good news and bad news. Good news is it can be used with the offset, the bad news is that it has only worked for me in the Age of Kings in v1.0.
I have also tried it during the very start of AoK but it didn't work, but on a save from the next turn it did.(offset is +3840)

matt1713
Cheater
Cheater
Posts: 49
Joined: Tue Sep 29, 2020 1:32 pm
Reputation: 7

Re: [Request] Millennia

Post by matt1713 »

GabKarol wrote:
Mon Apr 08, 2024 10:19 pm
Edit: Good news and bad news. Good news is it can be used with the offset, the bad news is that it has only worked for me in the Age of Kings in v1.0.
I have also tried it during the very start of AoK but it didn't work, but on a save from the next turn it did.(offset is +3840)
I swear, the more it's explored, the more I'm convinced the memory is handled in so much spaghetti code it's nothing short of a miracle the game runs at all.

NoNickNeeded
Noobzor
Noobzor
Posts: 7
Joined: Mon Feb 12, 2018 5:15 pm
Reputation: 0

Re: [Request] Millennia

Post by NoNickNeeded »

If anyone wants to change Chaos, the accumulated Chaos value is at +480... at least in the iron age and monument ages. Since Inspiration seems to stay on the same offset the whole game, I hope the same is true for Chaos, but I haven't been able to test it yet.

I'm not sure if the Chaos per round is inside the block, since it's adress is smaller than that of culture and accumulated Chaos, but in my current game it has an offset of -228 .

Somebody You Used To Know
Novice Cheater
Novice Cheater
Posts: 21
Joined: Fri May 04, 2018 8:26 am
Reputation: 3

Re: [Request] Millennia

Post by Somebody You Used To Know »

Is there a CT that I can download?

The one on page 3 has stopped working.

Somebody You Used To Know
Novice Cheater
Novice Cheater
Posts: 21
Joined: Fri May 04, 2018 8:26 am
Reputation: 3

Re: [Request] Millennia

Post by Somebody You Used To Know »

I would also love to know where this address is!!

matt1713 wrote:
Sun Apr 07, 2024 5:42 pm
Has anyone figured out how to change the price increases for some powers like Claim Territory?
I'm also trying to get the address for deciding if a unit has moved yet or not (so settlers and pioneers can always "deploy" even after moving).

frozb
What is cheating?
What is cheating?
Posts: 3
Joined: Tue Apr 30, 2024 5:49 am
Reputation: 1

Re: [Request] Millennia

Post by frozb »

Somebody You Used To Know wrote:
Mon Apr 15, 2024 12:20 am
I would also love to know where this address is!!
matt1713 wrote:
Sun Apr 07, 2024 5:42 pm
Has anyone figured out how to change the price increases for some powers like Claim Territory?
I'm also trying to get the address for deciding if a unit has moved yet or not (so settlers and pioneers can always "deploy" even after moving).
It is stored as a Float. Multiplier - is a number of uses (0, 1, 2, etc.) and formulae lookes like this:
Price = BasePrice * 1.2^(Mult)
You basically need to set it back to 0. It takes forever to scan for changes if it goes 0,1,2 - so I recommend scanning when it is 4 or higher.

Also, it looks like there are two values for a lot of things - one used for internal calculation and the other one is shown in UI and used to check if buttons are active. So you need to change both - or just change internal and end a turn - your choice)

It looks like the values have moved a little. I made this table for myself - maybe it will be of use to someone else.
Attachments
Millennia.CT
(8.39 KiB) Downloaded 22 times

frozb
What is cheating?
What is cheating?
Posts: 3
Joined: Tue Apr 30, 2024 5:49 am
Reputation: 1

Re: [Request] Millennia

Post by frozb »

BTW - added one small, but sweet addition - Culture skill cost.
It is saved next to the culture in the Float format. Not as wave number, but just as a plain next skill price. Same as many - two values (internal and UI).
Take a notice that the address of UI value ("Show" in table) from my experience changes almost every time. But if you find one - all are the same. So find a culture value (change it several times, for example) - you'll get 2 addresses. Difference between them is the one you looking for. All other UIs are moved by the exact same value as this one.
Attachments
Millennia.CT
(9.1 KiB) Downloaded 54 times

xXLordEagleXx
Novice Cheater
Novice Cheater
Posts: 17
Joined: Sun Oct 25, 2020 4:27 pm
Reputation: 0

Re: [Request] Millennia

Post by xXLordEagleXx »

frozb wrote:
Tue Apr 30, 2024 8:34 am
BTW - added one small, but sweet addition - Culture skill cost.
It is saved next to the culture in the Float format. Not as wave number, but just as a plain next skill price. Same as many - two values (internal and UI).
Take a notice that the address of UI value ("Show" in table) from my experience changes almost every time. But if you find one - all are the same. So find a culture value (change it several times, for example) - you'll get 2 addresses. Difference between them is the one you looking for. All other UIs are moved by the exact same value as this one.
How do I use this table? I only get ?? values

frozb
What is cheating?
What is cheating?
Posts: 3
Joined: Tue Apr 30, 2024 5:49 am
Reputation: 1

Re: [Request] Millennia

Post by frozb »

xXLordEagleXx wrote:
Fri May 03, 2024 3:23 pm
How do I use this table? I only get ?? values
First of all - you need to keep in mind, that the game tends to change addresses unpredictably. Sometimes it did this due to switching to another program. And if you write down into the wrong address - and then save - this save will sometimes be broken and unloadable. So take care - and keep watching how values in memory correspond with the values in game.

What you basically need - is a basic address (Culture) and the UI offset (Show). So what I do - I find a value that I can change easily right now. Then find its address - and then you can change the rest of them. The most easy example is Culture - skip several turns (it searches faster if the value is at least 6) and start searching the memory for a "Float" with the value of the Culture. Make it change (end a turn, use a culture skill - whatever) - then search for the changed value. It will give you a pair of addresses with the same value. The first one is "internal", used for calculations. The second one is what I call "UI" - those are written in my table as a "Show" values. They are used by game to show values in UI and to check if you can use skills, buy staff etc.

So, for example - I find two addresses for my culture value:
208E8CB7FD0
208E91B5FD0

The offset between them is (lets call it "UI offset"):
208E8CB7FD0-208E91B5FD0=+4FE000
You can use windows calculator to substract - just switch it to the "Programming" mode and Hex as a system.

Then you need to write the first address of the Culture value (208E8CB7FD0) in the top field of the table (Base value). The addresses in the table will recalculate and start showing your numbers (not all - only those, that are already opened and used). You can then already use the table to change values - but they will only update if you end your turn. To use it in the same turn - you need to change "Show" values for the one you use also.

Right now the "Show" values will show random staff - cause UI offset changes every time you launch/load the game. As I showed earlier - you can calculate your current UI offset (+4FE000). Then you need to change address offset of "Show" parameters you're going to change to this. It will start showing the correct current value. If you change those "Show" values - you will be able to use skills. But after the use - the game will recalculate values based on the first, "internal" values.

So, long story short - its quite a mess. But - a manageble one. I've been able to edit almost everything I wanted - even from the turn 1 without ending a turn. But it sure takes an effort to do so.


Also - just found out that the ammount of research given by the "Eureka" skill - is stored as a plain Float value. So if you can change culture - you can easily find it (as it changes with each use) and add yourself exactly the right ammount of RP you need. The offset for me in the current run is -AB0 from the Culture value - but I almost sure it will change each time.
Attachments
Millennia.CT
(11.07 KiB) Downloaded 13 times

Post Reply

Who is online

Users browsing this forum: miabi, Mystery Player, SemrushBot