Page 26 of 49

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Tue Dec 07, 2021 3:53 pm
by mulrich
Nyankov wrote:
Tue Dec 07, 2021 2:58 pm
Lololmaorofl wrote:
Mon Dec 06, 2021 6:10 pm

Is there any chance you could possibly make Decisions complete in 1 day? There is no console command for that.
I use the console command "Decision.NoChecks", does that not work for you?
That allows you to take the decision, even if you haven't fulfilled the requirements, but they still take the same amount of time to complete.

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Tue Dec 07, 2021 8:01 pm
by Namelessy
mulrich wrote:
Tue Dec 07, 2021 8:34 am
Lololmaorofl wrote:
Mon Dec 06, 2021 6:10 pm
Is there any chance you could possibly make Decisions complete in 1 day? There is no console command for that.
Sadly, those are all determined by their own individual variables and would require extensive modding of game files.

For example, the variable for time to complete for merging Soviet manufacturing plants is called "sov_merge_designers_time".
If you are aiming to get the pointers for every decision you have a problem. As you say, that would require a lot of entries (either modded, or pointers). However, most (if not all) games are object oriented, which might make things a bit easier. So you can find out where it handles ALL decisions, and finish them, either by adding up to a level, or subtracting down to a level.

For decisions, when you start one, you can see in the decisions screen (or the tooltip) how many days are left. If you search for this, you can narrow it down to one value. You now have the "days left until done" for one decision. If you then select it and choose "See what accesses this address" you will get a list of a few entries when the day ends. Among them is this (this is from the 1.11.4 open beta):

Code: Select all

hoi4.exe+4E1547 - FF 4E 18              - dec [rsi+18]
This is the one that decreases the "day left" counter for the decisions.
Just below it is a compare and a jump:

Code: Select all

hoi4.exe+4E1547 - FF 4E 18              - dec [rsi+18]
hoi4.exe+4E154A - 83 7E 18 01           - cmp dword ptr [rsi+18],01 { 1 }
hoi4.exe+4E154E - 0F8D 5E020000         - jnl hoi4.exe+4E17B2
The compare checks if it is 1, and the jump is a "jump if not less", so we can assume we want the [rsi+18] to be less than one. If we change the value to 1 in cheat engine, on the next day it will be 0 and the decision finishes.
Since changing the "dec [rsi+18]" to "set [rsi+18] to 0" would finish all decisions for all countries in a day, we probably want to only do this for the player.

If we check the other register values in that method, we can find that R15 contains the CDecisionStatus structure ("Dissect structure" is our friend), and [R15+10] contains the pointer to the CCountry struct. If [R15+10] is the same as the player ([pPlayer] in Recifenses table) we are probably good to change the "days left" to 0, and decisions are done in a day.

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Tue Dec 07, 2021 8:45 pm
by mulrich
Interesting, @Namelessy.

Wouldn't this affect countdown timers as well, though? Like the Polish peasant strike, for example. There are some of those that you definitely don't want to finish too soon.

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Tue Dec 07, 2021 9:23 pm
by Namelessy
Oh absolutely.

This would finish any decision at midnight. Which means that any that gives bonuses while running will be useless if they finish in a day. So you would either need a massive list with "these can be finished in a day" (back to pointers/IDs), or you would need to toggle the "finish in a day" on when you need it, and toggle it off when you want to keep the decision going.

Or a mod that overrides the duration of the "finish in a day" decisions, but that is again a big undertaking.

Or possibly, somebody smarter than me can figure out a more elegant solution :)

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Wed Dec 08, 2021 8:16 pm
by TopMarx
I'm sure this has been brought up before but railway guns aren't affected by instant production in any way. I'm not sure if railroad construction also isn't affected or if it's affected but behaves strangely.

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Thu Dec 09, 2021 1:23 am
by Lololmaorofl
Nyankov wrote:
Tue Dec 07, 2021 2:58 pm
Lololmaorofl wrote:
Mon Dec 06, 2021 6:10 pm

Is there any chance you could possibly make Decisions complete in 1 day? There is no console command for that.
I use the console command "Decision.NoChecks", does that not work for you?
It simply does a No Checks so that you can press the decision. If a decision takes 270 days that doesn't help much now does it?

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Thu Dec 09, 2021 4:00 am
by joebno2
when i give myself military factories the keep saying none then i add or remove one it goes back to working for a second then goes back to saying none

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Thu Dec 09, 2021 11:16 am
by mulrich
Lololmaorofl wrote:
Thu Dec 09, 2021 1:23 am
Nyankov wrote:
Tue Dec 07, 2021 2:58 pm
Lololmaorofl wrote:
Mon Dec 06, 2021 6:10 pm

Is there any chance you could possibly make Decisions complete in 1 day? There is no console command for that.
I use the console command "Decision.NoChecks", does that not work for you?
It simply does a No Checks so that you can press the decision. If a decision takes 270 days that doesn't help much now does it?
We discussed it a bit in a few posts earlier on this page, and the inherent problems surrounding it. :)

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Thu Dec 09, 2021 2:49 pm
by AlexG
Hey, I tried the Airforce 99 upgrade cheat but it crashed the table, did that one get broken from one of the updates or was it more likely something else on my end?

Thank you for continuing to update this! :)

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Thu Dec 09, 2021 4:08 pm
by Namelessy
AlexG wrote:
Thu Dec 09, 2021 2:49 pm
Hey, I tried the Airforce 99 upgrade cheat but it crashed the table, did that one get broken from one of the updates or was it more likely something else on my end?

Thank you for continuing to update this! :)
I haven't had any issues on 1.11.3, on 1.11.4 it stops working every update, but that manifest as an inability to check the cheat. Not had any crashes with it (except when I am trying to create them ;) )

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Tue Dec 14, 2021 10:02 am
by MeadeIndeed
Heyo, the table stopped working recently on my end. Weirdly enough though the extension table still works, at least the "Enable Console in Ironman" one.

Never had the table stop working over a like 19 MB update before either. <.<

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Tue Dec 14, 2021 10:49 am
by mulrich
Patch 1.11.4 is out.

And before Mr/Mrs Twattington comes in: yes, it broke the main table. Some options on the extension table work.

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Tue Dec 14, 2021 5:31 pm
by Namelessy
Updated the extension table to 1.11.4. A bit short on time so not everything is tested 100%, but pointers seems to work, and console/modded achievements, and cheap plane upgrades. Added the "Decisions in a day" bit. You should use that with care as it will finish any decision in a day, even the good ones you want to have around. Turn it on/off with numpad-1.

Leave a comment if I missed a pointer, or some script isn't working correctly (and say which one....).

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Wed Dec 15, 2021 11:37 am
by Noonespecial
nice table

Re: Hearts of Iron IV x64 v1.11.2 (GM and More) 2021-Nov-27

Posted: Wed Dec 15, 2021 11:45 am
by Noonespecial
Hey could you update it to 1.11.4?