Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi

I have the Milviz MD530f for fsx, and I am just setting up the  last couple of switches for my home cockpit.

When I use the logging screen to see that the start pump switch activates in the 3d cockpit, it shows up as elect fuel pump 1, but  when I assign my cockpit switch to that command in fsuipc it doesn't activate the switch on the 3d cockpit 

Would creating a macro work 

I also want to setup a botton to activate the annunciator panel but  the log windows shows no command when I press the botton on the cockpit 

 

Cheers 

Rhys 

Posted
4 hours ago, Reco said:

When I use the logging screen to see that the start pump switch activates in the 3d cockpit, it shows up as elect fuel pump 1, but  when I assign my cockpit switch to that command in fsuipc it doesn't activate the switch on the 3d cockpit 

If you also used the same parameter as logged, then this would indicate that something else is needed. Could it be that the control does actually control/start the pump, but the visuals don't update in the cockpit (i.e. the switch doesn't move)? This is an issues sometimes, but more with MSFS2020/20204 than FSX.

4 hours ago, Reco said:

Would creating a macro work 

If the aircraft supports mouse macros and there iso ne available for that switch, then yes. I don't have or know that aircraft so do not know - you just have to try.

4 hours ago, Reco said:

I also want to setup a botton to activate the annunciator panel but  the log windows shows no command when I press the botton on the cockpit 

You can also try with a mouse macro, if supported.

Also try listing the available lvars/local panel variables  (there is a control you can assign to a button/key to list these) to see if any of these look applicable (for both the fuel pump and the annunciator), and if so you can try using those (via a macro).

You can also maybe check the aircraft documentation (or support) to see if there are any custom controls provided by the aircraft (developers).

John.

Posted

Hi John

Thank you for the reply.

The aircraft in question has a macro for the  start button  on the collective plus a couple of other cockpit switches just not the start pump.

I posted a question on the Milviz support page to see if anyone had any ideas 

Can mouse macros be setup in  the 3d cockpit view?. I have selected create mouse macro but don't see any on screen window for macros on my screen 

 

Cheers 

Rhys

 

Posted
21 minutes ago, Reco said:

Can mouse macros be setup in  the 3d cockpit view?

If by '3d cockpit view' you mean the standard virtual cockpit view, then yes. Otherwise, switch to the standard virtual cockpit view to create them.

23 minutes ago, Reco said:

I have selected create mouse macro but don't see any on screen window for macros on my screen 

If you mean that you don't see the initial 'Mouse action Macro making' panel, where you enter the macro file name, then the only way this is not displayed is if you have not updated your FSX to at least SP!. If you mean that you do not see the multi-line message when clicking or using the mouse wheel in the desired area, then the aircraft probably does not support mouse-macros (or none available in that area). Very few aircraft in FSX actually support mouse-macros, and if not you should try lvars - as it says in the documentation:

Quote

IMPORTANT NOTES: These facilities need FSX with at least the SP1 update incorporated. Macro files should work with the original version of FSX, but the easy user macro creation facilities will not be available.

Furthermore, in order to work they need to be able to hook into Gauge code which must be structured in the predictable way which results from using the Microsoft FS SDK for building gauges in C or C++. This unfortunately excludes most of Microsoft's own default FSX aircraft, as they did not use this technique. Furthermore, most new aircraft made by third parties use the more recent technique of having gauges in XML. Those are also not susceptible to "Mouse Macros". (but they are then more likely to be accessible via "L:Vars", which is a separate and more advanced subject).

John

Posted

Thanks John

I'm using fsx se so have all the updates.

Cheers for the information will do a read as you suggested .

 

Kind regards 

Rhys

Posted

Hi,

Try this function in LUA to toggle the fuel switch:

 

function SetFuelPump(joynum, button, downup)			-- toggle FuelPump

	if ipc.readLvar("L:cap10") == 0 then
		ipc.writeLvar("L:cap10",1)
		ipc.writeUB( 0x3104 ,1)
	else
		ipc.writeLvar("L:cap10",0)
		ipc.writeUB( 0x3104 ,0)
	end
	
end

-- track every change of the FuelPump toggle switch
event.button( <your joystick letter> , <your joystick button> , 1 , "SetFuelPump" )

I use P3Dv5 -  but I assume, this won't have changed from FSX.

Rgds
Reinhard

 

  • Upvote 1

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.