Welcome to the AFK Mods bug tracker. In order to report an issue, you need to have a VALIDATED account to post one. Once you have followed the link the registration email sent you, please select a project from the drop down menu below. Select “Open New Issue” and fill out the form with as many details as possible.

Please also consider sending your bug report to Bethesda if you are reporting on an issue with Skyrim Special Edition, Fallout 4, or Starfield. Doing so will help everyone on all platforms.

Issue Data
Status: Closed
Issue Type: Bug Report
Project: Unofficial Skyrim Legendary Edition Patch
Component: Skyrim LE: Hearthfire DLC
Category: Actors
Assigned To: Nobody
Platform: Windows PC
Severity: Low
Votes: 0
Watching: N/A
Opened By Sclerocephalus on Sep 17, 2013 9:32 pm
Closed By Arthmoor on Dec 30, 2013 12:46 am
Resolution: Fixed

Issue #13577: [Hearthfires] Bug in UHFP v1.1.2 version of BYOHChickenScript

 
This script is attached to the chicken enable markers, and each marker controls one chicken. UHFP 1.1.2 added an OnCellDetach event to check for dead chicken (apparingly in order to enable the player to replace them). However, the check is run on the marker cast as an actor, which is always none and therefore spams recurring errors on the log:

[09/17/2013 - 01:23:16PM] error: Cannot call IsDead() on a None object, aborting function call

stack:

[ (03007603)].byohhousechickenscript.OnCellDetach() - "BYOHHouseChickenScript.psc" Line 17

[09/17/2013 - 01:23:16PM] Warning: Assigning None to a non-object variable named "::temp4"

stack:

[ (03007603)].byohhousechickenscript.OnCellDetach() - "BYOHHouseChickenScript.psc" Line 17

Comments

11 comment(s) [Closed]
Arthmoor said:
 
Then how are we supposed to fix it? That logic is exactly what BYOHHouseCowScript.psc is using to determine if your cow is dead, and BYOHHouseScript.HouseAnimalDied() will only accept ObjectReference parameters.

Attempting to change the chicken one to extend Actor and then change the HouseAnimalDied() function to accept Actor results in the other scripts complaining when trying to compile.

I dislike rabbit holes - cow deaths and horse deaths appear to be entirely reversible. So why would chickens do this? Hell, I copied the OnCellDetach() block directly from the cow script because the chicken script didn't have that before.

Sclerocephalus said:
 
Another one:

[09/23/2013 - 02:22:07PM] Error: (03007888): cannot enable an object with an enable state parent.<br>
stack:<br>
[ (03007888)].byohhousechickenscript.Enable() - "&lt;native&gt;" Line ?<br>
[ (03007888)].byohhousechickenscript.OnCellAttach() - "BYOHHouseChickenScript.psc" Line 12

Arthmoor said:
 
Oh Beth, you and your enable parents :P

Any thoughts on the other?

NightStar said:
 
The none error is confirmed <a data-ipb='nomediaparse' href='http://www.afkmods.com/index.php?/topic/3822-help-with-script-log-errors/#entry148573'>here</a>.
<pre class="_prettyXprint _linenums:0">&#91;11/15/2013 - 02:14:41AM] error: Cannot call IsDead() on a None object, aborting function call
stack:
&#91; (05007603)].byohhousechickenscript.OnCellDetach() - "BYOHHouseChickenScript.psc" Line 17
&#91;11/15/2013 - 02:14:41AM] warning: Assigning None to a non-object variable named "::temp4"
stack:
&#91; (05007603)].byohhousechickenscript.OnCellDetach() - "BYOHHouseChickenScript.psc" Line 17</pre>

Arthmoor said:
 
Yes, I am aware it's confirmed, but no solution has been offered yet. There's no reason the chicken script should be misbehaving when it's set up just like the cows and horses.

BlackPete said:
 
I just wanted to comment that I get these errors even though I don't have any chickens at Lakeview Manor; I haven't even hired a steward yet to make it possible to buy chickens. Also, I haven't bought the other two Hearthfire homes yet either, but I suspect they would generate the same error(s).

Also getting them at Heljarchen Hall (in The Pale), even though I haven't even started building a house there yet.

Arthmoor said:
 
This should be fixed for UHFP 2.0.1.

The script has been modified to extend Actor now instead of ObjectReference. This still doesn't explain why cows and horses work properly though even though the scripts on THEM still extend ObjectReference.

This does not appear to take retroactively though.

BlackPete said:
 
Was the below error (<span style="color:#ffff00;">cannot call numChickens()) fixed as well for UHFP 2.0.1?<strike> It appears to be a bit different and I can add a new tracker issue if necessary, but would prefer to avoid posting a duplicate report to avoid confusion.</strike>
Edit: added a new report as requested in comment below.
<a data-ipb='nomediaparse' href='http://www.afkmods.com/index.php?/tracdown/issue/14539-byohhousechickenscript-cannot-call-numchickens-on-a-none-object/'>#14539</a> (fixed)

NightStar said:
 
It's a new error, one not reported before, so it needs a new report.

EDIT: Sorry about making you add a new report, I didn't know that Arthmoor had fixed that too while he was working on the script.

BlackPete said:
 
No need to worry. I don't see how anyone other than Arthmoor would have known for certain, since he is the one fixing most of these. At least the other issue is there for future reference.

NightStar said:
 
Related <a data-ipb='nomediaparse' href='http://www.afkmods.com/index.php?/tracdown/issue/15196-byohhousechickenscript-03007888-cannot-enable-an-object-with-an-enable-state-parent/'>Bug #15196</a>.

Showing Comments 1 - 11 of 11