PDA

View Full Version : SIOC and FSUIPC



Bell209
02-27-2009, 02:24 AM
G'day all,

I recently bought the OC MAstercard and USB expansion cards but can't programme SIOC for the life of me! I have managed to get controlador to recognise the inputs (four encoders connected to 1, 2, 10, 11, 12, 20, etc) but I want to use them to control two of the attached guages:



The other two encoders will control the horizon bar on the standby AH and the bug on the RADALT (if I can get them to work!).

I've programmed FSUIPC to recognise the key strokes for it that I've programmed using Key2Mouse (or at least I had until it dumped the file after it lost the registration key!).

Please help - I've read over 200 pages on how SIOC works and I'm barely any the wiser! XP recognises the OC card(s) but there's nothing in the game controllers or FSUIPC.

Thanks a lot!

kiek
02-27-2009, 03:13 AM
Hi,

Maybe this may help you:

http://www.lekseecon.nl/howto.html#readFSUIPC

http://www.lekseecon.nl/howto.html#writeFSUIPC

http://www.lekseecon.nl/howto.html#keygen

http://www.lekseecon.nl/howto.html#fscontrol

regards,
Nico

Kennair
02-27-2009, 05:52 AM
Hi Bell209,

The OC manual really only starts to make sense after you've got a handle on SIOC and the Mastercard itself, which is a little pointless but never the less it's helpful to refer to from then on. There is help elsewhere such as Nico's website and I would highly recommend you read through Nico's explanation of the OC hardware and its configuration file settings in "sioc.ini".

Windows doesn't see the Mastercard as a Game Controller so you won't see it there and FSUIPC doesn't need to know about SIOC, you just need to have FS running and SIOC will then detect FSUIPC as running. Start with simply code such as written by someone else that is known to work then try modifying so you can get a handle on how it works. It really is very logical but that's fine when you know how.

I'm not sure what that text file was that you attached as it opens as an XML file. If you were trying to make SIOC to run with that file it will never work.

Good luck,

Ken.

Bell209
03-01-2009, 06:35 PM
Thanks Nico and Ken,

The xml is an extract from the gauge; I've been using Mouse2Key to operate these knobs but they're not standard FS commands. If I use one of the unassigned FS commands listed in the FSUIPC documentation, can I then programme SIOC to operate that command?

Thanks again,

Rob

Kennair
03-02-2009, 09:45 AM
Rob, if the Horizon Bar and the Radar Alt bug are not available externally via FS then it can't be done by SIOC/FSUPIC. You'd need to read through the FSUIPC documentation in the FSUIPC_SDK file you can download from Pete's site to see all that is available to you. SIOC simply allows more functionality of hardware events but if FS doesn't give access to a command (such as adjusting the Radar Alt Bug) then it can't do it. Your only option is to use Key2Mouse or FSUIPC's mousetrapping function to activate the control on screen.

Nico or others might offer more technical support for you or an alternative but this is as I understand it.

Ken.

kiek
03-02-2009, 03:41 PM
Hi,
An option might be to define a FSUIPC mouse trap for a gauge control function. This will be added to FSUIPC's FSControl list, and sending FSControl from SIOC is easy: http://www.lekseecon.nl/howto.html#fscontrol

cheers,
nico

Bell209
03-04-2009, 10:50 PM
That look like the answer, Nico - thanks very much!