Replies: 10 (Who?), Viewed: 332 times.
Field Researcher
Original Poster
#1 Old 15th May 2021 at 5:07 AM Last edited by lizcandor : 15th May 2021 at 2:57 PM.
Default Toddlers Can Use Stairs Debugging
@nitromon and @Bast, the debugging-friendly version of the Toddlers Can Use Stairs mod is here if you want to give it a try! It's now in debugging mode by default, and also has a cheat (debugLizcandorStairs) that toggles debugging mode on and off. As a first test, 5 sim-minutes after you load a world it should give you a message saying that the mod is active and telling you which interactions were replaced; can either of you tell me if that message appears, and if so what it says? And, also if the message appears at all, do debugging messages pop up when you have a sim (toddler or otherwise) try to use a staircase, either through the Use Stairs interaction or just regular routing?

(The file says it's the NRaas GoHere compatible version of the mod, but I've removed the GoHere references so it should work on its own as well)
Download - please read all instructions before downloading any files!
File Type: zip lizcandorToddlerIndependence_NRaasGoHereVersion.zip (1.73 MB, 6 downloads)
Advertisement
Mad Poster
#2 Old 15th May 2021 at 9:20 AM
hmmm

It said everything loaded and replaced. but then i get

Quote:
mSleepingTasks did not contain key


Quote:
lizcandorStairs stair traversal outer loop iteration 4 did push


Quote:
lizcandorStairs stair traversal error: A null value was found where an object instance was required


Quote:
lizcandorStairs stair traversal revmoving sleeping tasks


Quote:
Yuki Sekemoto consuited protal restriction for lizcandorStairs


Quote:
Yuki Sekemoto has no portal restriction for lizcandorStairs

Sanity is overrated.

Nitromon is a type of Pokemon encountered in the Pokemon Nitrome Version series.

There. Mystery solved.
Field Researcher
Original Poster
#3 Old 15th May 2021 at 3:08 PM
Aha, that narrows down where the (or at least one) error is happening! I've updated the package in the first post to a version that fixes where I believe that null value error came from, and has more debugging messages in that area (there will be a lot, sorry, it's a while loop) so I can see how far it gets if I'm wrong. Can you try it again?

Also, what's happening when you try to have a sim use the stairs? Do they get stuck on the stairs, or silently cancel the attempt to climb them, or route fail? From those messages it looks like routing through a staircase should proceed as normal and only have a problem if you cancel whatever interaction the sim was doing while they're on the stairs, but that wouldn't explain why toddlers can't use the stairs.
Mad Poster
#4 Old 15th May 2021 at 10:18 PM
Quote:
Originally Posted by lizcandor
Also, what's happening when you try to have a sim use the stairs? Do they get stuck on the stairs, or silently cancel the attempt to climb them, or route fail? From those messages it looks like routing through a staircase should proceed as normal and only have a problem if you cancel whatever interaction the sim was doing while they're on the stairs, but that wouldn't explain why toddlers can't use the stairs.


I'll test the new one later, but to answer this question. All the adults use the stairs fine. The toddler cannot even click the other floor he/she is not on. Like if I click the floor of the 2nd floor while on the first floor, nothing happens. Literally nothing happens. No menu, nothing. Same thing with objects..

Sanity is overrated.

Nitromon is a type of Pokemon encountered in the Pokemon Nitrome Version series.

There. Mystery solved.
Field Researcher
Original Poster
#5 Old 15th May 2021 at 11:24 PM
What about the Use Stairs interaction on the stairs themselves? That's at least visible, right? Whether that interaction even tries to run might tell me whether the problem is specifically with the replaced interactions or with the stairs themselves (or with the altered age case test, maybe).
Mad Poster
#6 Old 16th May 2021 at 7:49 AM Last edited by nitromon : 16th May 2021 at 8:25 AM.
Quote:
Originally Posted by lizcandor
What about the Use Stairs interaction on the stairs themselves? That's at least visible, right? Whether that interaction even tries to run might tell me whether the problem is specifically with the replaced interactions or with the stairs themselves (or with the altered age case test, maybe).


Yes, that's the only interaction that is available, besides objects on the same floor as the kid.

So when I try to click on an object of another floor I get:

Quote:
Sam Sekemoto has no portal restriction for lizcandorStairs


Quote:
Sam Sekemoto consuited portal restriction for lizcandorStairs


There are a few other ones, but over 40 logs, so I don't know what is what. I'll just post some odd ones.

Sanity is overrated.

Nitromon is a type of Pokemon encountered in the Pokemon Nitrome Version series.

There. Mystery solved.
Field Researcher
Original Poster
#7 Old 16th May 2021 at 3:29 PM
Okay. Most of those messages are normal, but the current interaction being null isn't. Let's leave trying to click on objects on other floors alone for now, then. When you click the use stairs interaction directly instead of trying to use an object on a different floor, what does the toddler do?

Edit: Also, what you mean by this?
Quote:
Originally Posted by nitromon
when I try to click on an object of another floor
I thought interactions with objects on other floors weren't even visible for you, but those messages sound like they're visible and the routing just doesn't work?
Mad Poster
#8 Old 17th May 2021 at 2:46 AM Last edited by nitromon : 17th May 2021 at 3:16 AM.
Quote:
Originally Posted by lizcandor
When you click the use stairs interaction directly, what does the toddler do?


It works fine. Toddler climbs the stairs.

Quote:
Also, what you mean by this? I thought interactions with objects on other floors weren't even visible for you, but those messages sound like they're visible and the routing just doesn't work?


Nope, the interactions are not visible. That's why I can't click them. There's no menu, the icon doesn't change. Not even objects, but even the floor, so there is no "go here."

I can actually make a video if you want to see it.

Edit: Actually this might help.

It is works intermittenly. So I was about to record a video for you, but all of the sudden it just works. Everything works. So I quit TS3 and boot it up again, and it doesn't work anymore. Most of the time it doesn't work, but every now and then it works.

Only thing I can say is that I am on 1.67 and I don't have Supernatural or Showtime.

Sanity is overrated.

Nitromon is a type of Pokemon encountered in the Pokemon Nitrome Version series.

There. Mystery solved.
Field Researcher
Original Poster
#9 Old 17th May 2021 at 5:11 AM
Ohhh I've been misunderstanding the problem this whole time then, sorry I thought the stairs weren't working either, but if they are then whatever's wrong with the replaced interactions has nothing to do with the stairs code - it might be that either the interactions didn't get replaced like they should have or that my replacement interactions failed to implement IOverridesAgeTests properly. Somehow.

But if the debugging messages say the replacements worked, and the interactions aren't failing every time...I've got no idea what could cause that, really. I can try disabling the Supernatural and Showtime EPs in my game and see if the same happens for me? I'm going to go offline for the week pretty soon, but if I have time to fiddle with this in the evenings and can make any progress I'll let you know. Thanks for all your help so far!
Mad Poster
#10 Old 17th May 2021 at 6:00 AM
no prob, well like i've said, i don't really like toddlers, if it is just me with the problem, don't worry about it.

here's a video i recorded if you want to see the problem in action.


Sanity is overrated.

Nitromon is a type of Pokemon encountered in the Pokemon Nitrome Version series.

There. Mystery solved.
Lab Assistant
#11 Old 17th May 2021 at 3:01 PM
Good day! I just went to the site. The mod works for me in the same way as on the video for nitromon.
Back to top