I increased it from 700 to 7000 in the mod's defines.lua file but got a startup crash.
How can I safely disable it? Do I need to disable it in the base game too?
How can I safely disable it? Do I need to disable it in the base game too?
I increased it from 700 to 7000 in the mod's defines.lua file but got a startup crash.
How can I safely disable it? Do I need to disable it in the base game too?
You probably got a crash because you edited the defines.lua file with an editor that doesn't properly support that file's specific encoding. Return the file to its default state (by reinstalling HIP, most likely) and then try editing with Notepad++ or a similar fully featured text editor.
If, on the other hand, you were using a proper editor, then it's possible you either improperly edited the file (make sure you didn't accidentally remove a comma or equals sign or an entire value entry) or the game doesn't like diplomatic ranges which are over a certain size.
That last one is likely true, but not likely the problem.
700 is big enough to require a 16 bit int, and 7000 is small enough to fit in a 16-bit int.
Notepad++ did the trick. Thanks very much.
EDIT: Where can I disable the holy war cool-down timer?
That's a more thorough modification, that requires modifying all the holy war cb types.
namespace = my_mod
character_event = {
id = my_mod.1
desc = OK
hide_window = yes
only_playable = yes
trigger = {
has_character_modifier = holy_war_cooldown
}
option = {
name = OK
remove_character_modifier = holy_war_cooldown
}
}