PDA

View Full Version : Lamp Subset added -- TXMT for different states not tied together


bluetexasbonnie
8th Nov 2009, 02:12 AM
I added a subset (wreath) to a lamp that I hope to have two separate states for. I got the subset in okay, I can recolor it after a fashion. The two states lit & unlit appear as totally separate entries in the recolor subset selection screen. How do I tie them together??

http://thumbs2.modthesims2.com/img/3/4/6/0/6/MTS2_bluetexasbonnie_1024293_SubsetSelectionPicture.png

If it matters ... I cloned the misc. light -- garden bollard. I added the subset to the textlist 88 and changed the MMAT object state index to reflect the entries. The light is basegame.

I'll appreciate any help.

HugeLunatic
10th Nov 2009, 11:45 PM
I think this is normal for lit/unlit states to appear separately. When I've recolored normal lamps I get two textures to recolor. Here you have added a third so it brings that in.

Although when I did a test recolor on yours it gave me just one texture to share the lit/unlit state since they both point to the same texture file.

Now maybe I misinterpreted something here, but do you want it to pull two textures for lit/unlit? If so you might want to look at using slavesubsets. A couple examples are the Expedit tv center and the AL bohemian bed. If you don't have those EPs you can look at my bohemian single beds and my expedit bookcase. At least I think I updated the bookcase here, otherwise you can find it at my site - link in siggy.

bluetexasbonnie
11th Nov 2009, 01:37 AM
I do want them pointing to the same mesh, so that part is right.

When I do a Maxis recolor with multiple states, I only have one 'option' on the recolor screen. Selecting that option pulls in all the states and I can recolor them as a set.

When I try to recolor my object, each state is a separate 'option'. I HAVE to choose one state or the other. I've assumed that when the object changes states, it will revert to the default color for the state that wasn't colored.

HugeLunatic
11th Nov 2009, 03:51 AM
So I did misunderstand slightly. But I think I understand why it is doing this.

The MMAT has the family (dstring) with a hash, which when you add a new MMAT you normally want these each unique. Well with the two states they need to be the same so it knows they are related and to pull just one. So when when recoloring it pulled just the one txtr for me. I turned it a bright lovely shade of teal. LOL

When I first tested in game the wreath part was lit by default and when recolored it went unlit and wouldn't change. So it made sense of where the issue was.

Another thing is that I'm pretty sure you need to add the BHAV for the wreath part for it to have lit/unlit states, I'm guessing you were wanting the wreath also lit. I added this already and this is how I tested it and it appears to give the proper lit/unlit states. Package is attached with the changes to the MMAT and BHAVs.

The mesh is adorable, btw. :)

bluetexasbonnie
11th Nov 2009, 03:56 AM
Thank you! When you mentioned it needed BHAV changes you struck fear in my heart. (I hope to at least learn the basics of them sometime -- but my life needs less distractions to have a chance of sucess.) I was so relieved when I read a little further and saw that you had already fixed up.

Thank you, thank you, thank you!

HugeLunatic
11th Nov 2009, 04:41 AM
LOL Your welcome. I really only know simple BHAVs. Let me know if you want to know what I did with this one, I'm happy to share.

bluetexasbonnie
12th Nov 2009, 10:54 AM
Again, Thank you!

I would appreciate knowing what changes were necessary to tie everything together.

HugeLunatic
12th Nov 2009, 07:38 PM
Ok so I wrote up what I did for the BHAV's and included pics. I used your object since 1. it was handy and 2. it will make more sense to you since it's your object. :)

Link (http://docs.google.com/Doc?docid=0ASpOiGZcCSZ5ZGhudmQ2cTJfNTdmcTRtcHdoaA&hl=en) -- Its a google doc, you should be able to download it in 4 or 5 different file types or just bookmark it. It's my account and not going anywhere anytime soon. LOL Let me know if something is unclear or if you have any questions.

You already know about the other stuff to fix as you did those, but for anyone else reading Here is Checklist for Multi-State Objects (http://www.hugelunatic.com/Home/multi-state-object-checklist) to troubleshoot issues. I will poke around the wiki/tutorials here to see if I can find an appropriate place for it here.

bluetexasbonnie
12th Nov 2009, 09:44 PM
Fantastic! Thank you. I see you have some other help tips there too.