I'm
trying desperately to mod something, and the code
appears to be correct. I had to debug this the brute force way with Break Points, and I've narrowed it down to the following issue, namely:
Sims that I would think are supposed to be considered alive (well... maybe they're brain dead
), but for some reason they are returning
true for the test:
0: Death - Is Sim Dead? (NID)(Param 1); true: false, false: 1
Operands: 0901000A00000A00000A000001000000
Specifically, I've been testing this on the Pleasant family. I further narrowed it down to this line:
###
# Group = 0x7FD46CD0, Instance = 0x301
# Title = Death - Is Sim Dead? (NID)
#
# Format = 8009, Params = 1, Locals = 1
# Tree type = 0, Header flag = 18, Tree version = FFFF800B (-32757), Cache flags = 0
0: Verify - Neighbor is Linked(Param 0); true: 1, false: true
And even further still:
# Group = 0x7FD46CD0, Instance = 0x39D
# Title = Verify - Neighbor is Linked
#
# Format = 8009, Params = 1, Locals = 0
# Tree type = 0, Header flag = 0, Tree version = FFFF8008 (-32760), Cache flags = 0
0: Stack Object := Param 0; true: 1, false: error
1: Set to Next: Verify Neighbor ID in Stack Object; true: 2, false: 3
2: Neighbor's Object Definition type (0x9) == 17 (0x11); true: false, false: true
What exactly does this line do? And why, Why, WHY? is it returning false? From just reading it, the name itself implies to me that it is verifying if the NID in the Stack Object is in deed a true NID.
There is a bit more info in SimPE,where it says:
Set to Next: (Verify Neighborhood ID in Stack Object, result in Stack Object, excluding disabled objects)
Is this last part about excluding disabled objects tripping me up? I guess I shouldn't bother checking if these sim's are dead?
The thing is, one would assume that Daniel and Mary-Sue Pleasant are indeed alive. But for some reason, they are retuning as not linked. I can't figure it out, and I've checked the node version and operands, and it looks like it should be ok. I must be missing something. I'll post the error log as well.
Incidentally, I
stole borrowed this code from norandomflirtwants which was a "CT - " type BHAV. Does that make a difference? I simply cloned and renamed it in my mod. Is there some special setting somewhere that might be affecting how Params are passed?
Feel free to burninate this thread if it is far too trivially weak and feeble.
Ste
[attachment deleted by admin]