Jump to content

Recommended Posts

If youd like to disable that behaviour I think here is what you might try for a quick and dirty solution that might only disable the curse of woodie to turn into a beaver after chopping down too much wood

 

1) go to folder:

...\Steam\steamapps\common\dont_starve\data\scripts\prefabs

and make a backup-copy of the file "woodie.lua"

 

2) open the original woodie.lua file in text editor

 

3) search for 

inst:ListenForEvent("working", onworked)

(line 260) and replace it with 

-- inst:ListenForEvent("working", onworked)

(or delete the line)

 

That should remove the tracking of chopped wood (more specifically of any working) and would stop woodie to turn into a beaver through that while not affecting any other behaviour of the character.

 

TRY ON YOUR OWN RISK - if it breaks something just restore the woodie.lua through overwriting it with the backup-file.

 

As mentioned this is a quick and dirty solution and updates or mods might overwrite this change, but as its only 1 line of code changed it also doesn´t justify a mod for itself.

Ok, I guess that listener will get set somewhere else again then.

Tried another solution myself now that worked to not increase his beaverness-meter.

 

Instead of the above you look for the following line:

inst.components.beaverness:DoDelta(3)

(line 177) woodie.lua as described above.

 

and add the "--" there or delete it. That did the trick and this time its tested :)

 

Seems to work with existing games as well as new ones.

 

Sorry for the false instructions - how do i edit my previous posts?

@ColorfulStan It's generally not a good idea to edit the original files.

 

@MrShpeee I think the most efficient code would be if you copied woodie's code and made a curseless-woodie out of it, since the curse is a big part of the character and pretty closely connected with his code.

 

But, there is a simpler solution which should work.

AddPlayerPostInit(function(player)	local beaverness = inst.components.beaverness		-- Make person in case you're a beaver	if beaverness.makeperson then		beaverness.makeperson(self.inst)	end		-- Set to false for IsBeaver fn to work correctly	beaverness.is_beaver = false		-- Disable the delta function for future transformation	function beaverness:DoDelta() endend)

This goes in your modmain.lua script.

@ColorfulStan I'm sorry but it still didn't work for me and i don't know why :(

 

@Blueberrys Something causes an error and crashes the game..or I just did it wrong.

 

Can you please explain to me how to make that modmain and everything?

 

 

-Thanks

@ColorfulStan It's generally not a good idea to edit the original files.

 

Of course its not, that´s why its called quick'n dirty :-)

 

(Would it work for OP) It´s just the most simple way for someone not familar with coding, since the modification in my last post should only disable the trigger / function call that is concerned with controlling the beaver-meter and not interfere with anything else.

 

Generally I wouldn't recommend this myself, but anything more elaborate requires a decent amount of effort to get the basics for modding and coding down i quess.

 

Buuut it doesn't seem to work for him anyways, and for me it was a thought experiment to get used to the coding structure of the game...so that's that ;)

 

Maybe Ill get into it and make that endless-chopping-woodie just for lols over the weekend to get into character modding myself, we´ll see.

 

cheers

@MrShpeee See this (incomplete) tutorial for setting up a basic mod. A modmain file is just a text file in your mods root folder named "modmain.lua"

Look into other mods to get an idea on how it works, or see this page for the file structure.

I just noticed there is a bug in the "Action Queue" Mod that prevents woodie from transforming.

If you queue up all the trees you want (by shift-dragging a selection) He doesn't transform when the beaver-meter reaches 100.

Edited by ColorfulStan

ok here is a very basic mod-solution that removes the beaverness increase from woodie.

just extract the archive into your mods folder and enable it under mods "Treeslaughter woodie"

 

Some notes:

  • Woodie still his his curse but its not triggered through chopping wood anymore
  • Lucy doesn´t talk anymore
  • Not tested if the transformation back works as intended but it should
  • modicon is borrowed from devtools mod

Let me know if there are any issues

treeslaughter-woodie.zip

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
×
  • Create New...