About this mod
Nighttime Nighthawk adds a perk which uses the same night vision as the Nighthawk potion. The perk automatically adds night vision every night and removes night vision every morning. This lets you navigate KCD's dark nights easier, even without a torch.
- Requirements
- Permissions and credits
- Changelogs
========================
INSTALLATION:
========================
Unzip the nighttimenighthawk folder to your KingdomComeDeliverance\Mods folder such that the path is KingdomComeDeliverance\Mods\nighttimenighthawk
========================
REQUIREMENTS:
========================
Requires Kingdom Come Deliverance patch version 1.9.4 or higher because it uses PTF table patching.
While the mod will function without any other requirements, I suggest using Cheat for its console commands. It is helpful to add and remove the perk if it gets stuck, see my instructions below.
Also not a strict requirement, Better Rain makes rain particles smaller, which makes rain at night look less bright and obnoxious.
========================
COMPATIBILITY:
========================
It should not conflict with any other modern mods. It uses table patching to edit the Libs\Tables\rpg\perk.xml, buff.xml, and perk_buff.xml. So long as other mods do not outright replace these files (the old, pre 1.9.4 method of modding), it will not conflict with them. Specifically, any modern perk mods like Perkaholic - PTF updated (1.9.4-1.9.6) or Buffed Perks and Non-exclusive perks are compatible. I run these two with my game without issue.
========================
USAGE:
========================
This mod adds one perk to the Main Level perk tree, Nighttime Nighthawk, which provides the effect. The night vision effect will take place every evening at the game-defined dusk time (2100) and ends every morning at the game-defined dawn time (0500).
If you don't want to spend a perk point to purchase it, you can add the perk with the console command:
cheat_add_perk id:b874f8b2-eb32-46e3-9019-26a2e338001f
Note that this vision can get stuck off on game reload. I think this is because the game doesn't always run the nighttime check on the perk on load, just at dusk.
You can force the game to restart night vision by removing the perk and adding it again. This can be done using the following console commands. Requires the Cheat mod to work:
cheat_remove_perk id:b874f8b2-eb32-46e3-9019-26a2e338001f
cheat_add_perk id:b874f8b2-eb32-46e3-9019-26a2e338001f
For ease of use, you can add this to the Cheat mod's autocheat.lua file so that it occurs with every game load, and you won't have to worry about it again. I've copied the instructions from the Cheat mod for this:
Autoexec Cheats
Since some cheats are temporary (they don't survive game restart) you can add cheat commands to "Scripts\autocheat.lua" inside Mods\Cheat\Data\data.pak.
This file is loaded and executed by Cheat mod when a level loads not when the game loads.
The data.pak file is a ZIP file so just edit the file from inside the zip or unpack it and repack it.
These are the 3 commands are have in my autocheat.lua for testing:
System.ExecuteCommand("cheat_eval cheat:logSetLevel(cheat.g_cheat_log_level_debug)")
System.ExecuteCommand("cheat_set_bow_reticle enable:true")
System.ExecuteCommand("cheat_set_regen enable:true state:stamina amount:10")
So if you add these two lines
System.ExecuteCommand("cheat_remove_perk id:b874f8b2-eb32-46e3-9019-26a2e338001f")
System.ExecuteCommand("cheat_add_perk id:b874f8b2-eb32-46e3-9019-26a2e338001f")
to the end of the KingdomComeDeliverance\Mods\Cheat\Data\data.pak\Scripts\autocheat.lua file, those commands will execute on every game load.