October 21, 201213 yr Hello All ----- I have searched around but have not been able to find where the default settings of this selector are. Any know how these can be modified? Presently I have to change them EVERY TIME I load a B200. Any help appreciated ---- Thanks ---- Bob :Big Grin: Bob Magill
October 21, 201213 yr yes whitch ones do you want to be set permanently then I will post you the code here,
October 21, 201213 yr Author yes whitch ones do you want to be set permanently then I will post you the code here, Hi Flying Bob -- thanks for the comeback. I want to set both Instrument Reflection and Winglets OFF as default. Thanks !!!! Bob Magill
October 21, 201213 yr The settings are changed in the B200KA.cab file (in your gauges folder). You can make changes there, but simpler is to set the default value in a separate xml gauge. To turn off the Instrument Reflections as the default setting, create a Controls folder as a subfolder to your B200 Panel folder, and put an xml text file in it with the code below, using Notepad. Call this text file Control_Init.xml Also add a line to the B200 panel.cfg file [Vcockpit01] ... gauge09=Controls!Control_Init, 0,0,1,1 <Gauge Name="Control_init" Version="1.0"> <!-- Instr Reflections off --> <Element> <Select> <Value> (L:ControlInit,bool) 1 != if{ 1 (>L:WINDOWSTINTBOOL2,bool) 0 (>L:WINDOWSTINTBOOL,bool) 1 (>L:ControlInit,bool) } </Value> </Select> </Element> </Gauge> To turn the Winglets off, you can add one more line 1 (>L:VIS_WINGLET_ON,bool) after the "tint" lines Bert
October 21, 201213 yr the file I got to make selections "stick" also have some other settings to manipulate and is nice. It work same as what Bert described here, however the gauge cab file have different xml files for each entry so that you can easily manipulate/change a selection just by decommenting out that selection you dont want. In Bert's case when you decoment the entry you will decomment all the selections if all the selections have been added to ONE gauge, I checked the xml gauges and the code is basically same principle as what Bert has posted I now can make the following settings "stick" -no yoke -no yoke CoPilot -no window reflections -no instrument reflections -Avidene GPS OFF -Temp in celcuis -Armrest up -Winglet off If I dont want a specific entry anymore I can just decomment the line I dont want to use. These are my gauge entries. gauge10=SelectionB200!Control_init_J, 0,0,1,1 //no yoke gauge11=SelectionB200!Control_init_JCP, 0,0,1,1 //no yoke CoPilot gauge12=SelectionB200!Control_init_W, 0,0,1,1 //no window reflections gauge13=SelectionB200!Control_init_I, 0,0,1,1 //no instrument reflections gauge14=SelectionB200!Control_init_AVI, 0,0,1,1 //Avidene GPS OFF //gauge15=SelectionB200!Control_init_T, 0,0,1,1 //Show outside temp in celcuis gauge16=SelectionB200!Control_init_AR, 0,0,1,1 //Armrest up //gauge17=SelectionB200!Control_init_WL, 0,0,1,1 //Winglet off As the gauge is not mine I dont know if I can post the gauge "code" info here. Will have to check with owner.
October 21, 201213 yr Author The settings are changed in the B200KA.cab file (in your gauges folder). You can make changes there, but simpler is to set the default value in a separate xml gauge. the file I got to make selections "stick" also have some other settings to manipulate and is nice. Hiya Bert and flying_bob ----- hey, thanks for the inputs to both of you guys. You know, what Bert said about editing the actual xml file in the gauges directory really should be the easiest --- BUT why do they make editing an xml file so darned difficult ??? I did go into the actual file, and I tried to edit it in WinZip but no luck. Also tried extracting the file (out of the B200KA cab file) to the desktop, editing that OK, but could not put it back into the Zip file. I guess I need some practice with xml file manipulation --- I know the external method both of you presented will work fine. Just seems like just editing the B200KA (controls file) directly would be so much easier and simpler. Less error prone as well. Any suggestions for xml editing comments appreciated. Thanks again for the help -- we will get there, one method or the other --- Bob Bob Magill
October 21, 201213 yr Its not so much the editing the XML file thats difficult. Its creating the CAB file once it is edited. You can extract and edit using a Zip program but to replace the original is another story. CabDir.exe in the Simobjects SDK helps a bunch. But basically once you do edit the XML you are creating a whole new gauge. It does seem more complicated than needed. Im sure I'll be corrected as I'm just a novice.
October 21, 201213 yr you dont have to "cab" a file after an edit. Extract ALL the files from a specific cab file to a new folder. make sure the folder have the same name as the gauge cab file. eg if the cab file was "speed.cab", call the folder "speed". rename the "cab:" file by adding .off at the end and you still have the file original cab file. eg "abc.cab.off" now make the adjustment inside the newly created folder, to the xml file you want to adjust and save the file. That way FSX will read the newly created folder with the "adjusted" xml file instead of the original cab file. FSX always first check if it can find a folder anyway, then only will it check for a cab file. that is the sequence of checking according to SDK. a folder also make it readable 0.000000000000001 % faster as fsx dont have to "extract" the cab file first. LOL...! (for the clock counters) (appolomaker you cannot "cab" a file with zip. as someone else already mentioned, you need a specific application to "recab" a file - but it really is not neccasary if you follow above method I explained here. I have hundreds of these "folders" instead of cab files and it work 100%)
October 21, 201213 yr You know, what Bert said about editing the actual xml file in the gauges directory really should be the easiest That would seem the easiest, but the B220KA gauge only allows you to flip selections from on to off and back. It does not allow you to set the initial value... Also, it only executes when you pop up window04 (with shift-5)... So, it actually is easier to create a separate gauge to set the initial values, and put it in a Vcockpit section to make it execute when the airplane starts up. Bert
October 21, 201213 yr Author OK guys --- wow, yes, I can see now where I was going wrong. Will take all your advice and work on this once I get the B200 set up here. Had to start fresh again with a clean install --- that was my fault :rolleyes: EDIT: Note! Bert is right about the nature of this control --- you cannot "edit in" initial values. This control only changes values. You can only change the initial state of the button color in the control --- the plane will remain the same and you must toggle the button color to make the change have an effect. flying_bob --- I remember back some months ago, that when Bert and I were working on modifying the text and indicators in the C90 HSI, we used the basic method you outlined about creating a folder with the same name as the xml control and adding it to the gauge folder. Now I remember. It works great given what you mentioned about FSX looking for the folder FIRST with the same name. A great way to make life easier than wrestling with xml extraction and recreation --- arrrrgghh. :wacko: Thanks again --- Bob Bob Magill
October 22, 201213 yr Hello dear Bert! thank you so much for this! Can you maybe also tell me how to add aline in there which would change the OAT also into Celsius every time I run the KA? Thanks to yours and flying bobs suggestions, I can now make two seperate panel folders for permanent winglets (newer liveries) and non-winglet (older liveries) B200´s ... that´s really great! The settings are changed in the B200KA.cab file (in your gauges folder). You can make changes there, but simpler is to set the default value in a separate xml gauge. To turn off the Instrument Reflections as the default setting, create a Controls folder as a subfolder to your B200 Panel folder, and put an xml text file in it with the code below, using Notepad. Call this text file Control_Init.xml Also add a line to the B200 panel.cfg file [Vcockpit01] ... gauge09=Controls!Control_Init, 0,0,1,1 <Gauge Name="Control_init" Version="1.0"> <!-- Instr Reflections off --> <Element> <Select> <Value> (L:ControlInit,bool) 1 != if{ 1 (>L:WINDOWSTINTBOOL2,bool) 0 (>L:WINDOWSTINTBOOL,bool) 1 (>L:ControlInit,bool) } </Value> </Select> </Element> </Gauge> To turn the Winglets off, you can add one more line 1 (>L:VIS_WINGLET_ON,bool) after the "tint" lines Best regards,
October 22, 201213 yr Author apollomaker great, have you received the files ? you sorted now ? Hello flying_bob, No, I have not received anything yet. I am doing OK for now, Many other things to tinker with Thanks --- Bob Bob Magill
October 22, 201213 yr Can you maybe also tell me how to add aline in there which would change the OAT also into Celsius every time I run the KA? Thanks to yours and flying bobs suggestions, I can now make two separate panel folders for permanent winglets (newer liveries) and non-winglet (older liveries) B200´s ... that´s really great! Which is the gauge displaying the OAT? It would be the one that would need to be adjusted I would think.. Bert
October 22, 201213 yr Which is the gauge displaying the OAT? It would be the one that would need to be adjusted I would think.. Sorry for not clarifying ... I am thinking of the digital OAT gauge which is showing Fahrenheit Degrees under the pilots sidewindow, left of the fuelgauges , after (allways pressing the switchbutton) it shows Celsius which is more common in europe ;-). Thanks for your time! Your control.xml entries work like a charm btw ... thanks a lot! Best regards,
Create an account or sign in to comment