SilentLucidity
7th Oct 2008, 08:40 AM
Hello, I've been working on a small addition to Echo's harvestable crops, adding the option to harvest for produce that would go to the harvesting sim's inventory. I've been talking with Echo about my progress (problems!) and she asked me to post the object and error log. I added the harvest basket too, just in case.
If anyone else want's to help, here's the problem: I have two BHAVs, one that is my own written from scratch, and the other based on Echo's original 'interaction - harvest'. 'Harvest one for produce - old' is mine. It harvests, adds grapes to the sim's inventory and resets the plant, but it leaves the plant 'in use', making any future harvesting unavailable. 'Harvest for produce' is the the one I based on Echo's BHAV. (This is what the pie menu points to right now.) It was doing the same thing as mine until I took out what I thought might be an un-needed line (0x7). Then it stoped being 'in use' after harvest, but it didn't lose the option to harvest like it's supposed to. But when I added a line near the end that tells the object to not be harvestable anymore (0xF) the interaction errors out. I think this is happening because the StackObject in the all the lines involved with creating a new object instance and adding to the using sim's inventory is different than the StackObject that is suppose to become not-harvestable, and there's nothing in there saying the StackObject ID has changed, but I don't know how to fix it.
If this one can get fixed, then I'm not concerned about my first BHAV, although it would be interesting to know why it's causing the object to be perpetually in use.
Thanks in advance for any help. :)
If anyone else want's to help, here's the problem: I have two BHAVs, one that is my own written from scratch, and the other based on Echo's original 'interaction - harvest'. 'Harvest one for produce - old' is mine. It harvests, adds grapes to the sim's inventory and resets the plant, but it leaves the plant 'in use', making any future harvesting unavailable. 'Harvest for produce' is the the one I based on Echo's BHAV. (This is what the pie menu points to right now.) It was doing the same thing as mine until I took out what I thought might be an un-needed line (0x7). Then it stoped being 'in use' after harvest, but it didn't lose the option to harvest like it's supposed to. But when I added a line near the end that tells the object to not be harvestable anymore (0xF) the interaction errors out. I think this is happening because the StackObject in the all the lines involved with creating a new object instance and adding to the using sim's inventory is different than the StackObject that is suppose to become not-harvestable, and there's nothing in there saying the StackObject ID has changed, but I don't know how to fix it.
If this one can get fixed, then I'm not concerned about my first BHAV, although it would be interesting to know why it's causing the object to be perpetually in use.
Thanks in advance for any help. :)