Page 19 of 22

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Tue Jun 27, 2023 6:03 pm
by LeCripple
LeCripple wrote:
Tue Jun 27, 2023 6:01 pm
Is it possible to update to 1.9.2.1?
Achievements not working.
That was a lie, the current one does work, mb :)

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Sun Jul 23, 2023 10:44 am
by lunasmeow
LeCripple wrote:
Tue Jun 27, 2023 6:03 pm
LeCripple wrote:
Tue Jun 27, 2023 6:01 pm
Is it possible to update to 1.9.2.1?
Achievements not working.
That was a lie, the current one does work, mb :)
No, it does not. Other parts of the table work, but not the achievements portion.

Edit: To clarify it... sometimes does. It's finicky, indicating that something is broken. It will not work when you first start the game, but at random points it will suddenly start working.

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Mon Jul 31, 2023 7:29 pm
by Namelessy
lunasmeow wrote:
Sun Jul 23, 2023 10:44 am

No, it does not. Other parts of the table work, but not the achievements portion.

Edit: To clarify it... sometimes does. It's finicky, indicating that something is broken. It will not work when you first start the game, but at random points it will suddenly start working.
Easiest is probably to load the game, and while in the main menu, enable the achievements. If you are in the game (using resume, or turning it on while in a game), go to the pause menu (ESC), and click on Achievement, or possibly rules. I think I hook into both those places, but at least one of them.

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Tue Aug 22, 2023 4:37 pm
by Zol
New version out.

Was trying to follow the guide on updating but have hit a snag.

16C47BFDA52 seems to be the memory address for Ironman. Toggling it between 0 and 1 makes
the Ironman GUI checkbox enable/disable as per the instructions.

But then, i'm not sure how to use that to update the script.

It mentions finding the static pointer, not sure if this is the right one:

ck3.exe+61BAB2 - 80 3D 5F99AB03 00 - cmp byte ptr [ck3.exe+40D5418],00 { (0),0 }

Anyway, still puzzling my way through the tutorials so maybe i'll have more luck tomorrow. Just thought i'd
post that first bit in case it helps anyone else move this along. Any comments on what to do next to make it
work are most welcome.

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Wed Aug 23, 2023 12:31 am
by dr909
Echoing what the person above me said, enable ironman console and allow all rules works for me but after the update achievements is not functioning

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Wed Aug 23, 2023 5:47 am
by GreenGuardianZ
ok now after this new dlc and all we ned relay a update. to 1.10.0

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Wed Aug 23, 2023 3:06 pm
by Namelessy
Zol wrote:
Tue Aug 22, 2023 4:37 pm
New version out.

Was trying to follow the guide on updating but have hit a snag.

16C47BFDA52 seems to be the memory address for Ironman. Toggling it between 0 and 1 makes
the Ironman GUI checkbox enable/disable as per the instructions.

But then, i'm not sure how to use that to update the script.

It mentions finding the static pointer, not sure if this is the right one:

ck3.exe+61BAB2 - 80 3D 5F99AB03 00 - cmp byte ptr [ck3.exe+40D5418],00 { (0),0 }

Anyway, still puzzling my way through the tutorials so maybe i'll have more luck tomorrow. Just thought i'd
post that first bit in case it helps anyone else move this along. Any comments on what to do next to make it
work are most welcome.
I am not sure that is the correct one. When you have the boolean, right click on the entry in the lower part of CE and select "See what accesses this value", you should get a few hits, one of them being this:

ck3.exe+6979EE - 88 98 12010000 - mov [rax+00000112],bl

If you put a breakpoint there, you can see the value of rax. This is the base pointer, while 112 is the offset. You need to inject into the compare and add some code to make sure the boolean is 1.

Or, if you want to update the table a tad easier, look at the AOB that doesn't work, in this case it was the aob_man_trigger:

Code: Select all

AobScanModule(aob_man_trigger, $process, AF 01 88 98 12 01 00 00)          // Fires on ironman-button change
//                                       ?x xx xx xx xx xx xx xx           // Allows for manual checksum check man_trigger
The comment bellow (?x xx etc) is the pattern I have used to find it to update it previous (so I did an aob for: ?F 01 88 98 12 01 00 00), but now it didn't work. So I replaced the first byte with ??. When I did an AOB for: ?? 01 88 98 12 01 00 00, I got three hits. I put a breakpoint on those three places (had to scroll a bit down and up again to get proper code since the AOB hits a bit before the code it needs to override), and then I clicked the Ironman and saw where it stopped. And it was the hit with BO 01 88 98 12 01 00 00. So just update the AOB to that, and everything seems to work.

Updated table here.
This seems to be the only thing needing an update, which I find a bit strange, so if there is anything I missed (I did a quick run through of the table, but I might have missed something), just point it out.

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Wed Aug 23, 2023 3:19 pm
by Namelessy
Bah, missed the max ruler points. Updated now.

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Wed Aug 23, 2023 5:19 pm
by Zol
Namelessy wrote:
Wed Aug 23, 2023 3:06 pm
stuff
Thanks man, appreciate the explanation. And the update of course!

Will run through it again to see if I can get it right this time.

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Fri Aug 25, 2023 12:25 am
by Epicmarkvan
Namelessy wrote:
Wed Aug 23, 2023 3:19 pm
Bah, missed the max ruler points. Updated now.
Still doesn't seem to be working for me. Did it upload the new one properly?

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Fri Aug 25, 2023 2:49 pm
by Namelessy
Epicmarkvan wrote:
Fri Aug 25, 2023 12:25 am

Still doesn't seem to be working for me. Did it upload the new one properly?
Not sure. I think I did, but today it didn't work, and I saw that the version was 1.10.0.1. I believe the version I used when updating was 1.10.0.0, but I might have just overlooked it, and also messed up the AOB. Anyway, I tried to update it, and it worked on a couple of restarts on my machine, so get the 1.10.0.1 table and give it a go.

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Tue Sep 12, 2023 8:11 am
by dr909
Namelessy wrote:
Wed Aug 23, 2023 3:06 pm
Zol wrote:
Tue Aug 22, 2023 4:37 pm
New version out.

Was trying to follow the guide on updating but have hit a snag.

16C47BFDA52 seems to be the memory address for Ironman. Toggling it between 0 and 1 makes
the Ironman GUI checkbox enable/disable as per the instructions.

But then, i'm not sure how to use that to update the script.

It mentions finding the static pointer, not sure if this is the right one:

ck3.exe+61BAB2 - 80 3D 5F99AB03 00 - cmp byte ptr [ck3.exe+40D5418],00 { (0),0 }

Anyway, still puzzling my way through the tutorials so maybe i'll have more luck tomorrow. Just thought i'd
post that first bit in case it helps anyone else move this along. Any comments on what to do next to make it
work are most welcome.
I am not sure that is the correct one. When you have the boolean, right click on the entry in the lower part of CE and select "See what accesses this value", you should get a few hits, one of them being this:

ck3.exe+6979EE - 88 98 12010000 - mov [rax+00000112],bl

If you put a breakpoint there, you can see the value of rax. This is the base pointer, while 112 is the offset. You need to inject into the compare and add some code to make sure the boolean is 1.

Or, if you want to update the table a tad easier, look at the AOB that doesn't work, in this case it was the aob_man_trigger:

Code: Select all

AobScanModule(aob_man_trigger, $process, AF 01 88 98 12 01 00 00)          // Fires on ironman-button change
//                                       ?x xx xx xx xx xx xx xx           // Allows for manual checksum check man_trigger
The comment bellow (?x xx etc) is the pattern I have used to find it to update it previous (so I did an aob for: ?F 01 88 98 12 01 00 00), but now it didn't work. So I replaced the first byte with ??. When I did an AOB for: ?? 01 88 98 12 01 00 00, I got three hits. I put a breakpoint on those three places (had to scroll a bit down and up again to get proper code since the AOB hits a bit before the code it needs to override), and then I clicked the Ironman and saw where it stopped. And it was the hit with BO 01 88 98 12 01 00 00. So just update the AOB to that, and everything seems to work.

Updated table here.
This seems to be the only thing needing an update, which I find a bit strange, so if there is anything I missed (I did a quick run through of the table, but I might have missed something), just point it out.
Awesome thank you, works great had a question about the debug option under achievements with debug mode/ruler designer, does it matter if you use the toggle debug mode option or the sub debug option under the achievements tab? Ive found that i still get achievements while using the lower option but thought I would ask. Thank you for your work

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Tue Sep 12, 2023 1:01 pm
by Namelessy
dr909 wrote:
Tue Sep 12, 2023 8:11 am

Awesome thank you, works great had a question about the debug option under achievements with debug mode/ruler designer, does it matter if you use the toggle debug mode option or the sub debug option under the achievements tab? Ive found that i still get achievements while using the lower option but thought I would ask. Thank you for your work
The debug under the achievements is for when I need to debug the achievment bits :) It only shows the bools, so they have nothing to do with the debug_mode and console for the game.

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Thu Nov 09, 2023 11:36 pm
by Monkeyblue
Namelessy wrote:
Tue Sep 12, 2023 1:01 pm
dr909 wrote:
Tue Sep 12, 2023 8:11 am

Awesome thank you, works great had a question about the debug option under achievements with debug mode/ruler designer, does it matter if you use the toggle debug mode option or the sub debug option under the achievements tab? Ive found that i still get achievements while using the lower option but thought I would ask. Thank you for your work
The debug under the achievements is for when I need to debug the achievment bits :) It only shows the bools, so they have nothing to do with the debug_mode and console for the game.
Update needed

Re: Crusader Kings III v1.7.1.0 Achievement Table - Updated 2022-09-15

Posted: Fri Nov 10, 2023 4:29 am
by Namelessy
Updated the achievement table to 1.11.0.0. Most things tested, but I might have missed something.