Issue Data
|
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 |
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.
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.
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() - "<native>" Line ?<br>
[ (03007888)].byohhousechickenscript.OnCellAttach() - "BYOHHouseChickenScript.psc" Line 12
[09/23/2013 - 02:22:07PM] Error: (03007888): cannot enable an object with an enable state parent.<br>
stack:<br>
[ (03007888)].byohhousechickenscript.Enable() - "<native>" Line ?<br>
[ (03007888)].byohhousechickenscript.OnCellAttach() - "BYOHHouseChickenScript.psc" Line 12
Oh Beth, you and your enable parents
Any thoughts on the other?
Any thoughts on the other?
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">[11/15/2013 - 02:14:41AM] error: Cannot call IsDead() on a None object, aborting function call
stack:
[ (05007603)].byohhousechickenscript.OnCellDetach() - "BYOHHouseChickenScript.psc" Line 17
[11/15/2013 - 02:14:41AM] warning: Assigning None to a non-object variable named "::temp4"
stack:
[ (05007603)].byohhousechickenscript.OnCellDetach() - "BYOHHouseChickenScript.psc" Line 17</pre>
<pre class="_prettyXprint _linenums:0">[11/15/2013 - 02:14:41AM] error: Cannot call IsDead() on a None object, aborting function call
stack:
[ (05007603)].byohhousechickenscript.OnCellDetach() - "BYOHHouseChickenScript.psc" Line 17
[11/15/2013 - 02:14:41AM] warning: Assigning None to a non-object variable named "::temp4"
stack:
[ (05007603)].byohhousechickenscript.OnCellDetach() - "BYOHHouseChickenScript.psc" Line 17</pre>
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.
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.
Also getting them at Heljarchen Hall (in The Pale), even though I haven't even started building a house there yet.
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.
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.
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)
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)
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.
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.
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.
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