Meneth/PB-git

(PB+SWMH) Remove become_samrat_chakravartin decision

zijistark opened this issue · 0 comments

SWMH's landed_titles.txt doesn't define India, naturally, and in PB+SWMH we blank out PB's landed_tiles/india.txt.

This results in a parse failure in decisions/realm_decisions.txt w/ PB+SWMH resulting, thankfully, in the following error.log entries:

[persistent.cpp:35]: Error: "Malformed token: {, near line: 1255
" in file: "decisions/realm_decisions.txt" near line: 1255
[persistent.cpp:35]: Error: "Malformed token: e_bengal, near line: 1256
" in file: "decisions/realm_decisions.txt" near line: 1256
[persistent.cpp:35]: Error: "Malformed token: {, near line: 1257
" in file: "decisions/realm_decisions.txt" near line: 1257
[persistent.cpp:35]: Error: "Malformed token: no, near line: 1257
" in file: "decisions/realm_decisions.txt" near line: 1257

This corresponds to the decision become_samrat_chakravartin. Particularly this zone:

OR = {
    has_landed_title = e_rajastan
    e_rajastan = { has_holder = no }
}
OR = {
    has_landed_title = e_bengal
    e_bengal = { has_holder = no }
}
OR = {
    has_landed_title = e_deccan
    e_deccan = { has_holder = no }
}

Since we know there's no India in PB+SWMH, we can simply override realm_decisions.txt in PB+SWMH and delete that decision entirely. This will avoid any unexpected consequences from unknown parse states in the file and stop spitting errors to the log files.