 |
Simblesse Oblige Forums for serious Simmers to share knowledge about The Sims 1
|
| View previous topic :: View next topic |
| Author |
Message |
purplewowies Member

Joined: 30 Nov 2008 Posts: 327
|
Posted: Thu May 24, 2012 8:05 pm Post subject: Dressing children and adults in different outfits |
|
|
| I'd like to edit some of Inge's event control objects to dress children and adults in different types of outfits. Specifically, what I want is that when adults dress in formal or fashion outfits, I'd like children to dress in costume trunk formalwear or rave or disco costumes. Is this possible? What kind of hacking would this take? I have a feeling it would involve having a line asking if the person is a child (I haven't had a chance to look in the objects to see if they already have this sort of line), but beyond that, I have no idea what to do. I'd be grateful for any help! Thanks! |
|
| Back to top |
|
 |
DamonDamore Member


Joined: 26 Mar 2007 Posts: 2039
|
Posted: Thu May 24, 2012 11:19 pm Post subject: |
|
|
I think you would only need to check for child to make sure it's an outfit type children have. Otherwise the game doesn't care, as far as I remember. Unless you're using costumes from the trunk, I'm not sure how those work (although it could make theme restaurants easier...). _________________ Squirrel midlife crisis: Sometimes you feel like a nut, sometimes you don't. |
|
| Back to top |
|
 |
bruja Site Admin

Joined: 29 Aug 2006 Posts: 5808 Location: Under a tall black hat
|
Posted: Fri May 25, 2012 12:49 am Post subject: |
|
|
Is it Inge who had objects which made all adults on the lot change to formal clothing, etc.? I seem to remember something other than costume change doors - very vaguely.
I remember Raeven working out the rules for the Kiddie Costume Change Door, so that the children, once changed into a costume, stayed in that costume as long as they were on the lot.
Something like that might work. Though if you want the adults all wearing their own formal and high fashion, etc., I understand that there is a problem with coding which doesn't allow children to have those types of outfits.
Your mention of the child rave costumes, etc. is probably a thought worth pursuing. Combining an object that changed all adults into high fashion with one that dressed the kids in rave should work. And the child Rave costume selection could be expanded the same way the child masquerade costume selection was expanded for the Kiddie Costume Change Door. _________________ "Do not anger a bard, for your name is silly and it scans to 'Greensleeves'." (I loved it so much I had to steal it) |
|
| Back to top |
|
 |
purplewowies Member

Joined: 30 Nov 2008 Posts: 327
|
Posted: Fri May 25, 2012 5:52 am Post subject: |
|
|
| She made the changing plants. They're at Simlogical. I basically I wanted to have a formal event where the kids weren't dressed for military school (the "formal" event control objects change children to work). The fashion/rave thing really came as a secondary thing. |
|
| Back to top |
|
 |
bruja Site Admin

Joined: 29 Aug 2006 Posts: 5808 Location: Under a tall black hat
|
Posted: Fri May 25, 2012 1:45 pm Post subject: |
|
|
if the fashion/rave thing works, so would a formal one. Can you give me a link to download the one you mean, so that I can see how it works? If it's pulling child clothing from the child formal from the costume trunk, you could add child outfits to the trunk, make a clone and set that to recognize the new outfits.
Raeven and peter9g worked out the way to do that. _________________ "Do not anger a bard, for your name is silly and it scans to 'Greensleeves'." (I loved it so much I had to steal it) |
|
| Back to top |
|
 |
purplewowies Member

Joined: 30 Nov 2008 Posts: 327
|
|
| Back to top |
|
 |
bruja Site Admin

Joined: 29 Aug 2006 Posts: 5808 Location: Under a tall black hat
|
Posted: Sun May 27, 2012 1:27 pm Post subject: |
|
|
Well. i clearly need these objects, and I can't even remember if I have them. I gave up playing for years, and tried to keep at skinning a little, when I had time.
My only real contribution these days is a store of old memories , like remembering how Raeven and peter9g hacked the costume trunk.
It seems logical that a new object could have some code added to "if adult, then" so that the condition "if child, then" could have the desired consequence.
I have a test game going, so when the rain starts later today, and I can't work outside, I'll have a look.
What a gift to theme games your idea would be! _________________ "Do not anger a bard, for your name is silly and it scans to 'Greensleeves'." (I loved it so much I had to steal it) |
|
| Back to top |
|
 |
bruja Site Admin

Joined: 29 Aug 2006 Posts: 5808 Location: Under a tall black hat
|
Posted: Mon May 28, 2012 1:46 pm Post subject: |
|
|
Didn't rain, so I worked til exhaustion. Then in the middle of the night, I woke up thinking about this.
I'm quite sure that you, purple wowies, know all this, but for those following the thread, here is some background.
There are 2 different ways to change sim clothing. One is the costume trunk way, which assigns random skins, like the Rave or Roman costumes. There are some "costume trunk doors" which work the same way - the Kiddie Costume Party door here at SO as an example.
The other way is an event controller, like the one in the base game which causes a sim to wear the assigned "s" swimwear for swimming or the assigned "n" for showering. Later expansion packs added other types of clothing to the character .iff body string, so that swimsuits and other types of clothing became "buyable". The act of buying (or of using the C&C dressers a bit later) rewrote part of the character .iff body string to assign a different swimsuit or whatever.
Later Maxis event controllers caused everyone on a lot to change to assigned winterwear, swimwear, or, in the case of high fashion, some on the lot.
Inge noticed that there was no Maxis event controller to change sims' clothing to formal, and created the hacks you linked us to. However, the character .iff file for a child sim doesn't have an assigned line for formal or high fashion clothing. So it looks to me as if Inge decided to incorporate part of the military school event controller from the base game, to dress the children differently.
I've been thinking about how to go about achieving your/our desired end result. The most desirable way would be figuring out how to add code so that the character .iff for a child could have a formal and a high fashion line. I don't think anyone has ever figured out how to do that. I do remember a dresser which put kids into "dressed up" clothing, but I think it had complications.
The second way would be to change the military school outfit by substituting a replacement mesh and bmps outside the far. That would produce a very limited choice of clothing for kids' formal outfits.
The third way would be to combine the SimLogical event controller with a child only costume trunk change. Using replacement outfits in trunk clone would allow 3 different meshes/9 different bmps, for some variety. Adding additional costumes as Raeven and peter9g did, would provide more variety, and conditions could be added so that the kids didn't keeping traipsing through doors and changing into a different outfit. The downside of this approach is that assignment of a formal costume to a child would always be random. _________________ "Do not anger a bard, for your name is silly and it scans to 'Greensleeves'." (I loved it so much I had to steal it) |
|
| Back to top |
|
 |
Raeven Member

Joined: 24 Aug 2006 Posts: 3751
|
Posted: Mon May 28, 2012 3:43 pm Post subject: |
|
|
| bruja wrote: | | The third way would be to combine the SimLogical event controller with a child only costume trunk change |
I believe this is the approach Purplewowies is interested in, though replacing the military uniform would work quite nicely for anyone who is not willing to do any hacking. It would, of course, also replace the look when a child is actually sent off to military school but since that is a rare event and over so quickly it's a pretty good trade off; It would only be of real concern to someone who was taking a screenshot for story telling purposes.
| bruja wrote: | | The downside of this approach is that assignment of a formal costume to a child would always be random. | Yes and no.
The object could be made to dress children in specific outfits as all of the costume trunk outfits have a suit id#. You'd need a way of identifying the children, however. Generic/Common ways of sorting sims are - age
- gender
- skin tone
- skill, motive, or interest levels
- Person type (resident, npc, visitor, etc. There's a reference list/chart here)
- By state (sleeping, ghost, living ghost (MM), sitting, etc) - usually used to exclude Sims from something
Less commonly mentioned ways of sorting sims are
- Selected Sims
- Selected Sim's Family (since you are not a "resident" on away lots)
- Autofollow (Sim's Date)
- Diseased Sims
A more complex (and still theoretical) route would be to create an inventory token as identification - or in this case to represent which formal outfit the child should wear. (I'd started this project some years ago when you mentioned wishing children could have formalwear but it fell by the wayside - so if there are any pitfalls in the approach I did not stumble into them).
The children's halloween costume door was made to assign random costumes and changed outfits every time the door was used on purpose - as I recall it was deemed the easiest way to effect the most Sims with the least effort on the player's part, including allowing latecomers to the party to don costumes without the player having to watch for each person to arrive. It also shows more costumes off.
It should be pointed out that I simply followed Peter's instructions. After years of our most celebrated hackers declaring NEW costumes an impossible dream, Peter alone popped up with all figured out. He has a knack for that.
In this case you want to use existing costumes from the trunk so you'd need to look in the costume trunk to see what suit id numbers are used for that. I've never looked at the military school wardrobe change but it's entirely possible that all you'd need to do is swap an ID number. If, on the other hand, you want multiple random outfits used you'll also need to copy lines (one for each outfit) and insert some coding to "roll the die" and then apply the change accordingly.
A search for Peter talking about costumes should turn his post up - it was buried in a thread I believe so may take a bit of digging. I may have pushed to have it linked to from the SO Costume Party Door downloads page (or readme) but it's unlikely that panned out. The behind the scenes stuff is not as impressive to others as it is to me. (No one even realized Peter was doing something magical, in fact LOL. Our long since gone, celebrated hackers would ahve fallen at his feet for this. I was already there after the whole SLOT editing thing. That man has one sexy brain, let me tell you!!) _________________ "Laws control the lesser man... Right conduct controls the greater one." -Mark Twain |
|
| Back to top |
|
 |
bruja Site Admin

Joined: 29 Aug 2006 Posts: 5808 Location: Under a tall black hat
|
Posted: Mon May 28, 2012 9:15 pm Post subject: |
|
|
| Raeven wrote: | | A more complex (and still theoretical) route would be to create an inventory token as identification - or in this case to represent which formal outfit the child should wear. (I'd started this project some years ago when you mentioned wishing children could have formalwear but it fell by the wayside - so if there are any pitfalls in the approach I did not stumble into them). |
The token idea never occurred to me, but then, i'm a non-hacker. sounds brilliant
| Raeven wrote: | | The children's halloween costume door was made to assign random costumes and changed outfits every time the door was used on purpose - as I recall it was deemed the easiest way to effect the most Sims with the least effort on the player's part, including allowing latecomers to the party to don costumes without the player having to watch for each person to arrive. It also shows more costumes off. |
And that was exactly what we wanted.
| Raeven wrote: | It should be pointed out that I simply followed Peter's instructions. After years of our most celebrated hackers declaring NEW costumes an impossible dream, Peter alone popped up with all figured out. He has a knack for that.
In this case you want to use existing costumes from the trunk so you'd need to look in the costume trunk to see what suit id numbers are used for that. I've never looked at the military school wardrobe change but it's entirely possible that all you'd need to do is swap an ID number. If, on the other hand, you want multiple random outfits used you'll also need to copy lines (one for each outfit) and insert some coding to "roll the die" and then apply the change accordingly. |
| Raeven wrote: | | A search for Peter talking about costumes should turn his post up - it was buried in a thread I believe so may take a bit of digging. I may have pushed to have it linked to from the SO Costume Party Door downloads page (or readme) but it's unlikely that panned out. |
I don't think so, Raeven. I believe that the breakthrough was communicated in a personal email exchange between you and Peter. I certainly have no memory of ever seeing the details of how you managed it, just getting the good news that you had. mtaman, ruthml, and I were the others involved and we're all gung ho for crediting everyone in every way possible.
| Raeven wrote: | | The behind the scenes stuff is not as impressive to others as it is to me. (No one even realized Peter was doing something magical, in fact LOL. Our long since gone, celebrated hackers would ahve fallen at his feet for this. I was already there after the whole SLOT editing thing. That man has one sexy brain, let me tell you!!) |
It's a good thing that lusting after a man's brain is not yet considered sinful, or we'd be dammed(sic).......  _________________ "Do not anger a bard, for your name is silly and it scans to 'Greensleeves'." (I loved it so much I had to steal it) |
|
| Back to top |
|
 |
Raeven Member

Joined: 24 Aug 2006 Posts: 3751
|
Posted: Tue May 29, 2012 11:24 pm Post subject: |
|
|
Peter figured it out all on his own though we did indeed have some back and forth while he explained it to us.
It started in this thread
http://simblesseoblige.com/viewtopic.php?t=2932
and Peter jumped in letting us know he could add costumes in at this point
http://simblesseoblige.com/viewtopic.php?p=25002#25002
and answered a few question there.
Later I created a spin off thread about the hackery bits (presumably so it could ahve a more accurate subject line and be in the correct section. The original thread was a suggestion for an object)
http://simblesseoblige.com/viewtopic.php?t=3012 _________________ "Laws control the lesser man... Right conduct controls the greater one." -Mark Twain |
|
| Back to top |
|
 |
bruja Site Admin

Joined: 29 Aug 2006 Posts: 5808 Location: Under a tall black hat
|
Posted: Wed May 30, 2012 2:16 pm Post subject: |
|
|
Thank you, Raeven. That's a wonderful review of the topic, and gives lots of clues for possible future action. I'm reading all the threads slowly, happy that I now have more experience with .iff files than I did at the time the threads were written. _________________ "Do not anger a bard, for your name is silly and it scans to 'Greensleeves'." (I loved it so much I had to steal it) |
|
| Back to top |
|
 |
DamonDamore Member


Joined: 26 Mar 2007 Posts: 2039
|
Posted: Sat Jun 02, 2012 4:17 pm Post subject: |
|
|
I seem to recall there being an idea to re-purpose the string for that to some kind of child formal, as it's rarely if ever seen and surely you could send a child off to military school in a smart suit anyway. I'm thinking this was pre-vacation when children got swim and winter outfits. _________________ Squirrel midlife crisis: Sometimes you feel like a nut, sometimes you don't. |
|
| Back to top |
|
 |
|
|
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
|