Home | Download | Discussion | Help | Site Map | New Posts | Sign in

Latest Site News

Guidelines/Rubrics Changes - posted on 16th Jun 2017 at 6:09 PM
Replies: 7 (Who?), Viewed: 4214 times.
Test Subject
Original Poster
#1 Old 3rd Apr 2017 at 12:13 AM
Default Routing Slots & Bookcase.
Attempting to allow Sims to retrieve books from either side of a new bookcase. I cloned it, I believe, from the Bibliophile, which had only one routing slot and no container slots. Added another routing slot with inverted y-value and 180 rotation. Added into existing SLOT file, added reference in text file, and added it in CRES under same parent joint with previously mentioned transformations.

What happens is: the new slot works as intended if I delete or disable the original. Added line in text file that included both routing file names (I read to do that somewhere-can't recall where). This gets the same result. The light comes on in my head: "This must involve functions/BHAVs" [which basically is admitting I'm LOST. ]

So my questions are:
Do I need to make or add a new function to allow both routing options to work? Have I skipped a crucial linking step somewhere? Both?!
Advertisement
just a girl
#2 Old 3rd Apr 2017 at 11:53 AM
What happens if you put an obstacle in the original slot - would sims try to use the new one?

Feedback wellcome on the Sims 2 Cheapy Living
Test Subject
Original Poster
#3 Old 4th Apr 2017 at 10:24 PM
They just stomp and whine. There's no container slot at all, just the routing slot. To test this I had to make a big square of bookshelves with only the backsides showing (the side I'm trying to get them to access). I'm guessing I need something like a Set to next command in the BHAV that is linked?
just a girl
#4 Old 5th Apr 2017 at 6:52 PM
If slots have numbers, you could write, say, "go to first slot, if fail then go to second". But I have a better idea. Think of another object that has two or more routing slots and look how it's done there. It'll save you some trial and error. Some kind of table maybe?

Feedback wellcome on the Sims 2 Cheapy Living
Test Subject
Original Poster
#5 Old 9th Jun 2017 at 7:32 PM
Default research still ongoing
I've been looking at how other things are made , chiefly beds and tables. Beds are kinda over my head and the routing for table slots are not giving me the results I hope for. I think I may have had a breakthrough yesterday: In the functions for the Better Barre, I found an instruction called "Sub - route to open slot". Clicked on action BHAV button in SimPE, and found TWO "go to routing slot"'s inside. Now if I can only figure out how to put it into my bookcase....

Reading theguide by AdidasSG2 currently to learn about BHAVS. If there are any other sources for learning this material, I would really appreciate a nudge in the right direction.
just a girl
#6 Old 11th Jun 2017 at 6:29 PM
I'd recommend tutorials by Echo. Google for sims 2 bhav echo.

You'll probably need to change all relevant bhavs that deal with slots. Look through all action bhavs of interactions and take note of those that mention using slots. Because they're semi-global (used by all bookcases in game), you'll need to import them and make them private, so they do not override original bhavs. There's a handy button "Import as Private" for this.
I took a look at one of the bhavs - "Interaction - Read Book". And here's what logic I'd suggest.


At the point where sims fail to go to slot #0, make them go to slot #1 (assuming slot #1 is your new routing slot). Down the line, local variable 1 is assigned to slot #, so it has to be the right number, thus - branching. Both branches converge again after differences are over.

---
As for Better Barre, it uses attributes to let sims know that a slot is in use, but in case of bookcases they might be excessive and not very helpful. Sims occupy bookcase's slot for a very short time to get or put a book, so by the time they walk to bookcase the slot's occupancy may change a dozen times. No need to know if the slot is empty before they start walking. At least that's what I presume, but that's for you to test.

Feedback wellcome on the Sims 2 Cheapy Living
Turquoise Dragon
staff: moderator
#7 Old 12th Jun 2017 at 8:12 PM
You can route to slot by number

It is a primitive bhav 0x002D

Go to Routing Slot

You can select which slot there you want them to go to.

Some good tutorials to use are: http://modthesims.info/t/146440
http://modthesims.info/t/387275
Test Subject
Original Poster
#8 Old 19th Jun 2017 at 11:00 PM Last edited by d4RE : 19th Jun 2017 at 11:00 PM. Reason: punctuation
Thanks guys. That's plenty to chew on. I'll keep plugging away at it - trial and error if I must. This BHAV stuff makes perfect sense when I'm reading it, but then I open my object, and *poof!* - lost again.
Back to top