Jump to content
Sign in to follow this  
anthonye

CameraPosition X Error

Recommended Posts

Hi

 

Just started using CameraPosition X and I am getting the error below.

 

Using FSX Steam

Windows 10 Home

I5 CPU

16gb Ram

 

 

System.ArgumentOutOfRangeException: InvalidArgument=Value of '1' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   at CameraPositionX.CameraPositionXMain.buttonNextView_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
CameraPositionX_SE
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/CameraPositionX_SE/CameraPositionX_SE.exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.FlightSimulator.SimConnect
    Assembly Version: 10.0.62615.0
    Win32 Version: 10.0.62615.0 (FSX.20150710-1055)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/Microsoft.FlightSimulator.SimConnect/v4.0_10.0.62615.0__5f523ae7e6e1b389/Microsoft.FlightSimulator.SimConnect.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 

I can not select any of the X Y Z and tilt, Been trying to tilt the default eyepoint down slightly into the cockpit

 

regards

Anthony

Share this post


Link to post
Share on other sites

Hi Anthony,

 

that is a strage one, probably an invalid entry in a simulator config file. Does this happen with every aircraft?
 And when exactly does it happen? Right on startup?

 

I will require your config files to troubleshoot this, as normally the CPX is very reliable. Please contact me using the form on the Lorby-SI website, so we can exchange those files via email. I will need cameras.cfg, aircraft.cfg and possibly the CPX config file.


LORBY-SI

Share this post


Link to post
Share on other sites

Ok will do that probally later or sometime tomorrow.

 

Where is the CPX config file, and yes it does happen with all aircraft

Thanks

Anthony

Share this post


Link to post
Share on other sites

Hi Anthony,

 

And it happens right when the app starts? Not even connected to the sim?

I doubt that the config file exists. CPX has to terminate normally at least once to create it. We will see.


LORBY-SI

Share this post


Link to post
Share on other sites

No, app starts fine and all window views can be shown, and retrieved.

What I have been doing is running fs in a windowed mode.

 

Here is what I do

 

Have fs with the selected view showing

Connect to fs

Request camera position (in this case the default eyepoint)

Offset from original is showing virtual cockpit

X y and z are all showing 0 with flashing cursor, but the x y z seems to be locked.

Same for tilt degrees box as well

 

If I move the camera to the poition I want it then " set default eyepoint to current position"

I get the box saying really change the eyepoint of this areoplane

New eyepoint saved box and eyepoint jumps back to where the original was.

Seems like the mod is not being saved.

 

All I was trying to do is slightly tilt the default eyepoint down into the cockpit, seems odd that I cant enter anything in the x y z and tilt boxes. Just tried it again now and the error seems to be random as it did not happen the this time.

 

Anthony

Share this post


Link to post
Share on other sites

Hi Anthony,

 

Ok, so the app itself seems to be working, that is good.

 

But there may be a misunderstanding about what the default eyepoint is though. This is a parameter in the aircraft.cfg which designates the position where the sim will put the default "Virtual Cockpit" camera. It is only a X-Y-Z position, it cannot contain pitch, bank or heading.

 

Btw. the x,y,z,p,b,h fields are read only by design. But I am thinking about adding a fine tuning ability with the mouse wheel.

 

If you want to pitch your view down permanently you have two options:

- Create your own camera definition for this aircraft (a "Pilot View") with CPX and then call it up in the sim when you load the aircraft (this is recommended)

- Change the global, default,  "Virtual Cockpit" definition to be pitched down - but this will apply to all your aircraft, so be careful with that.

 

The exception that you posted above could only happen if you click on the "Next View" button when there is no additional view at all in the dropdown list apart from the default entry. The question is, how you managed to arrive at that point. If we can figure that out, I can prevent that exception from being thrown. But I will definitely require your cameras.cfg and the aircraft.cfg.

 

Best regards


LORBY-SI

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...