Got a chance to use a laptop capable of running Skyrim. Took advantage of my time and did some much needed updates.
Followers are now included.
The stamina version is no longer a mess of trickery but a strict stamina cost per swing. The stronger you get, the more you can get. There is a point in the stamina version where you end up always getting your max carry weight value. This is why the stamina version has been set so that you get less than default initially. Consider it a balancing of sorts.
Hope everyone likes the new versions. As for updating, just replace the old with the new. Nothing fancy need be done.
Updated to version 1.2a -- Includes new implementation of overweight calculations. Two versions had totally lost their overweight calculations and the third was incorrectly implemented. The joys of copy/paste...
Backup your current version of ResourceFurnitureScript.psc found in "Data / Scripts / Source". **
Locate the PSC file for this mod found in "Data / Scripts / Source / Isharas_WCMCW"
Copy and override into "Data / Scripts / Source"
Open the ResourceFurnitureScript.psc file with any plain text editor. The standard Windows Notepad will do in a pinch.
Locate this line: Int Drain = 70
Change the value to what you want.
Save the PSC file.
Load up the Creation Kit for 32-bit Skyrim**
It is not necessary to load any plugins
Go to the Gameplay drop down menu
Select Papyrus Script Manager
Use the filter box to enter the name of the script i.e. resourcefurniturescript
Right click on the script name in the list and choose Compile
Test the change in game.
** If you have not installed the Creation Kit for 32-bit Skyrim, you will need to do this first. It can be found in the Tools section of your Steam library. After Steam installs it and you run it for the first time you should be asked to extract the Scripts.rar file, do so. If you do not get asked, be sure to extract the scripts.rar file found in the Data folder. You should choose the option in the right click menu to extract in location as all the necessary folder structure is included. Once this is done, you can then proceed.
I'm having a bug with this mod installed. It's happened twice now and it's more of an inconvience than anything else.
Using a very lightweight mod build (skse, race menu, unofficial patches, run for your lives, when vampires attack, arissa, skyui, and this) and this is the newest edition and the first time I've ever seen this bug in 300+ hours of gameplay with heavier setups and more scripts.
And I'm going to go over kill on recreating this bug because I don't know what's relevant to it. Female level 1 Khajiit, preset 0 (why race menu?? lol), whiterun chopping block, unarmed, wearing the novice magicka robes (not hood). Between max of 0 and 24. Occasionally I get the blacksmith animation and I'll just sit there hammering on a piece of metal not collecting wood.
The normal version has been ported to SSE. It is the only version that I will port. The other flavors can work out of the box as-is. The only difference between the normal version here and the SSE is that I removed the word 'status' from the on-screen feedback, streamlined the calculations to take up less lines, and commented out the SKSE related portions so that I could compile in the SSE environment.
Caveat: I've never used this mod before, so I'm not 100% sure I'm using it right. I installed this manually in SSE, and so far it seems to be working as designed. It's not compatible with IAFT, interrupting their wood chopping when you tab out of the command mode, though it does give them the wood they chopped until then. I hope this is helpful.
Even in the base game followers sometimes stop what you tell them to do when you tab out of command mode. This is why I put up the tip about followers on the description page and in the text document that came with the mod.
Tips: -- The follower command interface (press and hold the activate button - E by default) can be a little tricky. I found it best to tell them to chop wood then wait for them to start before tabbing out of follower command mode. Otherwise they tended not to chop anything.
********************************* And as far as SSE goes, so far the scripts have worked as intended. There is a small tweak I want to make as far as the text that is displayed as you obtain firewood. But other than that, they're good to go in SSE.
Yep, I read that and complied, waiting until she'd chopped at least ten pieces before tabbing out. It was working fine without AFT, so it's probably not your script. (I thought she wasn't getting any wood at all until I remembered AFT gave them two inventories. It's been a while since I've played Skyrim, lol)
I just downloaded this mod and so far it works well. Not only is it save on button pushing, it is something to do when you need to do something in real time. Endorsed!
I really like this file, and I usually use the stamina version. I have a request though.
Clothing and Clutter Fixes changes the weight of firewood from 6 pounds per piece to 2, throwing off the calculation. I have no knowledge of scripting to fix it myself.
Could you make a version compatible with 2 pound firewood?
Are you using SKSE? If not, that would explain the conflict. I have SKSE code that utilizes the current weight of the base object. So if a mod changes it, then the SKSE code will catch it. But the script is also designed to work without SKSE. And if SKSE is not installed it goes with the default value for weight (5 pounds).
And no, I'm not making any changes as I've retired from making Skyrim mods.
I am indeed using skse. I didn't chop till I stopped, only judged this by the number in the left hand corner, though. And you're right about it being 5 lbs, not 6.
Did you put anything else in too? Did you take anything out as well?
You have provided no information that can be used to determine if there truly is a problem. Suggest you try the game without this script. If you still crash, it is something else and not this.
That is already built into Hearthfires. Sell some firewood or do something else to make them happier with you and they should be glad to let you chop your own wood. However you only get 10 per use instead of 20 per purchase.
Anyway, that is outside the scope of this mod and not controlled by this script.
My followers will chop wood forever when I tell them too and get loads of firewood, is there a way for the mod to calculate how much weight the follower has available and only chop wood up to that amount, like I have for my character.
The follower should have their remaining carry weight determined and the appropriate amount of firewood chopped. That is how I scripted it and how it played out in my testing. But with what three variants, it is always possible something got mixed up.
I see you downloaded the normal variant of 1.2a. I've already re-downloaded the file and will take a look at the script.
On your end, if you are running with any follower mods at all, could you please do a test game without those mods and see if the problem persists? Thank you.
EDIT: Can you use the console, select your follower and type: GetAVInfo CarryWeight GetAVInfo InventoryWeight
Then do the following math: (CarryWeight - InventoryWeight) / FirewoodWeight = FirewoodToGet
That equation will tell you how many pieces of firewood they should be getting. It is possible that the follower was modified to have a larger carrying capacity than otherwise expected.
Never seen that before. No idea what would cause it. Do you get firewood without this mod? Have you used any other mods which changed the script or wood blocks in anyway? Does this happen on every wood block or only specific ones? Does the problem persist on a new game?
80 comments
I plan on porting this to SSE. I will need some time to make sure that everything works as intended.
In the meantime, if anyone wishes to try these scripts in SSE, feel free to report back with your results.
Followers are now included.
The stamina version is no longer a mess of trickery but a strict stamina cost per swing. The stronger you get, the more you can get. There is a point in the stamina version where you end up always getting your max carry weight value. This is why the stamina version has been set so that you get less than default initially. Consider it a balancing of sorts.
Hope everyone likes the new versions. As for updating, just replace the old with the new. Nothing fancy need be done.
Updated to version 1.2a
-- Includes new implementation of overweight calculations. Two versions had totally lost their overweight calculations and the third was incorrectly implemented. The joys of copy/paste...
70 is too high for how I play.
** If you have not installed the Creation Kit for 32-bit Skyrim, you will need to do this first. It can be found in the Tools section of your Steam library. After Steam installs it and you run it for the first time you should be asked to extract the Scripts.rar file, do so. If you do not get asked, be sure to extract the scripts.rar file found in the Data folder. You should choose the option in the right click menu to extract in location as all the necessary folder structure is included. Once this is done, you can then proceed.
Using a very lightweight mod build (skse, race menu, unofficial patches, run for your lives, when vampires attack, arissa, skyui, and this) and this is the newest edition and the first time I've ever seen this bug in 300+ hours of gameplay with heavier setups and more scripts.
And I'm going to go over kill on recreating this bug because I don't know what's relevant to it. Female level 1 Khajiit, preset 0 (why race menu?? lol), whiterun chopping block, unarmed, wearing the novice magicka robes (not hood). Between max of 0 and 24. Occasionally I get the blacksmith animation and I'll just sit there hammering on a piece of metal not collecting wood.
I installed this manually in SSE, and so far it seems to be working as designed.
It's not compatible with IAFT, interrupting their wood chopping when you tab out of the command mode, though it does give them the wood they chopped until then.
I hope this is helpful.
Tips:
-- The follower command interface (press and hold the activate button - E by default) can be a little tricky. I found it best to tell them to chop wood then wait for them to start before tabbing out of follower command mode. Otherwise they tended not to chop anything.
*********************************
And as far as SSE goes, so far the scripts have worked as intended. There is a small tweak I want to make as far as the text that is displayed as you obtain firewood. But other than that, they're good to go in SSE.
Clothing and Clutter Fixes changes the weight of firewood from 6 pounds per piece to 2, throwing off the calculation. I have no knowledge of scripting to fix it myself.
Could you make a version compatible with 2 pound firewood?
And no, I'm not making any changes as I've retired from making Skyrim mods.
Thanks for the response, and for making the mod.
Did you take anything out as well?
You have provided no information that can be used to determine if there truly is a problem. Suggest you try the game without this script. If you still crash, it is something else and not this.
Better yet, return the game to a vanilla state, then add this mod and see if the game crashes.
Anyway, that is outside the scope of this mod and not controlled by this script.
I see you downloaded the normal variant of 1.2a. I've already re-downloaded the file and will take a look at the script.
On your end, if you are running with any follower mods at all, could you please do a test game without those mods and see if the problem persists? Thank you.
EDIT: Can you use the console, select your follower and type:
GetAVInfo CarryWeight
GetAVInfo InventoryWeight
Then do the following math:
(CarryWeight - InventoryWeight) / FirewoodWeight = FirewoodToGet
That equation will tell you how many pieces of firewood they should be getting. It is possible that the follower was modified to have a larger carrying capacity than otherwise expected.
[02/17/2014 - 03:48:48AM] [ (0010CC15)].resourcefurniturescript.OnAnimationEvent() - "ResourceFurnitureScript.psc" Line ?
[02/17/2014 - 03:48:48AM] IP: 556Instruction: 15
[02/17/2014 - 03:48:48AM] [akSource]: [Actor < (00000014)>]
[02/17/2014 - 03:48:48AM] [asEventName]: "AddToInventory"
[02/17/2014 - 03:48:48AM] [::temp12]: True
[02/17/2014 - 03:48:48AM] [::temp13]: [MiscObject < (0006F993)>]
[02/17/2014 - 03:48:48AM] [::NoneVar]: None
[02/17/2014 - 03:48:48AM] [::temp14]: 0
[02/17/2014 - 03:48:48AM] [::temp15]: [Actor < (00000014)>]
[02/17/2014 - 03:48:48AM] [::temp16]: [Actor < (00000014)>]
[02/17/2014 - 03:48:48AM] [::temp17]: True
[02/17/2014 - 03:48:48AM] [::temp18]: "Firewood status: 0 of "
[02/17/2014 - 03:48:48AM] [::temp19]: "Firewood status: 0 of 46"
[02/17/2014 - 03:48:48AM] [::temp20]: False
Do you get firewood without this mod?
Have you used any other mods which changed the script or wood blocks in anyway?
Does this happen on every wood block or only specific ones?
Does the problem persist on a new game?