Hi,

A question was asked last week on running FG and OpenGC on the same machine.
Well, the one way is to
run each app in it's own window and use the loopback address of 127.0.0.1 to
communicate via sockets.

fgfs  ..........   --opengc=socket,out,24,127.0.0.1,5800,udp  ...........

Shift-5 engages the Flight Mgmt Computer (FMC) which will not work in the
stand-alone mode. Keep the focus in the FG window and fly via the
keyboard/joystick/yoke

Point of clarification. the FMC can be enabled if you have a network
interface card (NIC) in you machine. You need to set the IP address in
ogcFMC.cpp to your card's address.

change the define in ogcFMC.cpp from

#define SERV_HOST_ADDR "192.168.2.10"

to

#define SERV_HOST_ADDR "your_NIC_address" for the machine running fgfs.

then the command line becomes
fgfs
..........   --opengc=socket,out,24,127.0.0.1,5800,udp  --native-ctrls=socke
t,in,24,,5700,tcp

The source in the repository is a little behind my local copy, but it should
work. Check ogcRenderWindow.cpp for
the keyboard callback routine and keyboard commands/functions.

Regards
John W.




_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to