Hearthfires Log Piles

Post » Sun May 04, 2014 11:31 am

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 "()" and an Activate Text Override of "Log Pile". The result with all the ones Bethesda placed is you see the text "Log Pile (x)" where x is the number of logs. No scripts are involved, the global is substituted in the name. However my instance shows only "Log Pile (" without the global value or right parenthesis. Using GetGlobalValue in the console shows the correct value, so it's not a corrupt global.

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.

User avatar
Thema
 
Posts: 3461
Joined: Thu Sep 21, 2006 2:36 am

Return to V - Skyrim