PDA

View Full Version : CLONE Templates - Toilet Stall


Numenor
7th Jul 2006, 1:05 AM
CLONE TEMPLATES - TOILET STALL

Why use a template?
The Maxis toilet stall looks like a normal toilet, but is managed differently by the game. In particular, many of the toilet function need to "recognize" the stall, and rely on its GUID to do that. Therefore, when you clone a stall and register new GUIDs for it, the game won't recognize it any more as a stall, and your new stall will not work.
My ready-to-clone Toilet Stall template already contains all the BHAVs that must be edited in order to force the game to correctly identify the new stall: just follow carefully the instractions below, and your new stall will be operational in a matter of clicks :)

Special features included in this template
The clones based on this template will work in any game configuration, including the base game only.
Unlike the Maxis stall, now the external stall is recolourable, and the porcelain not (it's pointless to have a recolourable porcelain that is barely visible, hidden into the stall).
Your clone will not be clogged with useless textures and files, like it happens when cloning the Maxis stall using SimPE.



HOW TO USE THIS TEMPLATE

Start the Object Workshop, click the "Open..." button and load my template; be sure that all the cloning options are checked, except "Pull animations" and "Reference original mesh". Click the "Start" button.
Change the name, description and price of the object; click "Finish".
The Scenegraph Rename Wizard will pop up, suggesting a custom name for the object: you can optionally edit the "ModelName" field, or just accept the suggested name; hit "Update" and then "OK".
Save your package with any filename you like.
When the object is cloned, first off select in turn all the OBJD files and register a new GUID for each of them (4 in total, then).
When done, select again the main OBJD, that is the one without (0,0), (0,1) etc... Click "Update MMAT" and then click Commit.
Write down the GUID that you have registered for the main OBJD: this is the GUID that we'll have to write into the various BHAVs (only the GUID for the main OBJD is relevant)
Select in turn all the BHAVs labelled "[ToiletGlobals] ..." and look for the lines where you read "Test Object Type (Stack Object ID 0x0000, is instance of: GUID 0x12345678)": these is the lines that we have to put our new GUID in. Whenever you find a "Test Object Type" line, select it and edit the first four operands, as shown in this picture:
http://thumbs.modthesims2.com/getimage.php?file=328413

IMPORTANT: your GUID must be written in the four operands in reverse order, i.e. the first two digits of your GUID in operand 4; the next two digits of your GUID in operand 3, and so on.
For instance, if you GUID is 00EC781A, you must write in the four operands: 1A 78 EC 00.

Do this GUID replacement in all the "Test Object Type" lines of all the "[ToiletGlobals] ..." BHAVs. There are 13 occurrencies to edit in total: don't forget any of them!


OK, you are done. Save your package and edit the mesh/texture at will, like a normal cloned object.



TERMS OF USAGE OF THE TEMPLATES
Anyone can freely clone my Enhanced Templates to create his own objects, and can post his objects on any site.
It's only required to state that "the object is based on an Enhanced Template by Numenor", and post a link to this thread.
DO NOT REPOST OR REDISTRIBUITE THE TEMPLATES THEMSELVES!

Birgit43
7th Jul 2006, 3:33 PM
thatīs a really great tutorial. thank you very much for your help with my garden toilet stall.
but i have one problem again with the fixed file you sent back.. it isnīt recolorable. I have update all guids and the first guid Iīve update all MMats again , but it is still uncolorable.
what had i make wrong?

Birgit43
7th Jul 2006, 7:50 PM
itīs me again. now iīve done it for my own, from the beginning of your tut.
I used your template ,registered new guids, found and changed all 13 testobject type files, imported my new mesh (you know it) and everything seems to be ok.
I can recolor it, but now the sim donīt want to go inside. please, what do i made wrong, please help again?

jaxad0127
7th Jul 2006, 8:10 PM
It looks like the game can't figure out how to get inside.

Birgit43
7th Jul 2006, 8:28 PM
yes, I agree, looks like another object would block the way inside , but I had done excactly what the tutorial said ( i think so)

Numenor
7th Jul 2006, 8:49 PM
Birgit, I had to adjust you first package in a special way, because, if you notice, your touilet has a thick wooden floor, that doesn't exist in normal toilets.
The floor is seen as an obstacle by the sims, and prevents the sims to reach the toilet.

The instructions provided in this tutorial, therefore, aren't suitable in your special case.

Rather than fixing again this new package, I prefer double checking your older one, to see why it is not recolourable.

EDIT: see my next post about the floor problem

EDIT 2: I was going to post the fixed version of your old toilet, but then remembered that you already made further changes on it (added a glass and probably something else), so, I'd better explain how to fix yourself the old non-recolourable toilet.

Open the MMAT and look for the parameter "subset": change "toilet_green" to "toilet-main".

pfish
7th Jul 2006, 8:52 PM
I had cloned my toilet stall before. I posted about this problem stall a long time ago but nobody answered. I hope I can do it this time. Thank for clone templates. :)

Numenor
7th Jul 2006, 9:16 PM
Now the template allows the usage of a thick floor: the sims should not have any more problems entering the toilet when there is a floor.

Birgit43
7th Jul 2006, 9:16 PM
oh, i understand Numenor. thanks again. I try it again and remove the woodenfloor only for the stall and let it be at the veranda.

edit: just read your post, thatīs really great. thanks a lot again!!!!

xrax
9th Jul 2006, 9:11 AM
This is great. Thanks so much for your templates; they are greatly appreciated.

pfish
11th Jul 2006, 9:00 AM
My cloned stall worked great. Thanks very much for your cloned template and instructions. :)

Eleanorp6
16th Jul 2006, 1:24 PM
gop to build mode and put a door on it

Matt's Workshop
15th May 2007, 10:58 PM
Thank you Numenor! :gjob:

sierradane
18th Nov 2007, 1:07 PM
I feel stupid, but open the "object workshop" ? Is that in Simpe?

bluetexasbonnie
18th Nov 2007, 11:26 PM
Yes, it is part of Simpe. Mine is set up basically how it un-zips and installs, because I am not very sophisticated at this yet. For me, it is a tab along the bottom of the page.

NoRealLife2
17th Oct 2012, 4:22 PM
Thank you for this template, Numenor! And the instructions are easy to follow, too.

I'm making an outhouse from the stall. So far, so good but I'm trying to change the BHAVs to where it won't need a wall but can sit on the ground. I found your thread on Changing the Object Placement but really, I need a little confidence before changing anything.

These 2 pics are from the Function Init and line 2 says wall required but line 3 says wall not allowed. I'm stuck.
http://i24.photobucket.com/albums/c3/NoRealLife2/bhav1.jpg

http://i24.photobucket.com/albums/c3/NoRealLife2/bhav2.jpg

mustluvcatz
17th Oct 2012, 4:53 PM
The first pic shows the flag for requiring a wall behind it as being cleared- the second shows the flag for not requiring a wall behind it as being set. So your object shouldn't need a wall behind it.

NoRealLife2
17th Oct 2012, 5:07 PM
The first pic shows the flag for requiring a wall behind it as being cleared- the second shows the flag for not requiring a wall behind it as being set. So your object shouldn't need a wall behind it.

Ahh, thank you! But for some reason it does require a wall. I followed the instructions (and double checked) for putting the new GUID numbers described above, so where do you think I should check now?

HugeLunatic
17th Oct 2012, 5:36 PM
That last one is kinda weird. I am not sure why you would want to set a flag to have a wall not allowed behind it.

I'd try changing that second one to [prim 0x0002] Expression (My 0x002A (placement flags) Set Flag flag# Literal 0x0001 (allow on floor))

Note: You need to change in both Init and Init 2.

NoRealLife2
17th Oct 2012, 5:55 PM
Thank you