S4S Can't Recolor/Export or Import Texture

by Lokiboy5
Reply

Original Post

S4S Can't Recolor/Export or Import Texture

★ Novice

I'm recoloring objects for personal use, and I've ran into an issue with one item. What's interesting is the custom object (Chandelier) comes in three different sizes, and I successfully recolored two of the sizes, but now the third one loads into S4S completely clear yet solid at the same time...? And there isn't a display of the texture image like normal on the right. When I try to select the export button on the texture - I get the following error message...

The Sims 4 Studio - Version 3.1.6.3

System.NullReferenceException: Object reference not set to an instance of an object.

at S4Studio.ViewModels.Generic.Sims4SwatchContent.ExecuteExportTexture()

at S4Studio.ViewModels.GenericUserCommand.<>c__DisplayClass8_0.<.ctor>b__1(Object y)

at S4Studio.ViewModels.GenericUserCommand.Execute(Object parameter)

at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

at System.Windows.Controls.Primitives.ButtonBase.OnClick()

at System.Windows.Controls.Button.OnClick()

at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)

at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)

at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)

at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

at System.Windows.Input.InputManager.ProcessStagingArea()

at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Please help! 

Message 1 of 4 (790 Views)

Re: S4S Can't Recolor/Export or Import Texture

Hero

@Lokiboy5 

 

I'm not sure at all what you have happening but you would probably be better served by asking at the S4S site.  That said, here's a guess.

 

My guess is that the 3rd chandelier may be getting its colors from one of the other two.  So, after you finish adding the recolors to all of them, take a look at them in game to see what they look like.  Since the only thing really different about them is the size, they probably have the same mapping which makes it easy for the textures to be on one object but used by another similar item.

Depending on if you made your recolors as standalone objects or meant to add swatches to the base game objects or an override, the 3rd chandelier might not show up at all or with the red or black checkerboard pattern.  

 

Having an object get it's recolors from another similar item is an old trick that CC makers used to use back in the TS2 days since it could reduce file sizes.  It's not much used with TS4 CC very much that I have found.  I have only seen it done with a few CAS items. 

 

Hope this helps.

Message 2 of 4 (761 Views)

Re: S4S Can't Recolor/Export or Import Texture

★ Novice

I appreciate your response, @CGrant56. Yes, I have posted on the S4S site and with over 200 views, not a single suggestion or any help. Did you see the image I attached? I have no doubt I could use the same texture from the other two. The problem is I can't export or even import textures on the third chandelier. I'm not entrely well versed on S4S so I created them as standalone recolors for fear of messing something up with the originals. I just don't understand how two could work and the third one doesn't when they all came from the same creator in the same download. Are you suggesting if I somehow add my recolor to the other two existing chandeliers, it would effectivley be added to the third? 

Message 3 of 4 (740 Views)

Re: S4S Can't Recolor/Export or Import Texture

[ Edited ]
Hero

@Lokiboy5 

 

Yes, that's what I am suggesting.  If the 3rd chandelier object does use the colors from one of the others, then it might show up in the game with your recolors on it if you put your files in for all 3 chandeliers in the mods folder.  It might not too.  There could be something else going on.  So, only one way to find out is to do it.  Worse case is if it doesn't show. If that doesn't work, then you might want to remake your recolors as add on swatches and see if that works.

 

On the stand alone vs swatch CC.  When you add a swatch to an existing game object, the original game object is not affected at all.  What you get is a separate file with your CC recolors with no mesh in it.  The difference between the two ways to do it is that a stand-alone occupies a new spot in the catalog making the catalog one object bigger.  Creating a swatch just displays your recolor along with the already present game recolors when you click on the object in the catalog.  Bottom line is that you can't harm the original object by creating a swatch.  The file itself is safe from you changing it.  But that doesn't mean that the object will display your recolors, or even the out of the box colors properly if you mess up your added swatches somehow.  You might get the red or black checkerboard pattern or something similar. But if it does, just removing your CC file will let the object show correctly again.  Might have to delete the localthumbcache file though. 

 

If I can remember in the morning, I'll take a look at those chandeliers in S4S and see if any of mine look like your picture.

 

Lol!  I guess I ought to ask which chandeliers you are dealing with.  I was thinking it was the Horse Ranch candlelit chandeliers but I see in you pic, it's a crystal chandelier.  So, if you don't mind, what is the catalog name of the 3 objects?

 

Hope this helps.

Message 4 of 4 (726 Views)
sims-all-characters

Want more Sims?

Check out our Sims forums for tutorials and all things Sims.

View more

ts4-promo

Having trouble connecting to your game?

Try these steps first to clear up any problems you may have when connecting to an EA game.

Troubleshoot and test your connection

ts4-promo

Forget your EA Account ID or password?

Reset, update, or link your account information.

View More on EA Help