[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [certi-dev] Re: [Flightgear-devel] FlightGear goes HLA 1.3
From: |
Martin Spott |
Subject: |
Re: [certi-dev] Re: [Flightgear-devel] FlightGear goes HLA 1.3 |
Date: |
Thu, 3 Jul 2008 21:03:00 +0000 (UTC) |
User-agent: |
tin/1.9.2-20070201 ("Dalaruan") (UNIX) (Linux/2.6.25.8-amd64 (x86_64)) |
"Eric Noulard" wrote:
> Martin Spott wrote:
>
> > One of the most recent ideas was to implement connectors for X-Plane
> > and M$FS to participate in the FlightGear MultiPlayer network .... and
> > then Petr announced his HLA plugin, thus offering a comparatively
> > 'untainted' platform for such a mixed simulation. That's all ;-)
.... oh well, aside from that I'm notoriously addicted to "doing
things right" (TM) - and using HLA/CERTI definitely falls into this
category :-)
> 1) First try the given path "as-is" which means that
> 1.a) if an absolute path is given the path should be opened just fine
### Works properly:
jive: 22:55:32 ~> billard -n 1 -F/opt/CERTI/share/federations/Test.fed -fTest
-t 10
[...]
New federation: Test
Looking for FOM file...
Trying... /opt/CERTI/share/federations/Test.fed... opened.
> 1.b) if a relative path is given it is considered rooted at
> rtig location (usually a silly but keep reading)
### Looks a bit strange, however I'm trying:
jive: 22:49:51 ~> billard -n 1 -F../share/federations/Test.fed -fTest -t 10
[...]
New federation: Test
Looking for FOM file...
Trying... ../share/federations/Test.fed --> cannot access.
Now trying.../usr/local/share/federations/../share/federations/Test.fed -->
cannot access.
Now trying.../opt/CERTI/share/federations/../share/federations/Test.fed -->
cannot access.
Next step will fail
jive: 22:51:12 ~> billard -n 1 -Fshare/federations/Test.fed -fTest -t 10
[...]
New federation: Test
Looking for FOM file...
Trying... share/federations/Test.fed --> cannot access.
Now trying.../usr/local/share/federations/share/federations/Test.fed -->
cannot access.
Now trying.../opt/CERTI/share/federations/share/federations/Test.fed -->
cannot access.
Next step will fail
> 2) Try a "standard" location on unix /usr/local/share/federations
> 3) Try ${CERTI_HOME}/+ share/federations
### Both work properly.
> Now since you seem to run RTIG as 'root' user, its behavior regarding
> environment var may be different. Usually root do not inherit environment
> for security reason.
Apparently there's no difference at all.
### as 'root:
bash-3.00# id
uid=0(root) gid=0(root) groups=[...]
bash-3.00# pwd
/root
bash-3.00# env | grep CERTI
CERTI_FED=/opt/CERTI/share/federations
CERTI_HOME=/opt/CERTI
bash-3.00# truss -o rtig.truss $CERTI_HOME/bin/rtig
CERTI RTIG 3.3.0 - Copyright 2002-2006 ONERA
This is free software ; see the source for copying conditions. There is NO
warranty ; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CERTI RTIG up and running ...
New federation: VirtualAir
Looking for FOM file...
Trying... VirtualAir.fed --> cannot access.
Now trying.../usr/local/share/federations/VirtualAir.fed --> cannot access.
Now trying.../opt/CERTI/share/federations/VirtualAir.fed... opened.
(FED
(federation "VirtualAir")
[...]
bash-3.00# grep VirtualAir\.fed rtig.truss
stat("VirtualAir.fed", 0xFFFFFFFF7FFFBEF0) Err#2 ENOENT
stat("/usr/local/share/federations/VirtualAir.fed", 0xFFFFFFFF7FFFBEF0) Err#2
ENOENT
stat("/opt/CERTI/share/federations/VirtualAir.fed", 0xFFFFFFFF7FFFBEF0) = 0
open("/opt/CERTI/share/federations/VirtualAir.fed", O_RDONLY) = 9
open("/opt/CERTI/share/federations/VirtualAir.fed", O_RDONLY) = 9
open("/opt/CERTI/share/federations/VirtualAir.fed", O_RDONLY) = 9
stat("/opt/CERTI/share/federations/VirtualAir.fed", 0xFFFFFFFF7FFFBBD0) = 0
open("/opt/CERTI/share/federations/VirtualAir.fed", O_RDONLY) = 9
### as Joe Average:
foehn: 21:51:16 ~> id
uid=501(martin) gid=100(user) Gruppen=[...]
foehn: 21:51:18 ~> pwd
/home/martin
foehn: 21:51:19 ~> env | grep CERTI
CERTI_HOME=/opt/CERTI
CERTI_FED=/opt/CERTI/share/federations
foehn: 21:51:23 ~> truss -o rtig.truss $CERTI_HOME/bin/rtig
CERTI RTIG 3.3.0 - Copyright 2002-2006 ONERA
This is free software ; see the source for copying conditions. There is NO
warranty ; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CERTI RTIG up and running ...
New federation: VirtualAir
Looking for FOM file...
Trying... VirtualAir.fed --> cannot access.
Now trying.../usr/local/share/federations/VirtualAir.fed --> cannot access.
Now trying.../opt/CERTI/share/federations/VirtualAir.fed... opened.
(FED
(federation "VirtualAir")
[...]
foehn: 21:52:07 ~> grep VirtualAir\.fed rtig.truss
stat("VirtualAir.fed", 0xFFFFFFFF7FFFB290) Err#2 ENOENT
stat("/usr/local/share/federations/VirtualAir.fed", 0xFFFFFFFF7FFFB290) Err#2
ENOENT
stat("/opt/CERTI/share/federations/VirtualAir.fed", 0xFFFFFFFF7FFFB290) = 0
open("/opt/CERTI/share/federations/VirtualAir.fed", O_RDONLY) = 9
open("/opt/CERTI/share/federations/VirtualAir.fed", O_RDONLY) = 9
open("/opt/CERTI/share/federations/VirtualAir.fed", O_RDONLY) = 9
stat("/opt/CERTI/share/federations/VirtualAir.fed", 0xFFFFFFFF7FFFAF70) = 0
open("/opt/CERTI/share/federations/VirtualAir.fed", O_RDONLY) = 9
> What does your RTIG print when asked for the fed file?
How do I achive that ?
Cheers,
Martin.
--
Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------