Re: [Flightgear-devel] Version file check

2012-02-08 Thread HB-GRAL
Am 07.02.12 21:49, schrieb ThorstenB:
 Am 07.02.2012 21:34, schrieb Curtis Olson:
 The main reason for a version check between the binary and the data is
 that we often make parallel changes to both (similar reason why we do a
 simgear minimum version check when compiling flightgear.)  If there are
 version mismatches, things could break or act in weird or unexpected ways.

 A launcher might not be in the same category unless you use options that
 change between versions (this is possible, but happens a lot less often
 than other sorts of changes.)

 Right. Not sure what Yves' original intention were. I referred to the
 basic check if the version file is there _at all_ - such a check seems
 useful for a launcher. Restricting a launcher to a specific version
 number inside the file indeed wouldn't be a good idea. At least I'd like
 to keep using the same launcher for a variety of fgfs versions - 2.5.0,
 2.6.0, 2.7.0 :).

 cheers,
 Thorsten

Thanks for your comments. I will do the basic check for the file. 
Maybe later I will try to do a check for fgfs version against fgdata 
version, to see if both is in line before fgfs process is started (and 
probably fails).

-Yves

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Version file check

2012-02-07 Thread HB-GRAL
Hi all

Is it a good or bad idea for the FGx launcher to check against the 
version file if it is a valid fgdata folder AT ALL ? I will need some 
kind of check.

In case it is a bad idea, do you have other suggestions ?
(Sorry for the dumb question but thanks in advance for your comments).

-Yves

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Version file check

2012-02-07 Thread ThorstenB
On 07.02.2012 21:13, HB-GRAL wrote:
 Is it a good or bad idea for the FGx launcher to check against the
 version file if it is a valid fgdata folder AT ALL ? I will need some
 kind of check.

Seems a good idea. Same check is hard-coded inside fgfs (of course, fgfs 
also requires correct content of the version file). So, if the user 
selected an fgdata folder not containing the file, you could tell the 
user right away - launching fgfs would fail anyway...

cheers,
Thorsten

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Version file check

2012-02-07 Thread Curtis Olson
On Tue, Feb 7, 2012 at 2:29 PM, ThorstenB bre...@gmail.com wrote:

 On 07.02.2012 21:13, HB-GRAL wrote:
  Is it a good or bad idea for the FGx launcher to check against the
  version file if it is a valid fgdata folder AT ALL ? I will need some
  kind of check.

 Seems a good idea. Same check is hard-coded inside fgfs (of course, fgfs
 also requires correct content of the version file). So, if the user
 selected an fgdata folder not containing the file, you could tell the
 user right away - launching fgfs would fail anyway...


The main reason for a version check between the binary and the data is that
we often make parallel changes to both (similar reason why we do a simgear
minimum version check when compiling flightgear.)  If there are version
mismatches, things could break or act in weird or unexpected ways.

A launcher might not be in the same category unless you use options that
change between versions (this is possible, but happens a lot less often
than other sorts of changes.)

Another idea would be to test which version of FlightGear you are launching
(not sure the best mechanism for that?) and enable/disable/change the
launch options based on the version you are launching -- but I suspect you
might not have any changes or differences to account for.

Regards,

Curt.
-- 
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org - http://gallinazo.flightgear.org
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Version file check

2012-02-07 Thread ThorstenB
Am 07.02.2012 21:34, schrieb Curtis Olson:
 The main reason for a version check between the binary and the data is
 that we often make parallel changes to both (similar reason why we do a
 simgear minimum version check when compiling flightgear.)  If there are
 version mismatches, things could break or act in weird or unexpected ways.

 A launcher might not be in the same category unless you use options that
 change between versions (this is possible, but happens a lot less often
 than other sorts of changes.)

Right. Not sure what Yves' original intention were. I referred to the 
basic check if the version file is there _at all_ - such a check seems 
useful for a launcher. Restricting a launcher to a specific version 
number inside the file indeed wouldn't be a good idea. At least I'd like 
to keep using the same launcher for a variety of fgfs versions - 2.5.0, 
2.6.0, 2.7.0 :).

cheers,
Thorsten

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel