PDA

View Full Version : Bed for kids only


solfal
5th Jul 2008, 8:59 PM
I have been trying to make a short bed that can only be used by kids.

The bed workes fine untill I try to have it for kids only.
Just unticking the boxes for adults in the TTAB gets me an error when testing. I also tried to leave the TTAB as is and try to have it check "am I a kid" in the BHAV but it still gives me the error.

Here is the error log:

Object id: 136
name: N001_User00276 - Sonja
Stack size: 12
Error: Motive number out of range or not an acceptable value.
Iterations: 1
Frame 11:
Stack Object id: 174
Stack Object name: Bed - Single - Expensive - E - Head
Node: 2
Tree: id 8219 name 'Bed Rel. - Adjust Ads - Sleep' version 6
from BedGlobals
Prim state: 0
Params: Locals:
Frame 10:
Stack Object id: 174
Stack Object name: Bed - Single - Expensive - E - Head
Node: 3
Tree: id 8193 name 'Interaction - Sleep - User Directed - TEST' version 19
from BedGlobals
Prim state: 0
Params: 0 Locals:
Frame 9:
Stack Object id: 0
Node: 0
Tree: id -1 name 'No behavior' version 0
from
Prim state: 1
Params: Locals:
Frame 8:
Stack Object id: 174
Stack Object name: Bed - Single - Expensive - E - Head
Node: 5
Tree: id 8201 name 'Routing - Goto Head of Bed' version 31
from BedGlobals
Prim state: 1
Params: 1 Locals:
Frame 7:
Stack Object id: 174
Stack Object name: Bed - Single - Expensive - E - Head
Node: 1
Tree: id 8202 name 'Sleep - Get In' version 37
from BedGlobals
Prim state: 0
Params: 1 5 Locals: 0
Frame 6:
Stack Object id: 174
Stack Object name: Bed - Single - Expensive - E - Head
Node: 11
Tree: id 8192 name 'Interaction - Sleep' version 48
from BedGlobals
Prim state: 0
Params: 5 Locals: 174
Frame 5:
Stack Object id: 174
Stack Object name: Bed - Single - Expensive - E - Head
Node: 0
Tree: id 8343 name 'Interaction - Sleep - User Directed' version -32759
from BedGlobals
Prim state: 0
Params: 5 Locals:
Frame 4:
Stack Object id: 136
Stack Object name: N001_User00276 - Sonja
Node: 5
Tree: id 281 name 'Wait For Notify' version 7
from global
Prim state: 1
Params: 0 1 Locals:
Frame 3:
Stack Object id: 136
Stack Object name: N001_User00276 - Sonja
Node: 1
Tree: id 8282 name 'Function - Main - Check Queue' version 45
from PersonGlobals
Prim state: 0
Params: Locals: 174
Frame 2:
Stack Object id: 136
Stack Object name: N001_User00276 - Sonja
Node: 2
Tree: id 8283 name 'Function - Main - Loop' version 90
from PersonGlobals
Prim state: 0
Params: -53 20 1 Locals: 0
Frame 1:
Stack Object id: 136
Stack Object name: N001_User00276 - Sonja
Node: 5
Tree: id 8193 name 'Function - Main' version 69
from PersonGlobals
Prim state: 0
Params: Locals: -53 20
Frame 0:
Stack Object id: 136
Stack Object name: N001_User00276 - Sonja
Node: 1
Tree: id 4096 name 'Function - Main' version 2
from N001_User00276
Prim state: 0
Params: Locals:

Numenor
5th Jul 2008, 11:26 PM
I have edited the TTAB, just like you mentioned, and then I tried your bed in my game (clean game with all EPs): no errors.

The fact that you get the same error both when modifying the TTAB and when editing the BHAV proves that the problem is external to the bed: I suspect a global mod related to sims or sleeping or beds (do you use the Insimenator or the Inteenimater?).

solfal
6th Jul 2008, 8:37 AM
Hi Numenor!

Strange. I tried it out with an empty downloads folder and at first it seemed to work, but when I made the child use the bed again I got the error.
After some testing I tried to clone a new single bed, made the changes in the TTAB to get the adult not to be able to sleep in it and nothing more - I got the same error.

(I have only the base game at this computer)

Inge Jones
6th Jul 2008, 12:35 PM
How does the bed behave when you have just cloned it (give it new GUIDs) but *before* editing any TTAB entries or BHAVs?

The line that is erroring *should* be referring to energy motive, which has been the same numbered motive in all EPs. It it's erroring, then I can only think you have that BHAV overridden by some custom content whose author has done something very strange indeed. Or who has added a motive adjustment for a motive only used in later games - though that shouldn't actually error, only be useless in basegame, as the data space has been reserved all along.

solfal
6th Jul 2008, 1:00 PM
I was going to say it workes because I had my bed work before I made the changes but to be sure I recloned the bed and then I got another error "Too many iterations" ?

Inge Jones
6th Jul 2008, 1:11 PM
Well whatever is going wrong it's going wrong in the semi-globals - not in your bed. Have you tried a normal uncloned Maxis bed lately?

solfal
7th Jul 2008, 5:00 PM
I was going to say it workes because I had my bed work before I made the changes but to be sure I recloned the bed and then I got another error "Too many iterations" ?

Well I was a little too fast. I reused the same guid number twice in the recloned bed, thats why I got that error.

I made a new bed, tested in game in an empty downloads folder - it workes great.

Then I made the TTAB changes (Unticking adult, teen and elder) and tested again in an empty downloads folder. The kid could get to sleep, but when I did X the icon to stop the interaction, the kid got out of bed and I got the same error as above(Motive number out of....) . Strange isnīt it?

Inge Jones
7th Jul 2008, 6:23 PM
It is very peculiar. The things going through my head don't apply - things like SimPE is writing back the TTAB wrong etc etc - because I looked at the semiglobal that's erroring and it's a line that should be running no matter what you did to the TTAB.

Did you do ALL the exact same things in the game with the unedited bed as the edited bed? Exactly the same sim and same situation?

solfal
7th Jul 2008, 7:19 PM
Yes, I did exactly the same with the same sim

Inge Jones
8th Jul 2008, 9:04 AM
I have to admit defeat! I have no idea what the problem could be :(

solfal
8th Jul 2008, 4:23 PM
Well, thank you so much for taking your time to look at it!