How to reset profile in Launcher?

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
Emmiren
Posts: 7
Joined: 2016-08-14 02:22

How to reset profile in Launcher?

Post 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?
PLODDITHANLEY
Posts: 3608
Joined: 2009-05-02 19:44

Re: How to reset profile in Launcher?

Post by PLODDITHANLEY »

Erase them all

launch PRBF2.exe which wont run without the launcher but it will recreate profiles.
Image
Emmiren
Posts: 7
Joined: 2016-08-14 02:22

Re: How to reset profile in Launcher?

Post 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.
Karate tournament wins: 286 Karate tournament loses: 17
:-D
Image
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: How to reset profile in Launcher?

Post 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
Last edited by MaSSive on 2016-08-14 23:46, edited 1 time in total.
Image
CATA4TW!

"People never lie so much as before an election, during a war, or after a hunt."
"God has a special providence for fools, drunks, and the United States of America."
― Otto von Bismarck
Emmiren
Posts: 7
Joined: 2016-08-14 02:22

Re: How to reset profile in Launcher?

Post 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)
Karate tournament wins: 286 Karate tournament loses: 17
:-D
Image
Emmiren
Posts: 7
Joined: 2016-08-14 02:22

Re: How to reset profile in Launcher?

Post 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??
Karate tournament wins: 286 Karate tournament loses: 17
:-D
Image
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: How to reset profile in Launcher?

Post 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
Image
CATA4TW!

"People never lie so much as before an election, during a war, or after a hunt."
"God has a special providence for fools, drunks, and the United States of America."
― Otto von Bismarck
Emmiren
Posts: 7
Joined: 2016-08-14 02:22

Re: How to reset profile in Launcher?

Post 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.
Karate tournament wins: 286 Karate tournament loses: 17
:-D
Image
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: How to reset profile in Launcher?

Post by MaSSive »

Try to download reprofiler program and check if your windows profiles are owned by you.
Image
CATA4TW!

"People never lie so much as before an election, during a war, or after a hunt."
"God has a special providence for fools, drunks, and the United States of America."
― Otto von Bismarck
Post Reply

Return to “PR:BF2 Support”