Mod The Sims

Mod The Sims (http://www.modthesims.info/index.php)
-   Script & Core Mods (http://www.modthesims.info/forumdisplay.php?f=637)
-   -   The Transmogrifier (aka Object Script Changer) (http://www.modthesims.info/showthread.php?t=592332)

icarus_allsorts 26th Mar 2017 11:38 PM

The Transmogrifier (aka Object Script Changer)
 
5 Attachment(s)


Description

This mod lets you "change*" the script class of an object in game. Basically the script class describes how the object functions as opposed to how it physically looks - the "spirit" inside the "body" of the object if you will. So like in the whimsical example pictured above, you could for example use this mod to switch out the script class of an ordinary rug object with the script class of a hoverboard to get a new object that looks like a rug but functions as a hoverboard.

* IMPORTANT What actually happens is that the original object is cloned and the cloned object is given the new script class. If successful, the original object is DELETED (not undo-able) and replaced with the clone. If that worries you, save before using to avoid potential regrets.


How To Use (i.e. How to make a flying carpet)

1. Enter Buy/Build mode.



2. (Skip if you already know the script class name that you want to give your object) Ctrl+Shift and click on an object that uses the desired script class - in this case, a hoverboard. Choose Copy Script. You should get a notification telling you the exact script class name you just copied (Sims3.Gameplay.Objects.Hoverboard).



3. Ctrl+Shit click on the object you want to "change" the script class of - in this case the rug. Choose Change Script.



4. In the window that appears, (the current script class of the object is displayed on the top for reference) type in the new script class you want to give the object OR if you copied the script class of another object in step 2, the copied script class name should automatically be typed in for you. Confirm, and if all goes well (i.e. no typos) the object will be replaced with an exact clone that uses the new script. Here, you would get a (very stiff) flying carpet

Warning about this particular example: rugs can't be hand dragged, so any "flying carpet" will be stuck in the inventory of any sim that uses it. You'll probably need Master Controller to transfer it to the family inventory to remove it.


More (Practical) Example Uses

1. "Upgrade" beds and vehicles by giving them the script class of a higher quality bed or a faster vehicle (the Into the Future ones especially give interesting results ).

2. Change rabbithole exteriors: you could for example turn a combo city hall/police station/military building into just a city hall by giving the building the regular city hall script class. The Lunar Lakes portal versions for rabbitholes from later expansions can also be created this way. (You may want to avoid the movie studio and the default resort tower script classes, the studio will glitch if the game is unable to place the set prop attached to it, the resort towers script will place the default tower models over your object)

(Note on rabbithole rugs/doors: You can't just take an ordinary rug/door and give it the script of a rabbithole to create a rabbithole rug/door unfortunately, the resulting "rabbithole" is usually unusable since the object does not have the rabbithole entrance slots required for sims to enter. You CAN however use an exisiting rabbithole rug/door and change its script class to that of another rabbithole)

3. A quick way to turn any object into Arsil's Generic Food Maker or give food objects Nona's custom food script (the script names should be on their respective pages)

4. Make Store/CC beds Nraas SleepFreedom compatible: if you have a double bed unaffected by SleepFreedom (i.e. still uses one of the default double bed scripts), just copy and paste its current script name and add NRaas at the end (e.g. Sims3.Gameplay.Objects.Beds.Mimics.BedDoubleColonial -> Sims3.Gameplay.Objects.Beds.Mimics.BedDoubleColonialNRaas)

5. Remove object functionality: if you want to have an object for its aesthetic purposes but don't want sims to interact with it at all (the urinal display in the Bridgeport art museum comes to mind...), consider giving it the script class of any generic sculpture/decoration.

You can give any object any existing script class really, but there is NO GUARANTEE that the newly created object will actually work as intended if at all. The most common failure is that sims can't use the new object because the interactions attached to the script require slots that the object does not have. Another being certain script classes require additional data that the mod is unable to provide. I leave it to your imaginations to see what combinations of object and script work or fail.


Note on Lot Sharing

What happens if you want to share a lot that has objects with script classes changed by this mod?

I've only tested with saving lots to the library and placing copies of the lot. The results always went along the lines of:

1. Used mod to give object A the script class B.

2. Save lot to library. Place a copy of the lot from library (even in a new world/save file)

3. Check the new copy of the lot. Object A on this lot still has script class B (Yay!)

4. Save, quit, reload, check lot again. Object A on this lot has reverted back to script class A (Boo...) (Object A on the original lot still has script class B at least)

Why this happens, I have no clue. The only workaround I can think of is after placing the lot from the library, use the mod to manually reapply the script class on the object(s) before saving/quitting. Since the affected object still has the new script before quitting, just using Copy Script and Change Script once on the object itself should be enough (no need to go searching the catalog for object B again)


End Notes

Built on patch 1.67 but should be usable on all patch levels. No expansions required.

You can remove the mod at any time, changes made to objects are permanent and do not require the mod to still be installed.

Oh, if you're wondering about the name, I was just feeling nostalgic and decided to nickname the mod after a modding tool for The Sims 1 back in the day (has absolutely nothing to do with its functionality though)

GrijzePilion 27th Mar 2017 12:31 AM

This is really really cool. So much potential. Thanks!

LeeAlee 27th Mar 2017 1:11 AM

This looks amazing, thank you for creating and sharing!

barbarat 27th Mar 2017 2:54 AM

WOW - What a great idea icarus. This is awesome. Had a feeling you were up to something new when you reappeared the other day. Thank you for this. Can't wait to give it a go.

desiree101 27th Mar 2017 3:06 AM

This is amazing! I can't believe the notes I just read, I can't wait to try this mod out Thank you Icarus, for making such a creative mod and sharing it with us

trreese 27th Mar 2017 4:07 AM

I love the flying rug to bad it's not in simpack form .thanks

karjohbla 27th Mar 2017 4:36 AM

Does this enable adding multiple scripts to a single object?

I'm desperate for a stove that's also a baker station AND a canning station.

witchzenka 27th Mar 2017 5:36 AM

If I build a house and share it with objects I've monkeyed with using this, will those objects retain their functionality in the house in someone else's game?

jje1000 27th Mar 2017 5:36 AM

Nice!

Thinking of all the opportunities out there now.

Deets Duckie 27th Mar 2017 7:53 AM

This is bloody amazing! How freaking clever.

mars97m 27th Mar 2017 10:03 AM

This is game-changing! Imagine the possibilities!

LilacW 27th Mar 2017 12:30 PM

Thank you! it's amazing!

jellycandy 27th Mar 2017 1:22 PM

Thank you so much !!!

Elynda 27th Mar 2017 2:05 PM

Very useful. Solves a problem I have with an old fashioned cooker, which looks great in my 'olde worlde' kitchen, but always gives sims the 'uneven cooking' moodlet. Thanks.

HallyM 27th Mar 2017 3:42 PM

This is insanely cool.

mixa97sr 27th Mar 2017 4:51 PM

So much storytelling/setting potential with this mod

veiledstar 27th Mar 2017 5:42 PM

This is really awesome! Thank you for another great mod!

BlueberryBlunt 27th Mar 2017 5:48 PM

I'm so delighted by this I'm snorting laughter. Awesome, awesome, awesome, thank you.

icemunmun 27th Mar 2017 5:55 PM

I never realized how much I needed this in my life before! You are a rockstar

Epica0 27th Mar 2017 6:56 PM

Wow, thanks so much!

Epica0 27th Mar 2017 7:00 PM

Wouldn't it be cool if we all shared our ideas what else to do with this mod?

mistermooman 27th Mar 2017 8:13 PM

This literally just gave every single deco CC some kind of gameplay now! You are so clever!

sweetdevil 27th Mar 2017 9:53 PM

Wow, this is one of those things that you don't even realize how useful or necessary they are until you have them.
You're amazing for making it, thank you!!

HallyM 27th Mar 2017 11:10 PM

So, three things I'm going to try. First, I was always irritated that the cute cookie jar that came with the Sims 3 Bakery set doesn't actually dispense cookies. I just want to set the thing on my sim's kitchen counter and have them be able to pull out a chocolate chip cookie, is that so much to ask? Not anymore!

Also, it always irritated me that some of the cutest sims kids' toys were just decor, like the fire truck and the alien stuffed toy. I'm going to see if they can be changed to be made playable.

Oh, another thing I'm going to try -- the pretty candy jars from Sweet Treats can be made to dispense the wrapped candy that Sandy from Around The Sims made.

Anyway, thanks again, this is exciting!

Bily jednorozec 27th Mar 2017 11:14 PM

Wow, great mod!
Sorry for a unintelligent question: it changes functionality of object
1) only in current save
2) or on active lot only
3) or it refers only to selected object (i.e. can I have on unique lot 3x the same decor box, from whose one works as Treeaq Misc Storage, another as his Treasure Box and last one as Buzzler Box of seeds)?
:confused:
Thank You so much for that mod


All times are GMT +1. The time now is 12:18 AM.

Powered by: vBulletin Version 3.0.14
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.