Results 1 to 10 of 37
Thread: OC assignments
-
03-03-2014, 07:33 PM #1
- Join Date
- Mar 2011
- Location
- Oklahoma
- Posts
- 86
OC assignments
I finally got my oc cards to work, my usb and master are both working fine in the sioc screen. I loaded my first script, an on/off switch command for the battery master switch. The assigned terminal responds to the command in sioc. I don't know how to assign the switch in FSX. When I go to the switch assignments in fsx, the usb/master does not show as an option. I have installed fsupic and it shows active in the sioc screen. What have I missed?
-
03-04-2014, 06:48 AM #2
Re: OC assignments
You miss a link with FSX! Note that Switch assignments in FSX is only available for buttons at Joysticks. The USB expansion card is not a JoyStick... You can communicatie with FSX by using FSUIPC offsets. Here is an example of how to write to an FSUIPC offset from SIOC. You also have to find a suitable offset. This is dependent on your aircraft and how it is supported. I suggest to start with switch (landing) lights or something like that, most aircrafts support that.Nico
-
03-04-2014, 08:26 AM #3
- Join Date
- Mar 2011
- Location
- Oklahoma
- Posts
- 86
Re: OC assignments
Great,now I am starting to understand! Thanks!!!
-
03-04-2014, 03:51 PM #4
- Join Date
- Jan 2007
- Location
- NEW ZEALAND
- Posts
- 899
Re: OC assignments
Can not emphasize enough how useful Nico's site and his howto's are.
Just study the simple scripts and build from there.
Les
-
03-05-2014, 08:45 PM #5
- Join Date
- Mar 2011
- Location
- Oklahoma
- Posts
- 86
Re: OC assignments
Ok, I found the variable I want to use, 3102, which is the master battery. I just don't understand where do I insert the variable, Ie, where do I insert the command? In Sioc? Please be patient, I am not a progamer....Yet!!!! But I'm learning. Can you suggest anything I can study to better understand the basics? Perhaps a book on C++? Thanks Again!
-
03-06-2014, 12:56 AM #6
- Join Date
- Jan 2007
- Location
- NEW ZEALAND
- Posts
- 899
Re: OC assignments
Some understanding of basic programming is required,
Like IF Else And Or statements.
Do a Google search and the descriptions will help greatly.
Go onto O/C forum under Sioc examples and you will a better idea of completed scripts.
Here is a simple example of Battery switch
Var 0015, Link IOCARD_SW, Input 16, Type I // Battery Switch
{
V0007 = V0015
}
Var 0007, Link FSUIPC_OUT, Offset $3102, Length 1 // Battery
Les
-
03-06-2014, 08:56 AM #7
- Join Date
- Mar 2011
- Location
- Oklahoma
- Posts
- 86
Re: OC assignments
I Understand the need for the script as well as how to define one. I just don't know where to insert it. Do I put it in the sioc script file?
-
03-06-2014, 11:36 AM #8
- Join Date
- Jul 2013
- Posts
- 917
Re: OC assignments
Not certain what you are not understanding.
If you want to have a switch hooked up to OC hardware eg a battery switch as above, and then pass that info to FSX then you need the following
A script like the one above by Iwik (though change the switch input number to match your hardware) That script can be standalone or included within another script. However, your sioc.ini file must be given the name of the script that has the battery switch code included within it. You can do that either by editing the sioc.ini file as advised on another thread, or presumably by using config_devices, however, I do not use that utility.
You will also need to have installed FSUIPC
-
03-06-2014, 11:58 AM #9
- Join Date
- Apr 2013
- Location
- uk
- Posts
- 1
-
03-06-2014, 01:07 PM #10
- Join Date
- Mar 2011
- Location
- Oklahoma
- Posts
- 86
Re: OC assignments
That's what I needed, what file to put it in. the sioc ini file. Ill let you know how it goes.
BTW, I never got a reply from you on my last question in our previous thread in order to clarify my understanding of what you were suggesting. I do appreciate your help.
Thanks!
Womans in your city for night
JH startup on Client PC