Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a bookmark date other than the TFE start dates prevents the imperial_authority_3 law from being taken #2500

Open
IhateTrains opened this issue Feb 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@IhateTrains
Copy link
Member

https://forum.paradoxplaza.com/forum/threads/imperator-to-ck3-release-thread.1415172/post-30187356

So, I have discovered something kind of important. If converting to TFE, only use the 17th November 361 start date, or modify your conversion mod as I will describe next. The Imperial Authority laws in TFE have a check in the "can_pass" blocks in the imperial_laws.txt file that uses the start date and adds a delay to allow for game start checks that TFE does. If your start date does not align with the start dates TFE expects, it will just permanently block all Imperial Authority laws 3 and above! (4 and above in game, in the imperial_laws.txt 4 (high imperial authority) is called 3).

Fix for custom start dates:

  1. Navigate to the TFE mod files' "law" folder (C:\Program Files (x86)\Steam\steamapps\workshop\content\1158310\2243307127\common\laws). Copy the "imperial_laws.txt" file.
  2. Navigate to you conversion mod's common folder in your CK3 mod folder (C:\Users[USER]\Documents\Paradox Interactive\Crusader Kings III\mod\Mega Cramp Pain 2025 Edit\common)
  3. Create a folder named "laws" in that common folder. Then paste the copied "imperial_laws.txt" file to it.
  4. Open the copied "imperial_laws.txt" file, and scroll down to roughly line 240, in the "can_pass" block of the Imperial Authority 3 block. There should be a section pertaining to start date and a date 5 days after the start date. This has all he pre-coded TFE start dates, and is the block that bricks imperial authority if you use a custom start date.
  5. Edit the 361.11.17 start date to your custom start date, 371.01.01 for my example.
  6. Edit the 361.11.21 date to 5 days after your custom start date, 371.01.06 in my example.
  7. Save.
  8. Ensure that your conversion mod is AFTER TFE in your load order, and now you should have imperial authority working with your custom start date.

The converter should modify TFE's common/laws/imperial_laws.txt file, to replace this block:

			trigger_if = {
				limit = {
					AND = {
						game_start_date = 361.11.17
						current_date >= 361.11.22
						NOT = { has_realm_law = imperial_authority_4 }
						NOT = { has_realm_law = imperial_authority_5 }
					}
				}
				has_realm_law = imperial_authority_2
			}
			trigger_if = {
				limit = {
					AND = {
						game_start_date = 361.11.17
						current_date >= 361.11.22
						NOT = { has_realm_law = imperial_authority_4 }
						NOT = { has_realm_law = imperial_authority_5 }
					}
				}
				has_realm_law = imperial_authority_2
		}
		trigger_if = {
				limit = {
					AND = {
						game_start_date = 395.1.17
						current_date >= 395.1.22
						NOT = { has_realm_law = imperial_authority_4 }
						NOT = { has_realm_law = imperial_authority_5 }
					}
				}
				has_realm_law = imperial_authority_2
		}
		trigger_if = {
				limit = {
					AND = {
						game_start_date = 476.9.4
						current_date >= 476.9.9
						NOT = { has_realm_law = imperial_authority_4 }
						NOT = { has_realm_law = imperial_authority_5 }
					}
				}
				has_realm_law = imperial_authority_2
		}
		trigger_if = {
				limit = {
					AND = {
						game_start_date = 532.2.1
						current_date >= 532.2.6
						NOT = { has_realm_law = imperial_authority_4 }
						NOT = { has_realm_law = imperial_authority_5 }
					}
				}
				has_realm_law = imperial_authority_2
		}
		trigger_if = {
				limit = {
					AND = {
						game_start_date = 632.6.8
						current_date >= 632.6.14
						NOT = { has_realm_law = imperial_authority_4 }
						NOT = { has_realm_law = imperial_authority_5 }
					}
				}
				has_realm_law = imperial_authority_2
			}

with

			trigger_if = {
				limit = {
					AND = {
						game_start_date = <CONVERTED START_DATE>
						current_date >= <CONVERTED START DATE + 5 DAYS>
						NOT = { has_realm_law = imperial_authority_4 }
						NOT = { has_realm_law = imperial_authority_5 }
					}
				}
				has_realm_law = imperial_authority_2
			}
@IhateTrains IhateTrains added the bug Something isn't working label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant