#1
17th Mar 2023 at 12:05 PM
Last edited by MartelRaykin : 17th Mar 2023 at
1:24 PM.
[Mod Constructor V5] Can't export sim 4 trait package
Hello !
This is my first time posting on MTS forums so I'm hope I'm not posting in the wrong place.
I've used the science baby feature to have a kid with the reaper and since it doesn't do anything for the child (and the game's Grim Reaper trait blocks needs, I don't really want that for my sim), I decided to take matters into my own hands and create a custom "Child of the Reaper" trait with special interactions, buffs and features. I had used Zerbu's mod creator before but it was year ago and I'm a little confused with the new version. Still, I manage to put in mostly everything I wanted in the trait, but I can't seem to be able to export it, so I must have made a mistake somewhere and I don't know how to fix it.
Everytime I try I have this error message :
Quote:
Object reference not set to an instance of an object
à Constructor5.Elements.Interactions.Shared.InteractionTemplateComponentBase.OnExport(InteractionExportContext context)
à Constructor5.Elements.Interactions.Mixer.MixerInteraction.Constructor5.Base.Export.IExportableElement.OnExport()
à Constructor5.Base.ExportSystem.Exporter.ExportElements()
à Constructor5.Base.ExportSystem.Exporter.Export()
à Constructor5.UI.Main.ExportCommand.Execute(Object parameter)
à MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
à System.Windows.Controls.Primitives.ButtonBase.OnClick()
à System.Windows.Controls.Button.OnClick()
à System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
à System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
à System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
à System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
à System.Windows.Input.InputManager.ProcessStagingArea()
à System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
à System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
à System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
à System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
à System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
|
I have no clue what any of this means and I don't know how to fix it, or if it's a mistake I made during the trait creation or while installing the program.
If someone could help me figure it out it would be greatly appreciated, I'm not really good with programming.
PS : also if someone knows how to make it so the trait is automatically given to a baby if its parent has a certain trait (Grim Reaper in this case), I'd love to know ♥
Thank you !