Simblesse Oblige Forum Index Simblesse Oblige
Forums for serious Simmers to share knowledge about The Sims 1
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Food question

 
Post new topic   Reply to topic    Simblesse Oblige Forum Index -> Hacker's Hideout
View previous topic :: View next topic  
Author Message
Thalia
Member
Member


Joined: 19 May 2008
Posts: 907
Location: New England

PostPosted: Sat Jan 06, 2018 7:40 pm    Post subject: Food question Reply with quote

Hey everybody, I have a question if there's anyone here now!

I've made a loaf of Roman bread; it's cloned from one of Ines' goodies, which I believe was originally cloned from the fruitcake. I managed to change the reaction from 'yuk' to 'yum' (though it was a while ago and I don't now remember whether I made it actually tastier or just swapped out the sound to make it seem like they actually like it), and was wondering how to go about removing the hand washing routine that always follows it and which is kind of driving me crazy. There are references here in other threads that it's a fairly simple hack, but I don't know where to start. Is it referenced back to a global, and how do I change it?

Thanks for any help.



bittybread.jpg
 Description:
 Filesize:  20.58 KB
 Viewed:  427 Time(s)

bittybread.jpg



RomanBread.zip
 Description:

Download
 Filename:  RomanBread.zip
 Filesize:  42.69 KB
 Downloaded:  25 Time(s)


_________________
Back to top
View user's profile Send private message Visit poster's website
peter9g
Member
Member


Joined: 03 Sep 2006
Posts: 507

PostPosted: Mon Jan 08, 2018 2:24 am    Post subject: Reply with quote

Hi Thalia

Removing the hand washing routine is simple in that you just have to skip over it, however there is a lot of BHAV code to wade through in order to find it.

In BHAV 4124 towards the end we have code lines

Code:

[18] :  0  8: FD 19:  0  1:  0 19:  3 E8:  0  7:   Random number
[..]                                      Local Variable[1] =
[..]                                      random value (0..999)
[19] :  0  2: 1A 1E:  0  1:  0  7:  0  0: 12 19:   Test     >
[..]                                      Local Variable[1]
[..]                                      my person data Neat Personality
[1A] :  0  2: FD 23:  0  2:  0  0:  5 FE:  A 19:   Assign To:
[..]                                      Local Variable[2]
[..]                                      Stack obj ID[0]
[1B] :  0  2: FD 1C:  0  0:  0  0:  5 FE:  7  A:   Assign To:
[..]                                      Stack obj ID[0]
[..]                                      Literal Value[0]
[1C] :  0  E: 1D 1F:  0  D:  0  0:  0  0:  0  0:   Find Best Object For Function
[..]                                      wash hands
[1D] :  0  2: FD 1E:  0  0:  0  2:  5 FE: 19  A:   Assign To:
[..]                                      Stack obj ID[0]
[..]                                      Local Variable[2]
[1E] :  0 12: 17 21:  0  1:  0  0:  0  0:  0  0:   Remove Object Instance
[1F] :  0 14: 1D 1D:  0  D:  0  1:  0  0:  0  0:   Run Functional Tree
[..]                                      wash hands
[20] : 10 3B: FD  B: FF FF: FF FF: FF FF: FF FF:   BHAV [4155] group meal talk
[21] :  0 10: FE FE:  0  1:  0  2:  0  0:  0  0:   Find Location For
[..]                                     local(0), type 1
[22] : 10  D: 28  2: FF FF: FF FF: FF FF: FF FF:   BHAV [4109] pick up from anywhere
[23] :  0 10: 1B 1B:  0  1:  0  0:  0  0:  0  0:   Find Location For
[..]                                     local(0), type 1


in which the random number generated in line 0x18 is compared to the sim's Neat Personality value in order to decide whether to wash hands.
This code has not been resquenced, so it jumps around a bit...

If you don't want the hand washing routine, set the code on line 0x1C "Find Best Object for Function wash hands" to always jump to line 0x1D for both true and false outcomes.

Hope this helps

Peter
Back to top
View user's profile Send private message Visit poster's website
Thalia
Member
Member


Joined: 19 May 2008
Posts: 907
Location: New England

PostPosted: Mon Jan 08, 2018 6:52 am    Post subject: Reply with quote

Thank you! I will give that a try.
_________________
Back to top
View user's profile Send private message Visit poster's website
Thalia
Member
Member


Joined: 19 May 2008
Posts: 907
Location: New England

PostPosted: Mon Jan 08, 2018 7:38 am    Post subject: Reply with quote

Okay I did it! I had to use a hexadecimal-->decimal converter (ha), but I got it. Thank you.
_________________
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Simblesse Oblige Forum Index -> Hacker's Hideout All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group