Jump to content

[Solved!] Looking for a mod that stops campfires and firepits being extinguished by sleeping!


Recommended Posts

Hi!

Literally the title. I'm so desperate for a mod or tweak like this. I've been digging through mods for days, even scripts among the game files to no avail.

The only mod that seems to work (partially) is Godly Fire Infinite. However, it is so old and deprecated that it breaks the game so much that you cannot play.

Any ideas and suggestions are welcome. Thanks a lot in advance for the help!

 

Edited by Sir Mephisto
Link to comment
Share on other sites

You can try this in your modmain:

AddComponentPostInit("fueled", function(self)
    local _LongUpdate = self.LongUpdate
	function self:LongUpdate(dt)
	    if _LongUpdate ~= nil and not self.inst:HasTag("campfire") then
		    _LongUpdate(self, dt)
		end
	end
end)

 

Link to comment
Share on other sites

On 3/19/2024 at 8:22 AM, KXWl1 said:

You can try this in your modmain:

AddComponentPostInit("fueled", function(self)
    local _LongUpdate = self.LongUpdate
	function self:LongUpdate(dt)
	    if _LongUpdate ~= nil and not self.inst:HasTag("campfire") then
		    _LongUpdate(self, dt)
		end
	end
end)

 

Well, thank you but as much as I could I made a mod with this code but didn't help. Nothing happens?

Sleepytime Vigil.zip

Link to comment
Share on other sites

15 hours ago, Sir Mephisto said:

Well, thank you but as much as I could I made a mod with this code but didn't help. Nothing happens?

Sleepytime Vigil.zip 82.69 kB · 1 download

Please add these additionally:

AddComponentPostInit("burnable", function(self)
    local _LongUpdate = self.LongUpdate
	function self:LongUpdate(dt)
	    if _LongUpdate ~= nil and not self.inst:HasTag("campfire") then
		    _LongUpdate(self, dt)
		end
	end
end)

 

Link to comment
Share on other sites

4 hours ago, KXWl1 said:

Please add these additionally:

AddComponentPostInit("burnable", function(self)
    local _LongUpdate = self.LongUpdate
	function self:LongUpdate(dt)
	    if _LongUpdate ~= nil and not self.inst:HasTag("campfire") then
		    _LongUpdate(self, dt)
		end
	end
end)

 

Amazing. That worked! Thank you! I'll soon make it into a mod and upload to steamworkshop by crediting you as author. I haven't slept all night just to be able to bypass the campfires by modding always on tiki torches into the game.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...