Hi everyone, I'm making a mod for sims to stay seated longer (you know, more than five sim seconds with high free will ^^)
I called the interaction "relax" and for now it's available on dining chairs, living chairs and sofas. It's working, sims will stay seated for 2 sim hours (it's tunable) and just as I wanted, if you ask other sims to join you they will chat, which I find very enjoyable.
- I've seen two problems so far. First, as you can see on the picture, the interaction appears three times. Does anyone know what could be the reason?
- Second, I notice a lot of errors when sims try to use dining chairs, living chairs and sofas for other interactions... They reset and I don't know why it does so.
As always, thank you for anyone willing to test the mod and give advices, it helps a lot
I think i found the reason why it's showing it 3 times, the relax that is
On your OnWorldLoadHandler you actually have ChairLiving twice:
List<ChairLiving> list = new List<ChairLiving>(Queries.GetObjects<ChairLiving>());
foreach (ChairLiving item in list)
List<ChairDining> list2 = new List<ChairDining>(Queries.GetObjects<ChairDining>());
foreach (ChairDining item2 in list2)
And then on your 'OnNewObject' you check if it's a ChairLiving type but not the others, meaning that chair gets the third interaction now :p
Regarding that second issue... What I tend to do is on each line I put a notification that counts up basically So:
It's tedious but you do easily track down then where the resetter is and it just makes it easier to check if particular variables do return something for you. Especially since your Run function is pretty huge