I'm having a couple of problems related to logs and Hearthfires.
The first is that I've placed a BYOHHouseLogPileActivator - basically just a trigger box - around my new log pile, and all it's supposed to do is report the number of logs. It does that by having a name of "(
The second is that the script line
int logcount = Game.GetPlayer().GetItemCount(BYOHMaterialLog)
is crashing the game. This is copied unchanged from the same function in the script for building HearthFire houses, and I've checked that BYOHMaterialLog is properly initialized. I know(?) that it's that line because the Debug.Trace line immediately before it is executed, and the similar one immediately after isn't.
Obviously I'm observing these effects in that order, and I don't know if they're related at all.