View Full Version : Hot tub Effects
omegastarr82
5th Feb 2012, 3:40 PM
I've noticed some of the hot tubs have misplaced waterfall effects and I would like to at least attempt to fix them. The problem is I have no idea how. At first I was thinking it would be a RIG thing but there aren't ay RIGs in the packages. Then maybe I thought it was a slot thing, no slots. There aren't also any effect files in there either. So I'm guessing they reference a file from the game files.
Any one have any idea what file in the object package would point to the waterfall resources?
douglasveiga
5th Feb 2012, 9:54 PM
I've noticed some of the hot tubs have misplaced waterfall
effects and I would like to at least attempt to fix them. The problem is I have no idea
how. At first I was thinking it would be a RIG thing but there aren't ay RIGs in the
packages. Then maybe I thought it was a slot thing, no slots. There aren't also any
effect files in there either. So I'm guessing they reference a file from the game files.
Any one have any idea what file in the object package would point to the
waterfall resources?
i think it's Slotting:
// Sims3.Gameplay.Objects.Plumbing.HotTubBase
public void StartJetFX()
{
bool hasImprovedJets = this.HasImprovedJets;
if (this.mJetFX == null)
{
this.mJetFX = (hasImprovedJets ? VisualEffect.Create(this.JetFXUpgradedName) : VisualEffect.Create(this.JetFXName));
this.mJetFX.ParentTo(this, Slot.FXJoint_0);
this.mJetFX.Start();
}
if (this.mJetsSound == null)
{
this.mJetsSound = (hasImprovedJets ? new ObjectSound(base.ObjectId,
"hottub_upgrade_lp") : new ObjectSound(base.ObjectId, "hottub_normal_lp"));
this.mJetsSound.StartLoop();
}
PetStartleBehavior.CheckForStartle(this, StartleType.TubOn);
}
omegastarr82
6th Feb 2012, 4:06 AM
Is this in a .ddl? I know the two hot tubs in question are called grotto hot tubs for the script class, rather than base.
cmomoney
6th Feb 2012, 5:25 AM
There should be and effect slot in the RSLT of the hot tub.
Odistant
6th Feb 2012, 12:49 PM
If you only want to change the position of the effect slot then you don't need to do a scripting mod I would guess.
cmomoney
6th Feb 2012, 12:59 PM
If you only want to change the position of the effect slot then you don't need to do a scripting mod I would guess.
Right. I was under the assumption that he just wanted to move them. Scripting would be unnecessary.
omegastarr82
6th Feb 2012, 10:15 PM
Yes, that's all I want to do, move the effect over. I am guessing the hot tubs reference an already in game effect or RSLT because there isn't one in the package. Any idea where it would be referenced? This might not be as easy as I thought it would.
I removed the back pieces of the meshes to see exactly what effects are used. Both hut tubs use the same(wrong) effect.
http://thumbs2.modthesims2.com/img/1/0/6/6/2/3/5/MTS_omegastarr82-1271137-Screenshot-31.jpg
I'm assuming the asian tub is supposed to use this effect.
http://thumbs2.modthesims2.com/img/1/0/6/6/2/3/5/MTS_omegastarr82-1271138-Screenshot-28.jpg
And I couldn't find a tub that uses the effect that should be used here, but it seems that a waterfall should be flowing from here.
http://thumbs2.modthesims2.com/img/1/0/6/6/2/3/5/MTS_omegastarr82-1271139-Screenshot-30.jpg
Now both tubs in question do not have RSLT in them, so where are they referenced so that I can at least point the one to the correct one.
cmomoney
6th Feb 2012, 10:35 PM
You can look in the VPXY to see what RSLT is being used. Keep in mind that if another tub uses the same RSLT, changes made to it will effect the other tub as well, so you would need your own instance. Changing the effect will involve scripting, but not very complicated.
omegastarr82
6th Feb 2012, 11:03 PM
Checked out the VPXY of the vegas, asian and tiki tubs, they all use the same RSLT but obviously use different effects, so does that mean the problem is not in the RSLT? They also use the same RIG, if that means anything.
cmomoney
6th Feb 2012, 11:57 PM
Well, the location problem is in the RSLT, but the effect slot is going to use whatever effect the script assigns to it. So wrong place = RSLT, wrong effect = script.
nonamena
17th Mar 2012, 12:00 AM
I was also looking into this and just came back to it. The script class for the Asian Living hottub is wrong. In the original package, it is using Sims3.Gameplay.Objects.Plumbing.HotTubGrotto, but the Tiki hottub uses Sims3.Gameplay.Objects.Plumbing.HotTubGrottoCeleb. Changing the script class for the Asian living hottub to Sims3.Gameplay.Objects.Plumbing.HotTubGrottoCeleb as well provides the correct animation (this makes sense if you've seen the LN celeb hottub), but it is placed a little too high due to the RSLT (which I have not been able to figure out because this slot stuff confuses me).
http://thumbs.modthesims.info/getimage.php?file=1280751
I haven't been able to find anything useful for the vegas hottub though.
omegastarr82
17th Mar 2012, 1:33 AM
Very cool! So in theory, if we then find the RSLT it uses, clone it, give it a unique Instance, add that instance to the VPXY, then find the effect slot and change that we could fix the asian tuba at least?
Edit: iwas able to move the stream but the bubble effect disappeared and dripping appeared near the stream. I had to alter the RSLT and the RIG.
http://thumbs2.modthesims2.com/img/1/0/6/6/2/3/5/MTS_omegastarr82-1280781-Screenshot-49.jpg
I've included the files I'm working with, the RSLT and RIG have already been linked and given new instances. It's also been decrapped already. Left the effect slot 0 in the default places. Maybe it's a scaling issue and not a placement issue?
omegastarr82
17th Mar 2012, 5:56 AM
GOT IT!!!! Ok so playing around with the scale settings in the RIG fixed it. Thanks nonamena for finding that out about the script.
http://thumbs2.modthesims2.com/img/1/0/6/6/2/3/5/MTS_omegastarr82-1280812-Screenshot-50.jpg
There are still some dripping animations coming from where the waterfall originated from though, as you can see in the pic. I can live with that until someone figures out how to fix that as well, it's not even that noticeable.
As for the other hot tub, is there a way to figure out in game if an effect for that is even in game? Maybe with the fog emitter somehow?
nonamena
17th Mar 2012, 7:51 AM
Yay, so glad you could figure that out, awesome!
To remove those dripping effects I think you'd have to change the actual animation because they are present in the other hot tubs that use them (thermal sanitarium, celebrity hot tub and the tiki one too). Not sure about the effect for the vegas hot tub but I'll poke around some more.
nonamena
17th Mar 2012, 10:50 AM
Try Sims3.Gameplay.Objects.Plumbing.Mimics.HotTubGrottoPatioRockGarden for the script class for the vegas hot tub. (no idea if this will work)
omegastarr82
19th Mar 2012, 12:33 AM
Try Sims3.Gameplay.Objects.Plumbing.Mimics.HotTubGrottoPatioRockGarden for the script class for the vegas hot tub. (no idea if this will work)
This one works, kinda, when it's scaled up to meet the slit on the hot tub the effect gets all wonky. Ea either didn't finish these hot tubs or forgot to include the SWB resources, or both.
nonamena
19th Mar 2012, 8:17 AM
This one works, kinda, when it's scaled up to meet the slit on the hot tub the effect gets all wonky. Ea either didn't finish these hot tubs or forgot to include the SWB resources, or both.
I had a feeling that would be the case.
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.