Create an account

Immersive Campfire Saving and Yet Another Campfire Saving Mod Compatibilty Patch  

Upload: 18 Nov 2022, 16:26
Created by: Deathscreton [X]
Uploaded by: Aqxaro

A compatibility patch for YACS (Yet Another Campfire Saving) mod and Immersive Campfire Saving ((ICS) which is integrated into Arszi's Campfire Roasting).

Both mods modify and register a callback for function on_before_save_input, however, ICS registers this callback on load, so it always overwrites YACS's method which only registers the function on game start. This results in both mods running with some limited functionality, but it breaks certain checks used by YACS, such as checking for friendly bases correctly, or providing the proper text responses (the game uses ICS's instead).

This patch modifies the on_before_save_input function to include YACS necesssary checks without removing any ICS functionality (not counting the checks for lit campfires, or nearby campfires as this is handled by YACS). This also fixes some of the weird grammatical errors in the warning messages.

Comments
The minimum comment length is 10 characters.