Hi all.
Many thanks for this Hack, Squinge.
As you know, I'm currently testing it out, and BTW, my DL'd version of "Community Sleeping" was out of date. I'm guessing that's why the visitors wouldn't sleep on my Lots. I had the old version which only worked in Businesses that were open, but NOT the new one which works for ANYTIME.
I'm reloading the game, and will test again.
My findings and "To Test" list as follows:
So far I've found that visitors WILL stay on the Lot, even if exhausted and needing to fall unconscious, and even if all Residents are asleep. Which rocks!
However, Vampires will still flee when the sun comes up. Pity, that.
I
will test saying goodbye.
Also must test Walkbys. Will sims walking past(but not greeted) remain trapped on the Lot? A rhetorical question, I will let you know when I do.

Some other thoughts:
Distinguishing between "Visitors"(ie. those invited and greeted) and Shoppers(those who turned up during Open Hours) would be nice. Especially if one wishes to run a Home Business in an apartment complex.
I also need to ascertain what happens if I close a Buiness for the day on a Community Lot. Ie. will my Shop Owner be unable to leave unless he or she says goodbye to Everyone on the Lot? Not a huge problem if that's necessary, but of course this WOULD ALSO remove Invited Guests.
Well, just a few thoughts, and I'll get on with playtesting.
Nevertheless, this is promising to be a very exciting project, Squinge, and I do sincerely thank you for making this hack.

Adam.
Edit: Just an update...
I return with news, both good and bad.
Firstly, it seems that sims can indeed leave if bid goodbye. I just tried that out and it worked like a charm.
I've also been
hoping to clarify whether or not sims who are just passing, but not greeted, get trapped. I planned to do this by triggering a Walkby with Wintermutaei1's Mailbox Hack... but unfortunately the option doesn't show up, and I think that
maybe "Trigger Walkby" and a few other options such as "Trigger Burgler" were perhaps only available on PRE-OfB versions of the hack.
However I can say with certainty that so far the only visitors detained on the Lot are those whom I invited over in the first place, so that would
suggest at least that Walkby sims are immune to the entrapment, so that's good.

I must test this with NPCs too. Ordinarily the Maid, Gardener and others will only remain
after finishing their work
IF they are Resident(s)' friends, and have been invited(or rather, permitted) to stay behind and hang out. Hopefully that should remain the same.
And of course I have Employees and their end-of-shift/"Send Home For The Day" actions to consider and test... But so far so good on the coming-and-going issue.

Now the Bad News:
1) It doesn't seem to prevent Vampires from fleeing the sun. you can invite 'em over at night, but when the sun comes up, they flee the Lot. Bummer.
2) Visitors can't use beds. I've tried it with the "Community Sleeping on ALL Lots at Anytime", but that still doesn't help.
WITHOUT the visitors make no attempt to find an accessible bed, but
WITH it, the action is queued, and they walk up to the bed. Stand next to it, and then after pausing a moment, walk off still exhausted and probably wanting a coffee. They do however use toilets ok.
So, I tested this by taking control of a very tired Visitor.
UNsurprisingly, The InSIM's Selector
doesn't provide the Sleep options on the beds, but the Mind Control Mirror
does.
Would I therefore be right in thinking that the "Community Sleeping" Hack was intended really for use with a Playable Family and their "Casual Outing" friends to use on Community Lots?
Either way, I've found that this Hack
doesn't permit Invited Visitors to sleep in beds on a Residential Lot.
I believe this would be another OfB-related code change(aren't they all?).
It also makes me wonder what other functions visitors cannot perform. It's quite possible they can't cook or bathe. Though I THINK I have a "Visitors Cook" Hack, and I THINK it works on Residential Lots. I'll have to look into that.
Finally....
Is it global mods? .. hwaa.. I thought it can be turned on and off.. could you make one that can be turned on and off? thanks...
...is a very good point.
It set me thinking that an on/off feature would be
VERY handy for anyone wishing to make Hotels and Apartments on
some Lots, but wishing
not to end up with Visitors stranded on all.
Perhaps, instead of a Global Mod, a Hacked Painting or some such, which allows "Visitor Detention" on/off for the Current Lot(with Off as the Default)might be a better idea. It would ensure that we don't run the risk of Townies and non-playables wetting themselves in Community Lots owned by no one.
AND it would eliminate the problem(s) of Shoppers not going home... or at least, it would reduce the risk, and any instances of this happening would therefore be a) the users' fault, and b) easily rectified.
And, assuming it wouldn't create a conflict, there could be a different painting that had ON as the Default. Then you choose which one for which Lots.
Items would need to be available for purchase in BOTH catalogues(Resi and Comm) of course.
Just a thought.
In any case, it seems I've more Beta Testing to do. Back later. :wave:
Edit 2: A further update.
Ok. Next up I've learnt that the visitors can't use baths or showers. I took control of a visitor, used the Personality Adjuster to Max her Neatness, then the Motive Monitor to kill her Hygene, and followed her around for a bit. But she wouldn't bathe or shower.
Looking through the forum at the various "Visitor Enabled" threads, I came across the posts about Baths and Showers, and also Beds, and Cribs. All are enabled, but I THINK I'm right in saying that Beds, Baths and Showers are only enabled on Community and Business Lots. But NOT on Residential ones.
Possibly the same with Fridges and Cookers too maybe?
Hmmm.
Well, at risk of being a frightful pain in the butt, might it be easy/possible to update the Visitor Enabling Hacks to cover Residential Lots too? And indeed, would it be awfully impertinent of me to ask?
It really would be most appreciated. And not just by me, i'm quite sure.
You see for a long time now, attempts have been made to create a workable, and water-tight, Apartments function for TS2; with multiple families co-existing in one building(but not all pooling the same funds or all moving out together etc.)...
Now, Inge Jones did a fair bit of work towards it by making the Lockable Doors and Security Tokens, so that sims within a building could be partitioned - some having access to some rooms, others to the remainder - but ultimately no one found a way to make the game treat the residents of ONE building as different families.
I put it to Inge and her forum that allocating rooms to Townies(who are treated as "Alien" to the family) would be a way of doing this, but the problem of Visitors leaving was never solved. Even with Monique's "Stay Later" Hack they'd still depart under certain conditions.
But now, it seems, that the problem is almost solved, and only the OfB-related "Visitors can't use it" problem remains.
So...
IF, Squinge, you might consider Visitor Enabling a few more things(at least the essentials for Motive Maintenance, like Beds, Baths and Stoves) and on
RESIDENTIAL Lots, then I'm sure I'm not the only user who'd be really REALLY grateful to you for cracking this long-time problem that's plagued many a would-be Apartment Builder since the game first came out.
