Page 1 of 1

How to reset profile in Launcher?

Posted: 2016-08-14 03:41
by Emmiren
Hi, for some reason, my options will not save and whenever I click "Reset Profiles" I get an error:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2016-08-13T22:40:06

Critical Error: An unhandled exception has occured. Details are as follows:

Object reference not set to an instance of an object.

Further details can be found in the following file:

[url]C:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

[url=https://www.realitymod.com/forum/f27-pr-bf2-support]Visit Support Forum[/url]

 > System.NullReferenceException: Object reference not set to an instance of an object.
   at Ya.h.a()
   at Reality.BF2.Settings.Video.a.a(String a)
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Reality.BF2.Settings.Video.GetDefaultResolution()
   at Reality.BF2.Settings.Video.CreateDefault(UInt16 a)
   at Reality.BF2.Settings.Profile.CreateNewProfile(UInt16 a)
   at PRLauncher.WPF.ViewModel.OptionsWindowViewModel.OnResetProfiles(Object a)
   at Reality.Utils.WPF.RelayCommand.Execute(Object a)
   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.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.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.Input.InputManager.ProcessStagingArea()
   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)


I literally just updated DirectX to the latest version and I still get this problem... Whenever I try to click a feature I haven't used, it immediately gives me this error. How do I fix this?

Re: How to reset profile in Launcher?

Posted: 2016-08-14 12:05
by PLODDITHANLEY
Erase them all

launch PRBF2.exe which wont run without the launcher but it will recreate profiles.

Re: How to reset profile in Launcher?

Posted: 2016-08-14 16:44
by Emmiren
I tried to erase them all but I get the error above and when I click okay on the error page, the whole launcher closes itself.

Re: How to reset profile in Launcher?

Posted: 2016-08-14 23:41
by MaSSive
Afaik its a permission issue. Launcher cant read/write into your profile directory. Try to Run As Administrator.

Dont keep launcher or game opened when you try to manipulate the profile files or folders.

Install or reinstall all dependecies. It might be VC++ that is borked. If you have 64bit system you need to install both versions of VC++ x86 and x64.

https://www.microsoft.com/en-us/downloa ... px?id=8109

https://www.microsoft.com/en-us/downloa ... 0framework

https://support.microsoft.com/en-us/kb/2977003

https://www.realitymod.com/forum/f27-pr ... guide.html

Re: How to reset profile in Launcher?

Posted: 2016-08-16 04:27
by Emmiren
I reinstalled all of the Microsoft files required for the game and manually deleted the profiles from the folder, but everytime I try to reopen the launcher, I get this error:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2016-08-15T23:28:14

Critical Error: An unhandled exception has occured. Details are as follows:

Object reference not set to an instance of an object.

Further details can be found in the following file:

[url]C:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

[url=https://www.realitymod.com/forum/f27-pr-bf2-support]Visit Support Forum[/url]

 > System.NullReferenceException: Object reference not set to an instance of an object.
   at Ya.h.a()
   at Reality.BF2.Settings.Video.a.a(String a)
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Reality.BF2.Settings.Video.GetDefaultResolution()
   at Reality.BF2.Settings.Video.CreateDefault(UInt16 a)
   at -.f.a()
   at -.f.OnStartup(StartupEventArgs a)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   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)

Re: How to reset profile in Launcher?

Posted: 2016-08-16 04:29
by Emmiren
I repeatedly get that error for everything in the past and I'm getting it again for trying to open the launcher...what should I do??

Re: How to reset profile in Launcher?

Posted: 2016-08-16 10:45
by MaSSive
Looks like your profile is either missing or unreadable by the launcher. Check if bf2 profile files are in place and check your user permissions on windows profile.

IWR Computer Consultancy - Technical Support and advice on IT issues for Small Businesses. : Reprofiler

Re: How to reset profile in Launcher?

Posted: 2016-08-19 22:50
by Emmiren
I'm not sure what that site is that you linked.... I still cannot find the answer to the problem with the launcher. It gives me the same error every time I try to open it. Once I run as admin, double click, right click and open, etc. it loads the icon for a second and then gives me the error as provided above, and shuts the launcher down immediately after clicking okay and/or the X at the top of the error screen.

Re: How to reset profile in Launcher?

Posted: 2016-08-20 23:52
by MaSSive
Try to download reprofiler program and check if your windows profiles are owned by you.