Page 1 of 1

Launcher Issue

Posted: 2016-11-28 16:32
by DoctorKamikaze

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2016-11-28T10:30:24

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 Ta.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)
Version 1.4, I play on a 4K screen, appears to have some issues getting a default resolution for it. Changing resolutions did not fix the issue.

Re: Launcher Issue

Posted: 2016-11-28 20:39
by Arab
A temp solution until the hotfix is released would be to set the video.con as 'read-only' which will prevent modification

Re: Launcher Issue

Posted: 2016-11-28 20:42
by Gentlefood

Re: Launcher Issue

Posted: 2016-11-29 23:35
by DoctorKamikaze
[quote=""'[R-DEV"]Arab;2150651']A temp solution until the hotfix is released would be to set the video.con as 'read-only' which will prevent modification[/quote]

Probably silly of me, but where is video.con? I'm coming from Steam/Squad, and am used to looking for apps in the steam install directory. Would it be under Documents, or alongside the install?

Anyway, I'll dig and take a look for it in the meantime.

[quote="Gentlefood""]Try the solution I found here: https://www.realitymod.com/forum/f27-pr ... ncher.html[/quote]

This does indeed work, after deleting any extra profiles and adding the missing files to Default and 0001 profiles, I was able to get the launcher running.

Edit:

New error; now the launcher says I need to choose a valid display mode under options. After setting all of my options, it appears the modal does not save these values to the profile. Clicking play afterward, or going into the options menu, causes me to have to reset all options and "save" again.

And apparently loading my profile lost all of the .con files. I just re-added them and I should be good to go.

Re: Launcher Issue

Posted: 2016-11-30 07:59
by Gentlefood
DoctorKamikaze wrote:
Edit:

New error; now the launcher says I need to choose a valid display mode under options. After setting all of my options, it appears the modal does not save these values to the profile. Clicking play afterward, or going into the options menu, causes me to have to reset all options and "save" again.

And apparently loading my profile lost all of the .con files. I just re-added them and I should be good to go.
Double check that your profile has the missing .con files as well. Additionally you can manually set your ratio in the video.con file.