Re: [Flightgear-devel] Starting / stopping MP in-sim

2012-01-05 Thread Stuart Buchanan
On Tue, Jan 3, 2012 at 12:54 PM, Stuart Buchanan wrote:
 On a related note I noticed that the menu option to change the lat/Lin format 
 has been removed. Given how useful it is to have a decimal degrees read out 
 for scenery development that seems somewhat strange. Was this intentional ? 
 Or is it a regression? I'm thinking it would be better located under HUD 
 properties.

On further investigation, it looks like this was lost a long time ago
in one of the menu re-organizations, and has been left as a
commented-out menu item.

At various times, it existed as a menu item under the File, View and
Autopilot menus, where each selection cycled through one of three
options for /sim/lon-lat-format.

AFAICT it's main relevance is to the HUD, so I've created some  radio
buttons in the HUD Configuration dialog to control this and cleaned up
the commented out menu items in menubar.xml.

If anyone knows of another use for this property, and can think of a
better location in the menu system for controlling it, please let me
know.

-Stuart

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Starting / stopping MP in-sim

2012-01-04 Thread James Turner

On 3 Jan 2012, at 23:44, Stuart Buchanan wrote:

 1) I've included location information for the servers, so they
 can be used sensibly by users to determine the correct MP server
 to connect to. So our instructions for new users can hopefully be simply
 to open the dialog, select a server close to the user, and press Connect.
 Another win for usability - great work James et al. !

Excellent.

 
 2) I've remove the port setting. This defaults to 5000, and isn't something
 that a user connecting to the standard MP servers is going to change.
 If someone is connecting to a non-standard server, they'll need to do so
 from the command line anyway

Yep, seems reasonable to me - as long as we retain the functionality under the 
hood, it's one less thing for users to get wrong in the GUI :)

 3) The only way I found to disconnect from the MP environment was to set
 the txhost to 0.0.0.0 (from a code read of multiplayermgr.cxx). Is
 there a better
 way to disconnect? As far as I can see, there's no way to do so gracefully at
 present - looks like an else branch is missing from the if() test of
 the txhost
 string.

Right now setting an empty host is the way to disconnect it. A separate 
'connect' boolean input to the code could be arranged, which triggers 
connection  disconnection when set - but obviously this also needs to keep 
compatibility with any command line use. It would also be trivial to add 
explicit 'mp-connect' and 'mp-disconnect' commands, instead of expressing 
everything as property state changes.

James

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Starting / stopping MP in-sim

2012-01-04 Thread Stuart Buchanan
On Wed, Jan 4, 2012 at 9:51 AM, James Turner wrote:
 Right now setting an empty host is the way to disconnect it. A separate 
 'connect' boolean input to the code could be arranged, which triggers 
 connection  disconnection when set - but obviously this also needs to keep 
 compatibility with any command line use. It would also be trivial to add 
 explicit 'mp-connect' and 'mp-disconnect' commands, instead of expressing 
 everything as property state changes.

Actually, that didn't seem to work - or at least it still left
/sim/multiplay/online set to true.

I've just pushed a small fix to multiplayermgr.cxx to return early
from the initialization routine if no host is set. This sets
/sim/multiplay/online remains false if no txhost is set.

-Stuart

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Starting / stopping MP in-sim

2012-01-04 Thread Stuart Buchanan
On Wed, Jan 4, 2012 at 12:08 AM, Gijs de Rooy wrote:
 menu option is greyed out when MP is not enabled on startup (via
 commandline/fgrun).
 maybe add a note like Individual servers can be down? Could even add a
 button to open
 the mpstatus website. People don't Read That Fine Manual, so we shouldn't
 rely on just
 that.
 callsign only changes when re-connecting. I'd add a note about that as well.

I've pushed an updated dialog to fgdata to address these issues.

Further feedback welcome (and yes, I'm aware that MP Chat doesn't work if
you don't start with MP configured - I'm fixing that right now).

-Stuart

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Starting / stopping MP in-sim

2012-01-03 Thread Stuart Buchanan
Hi All,

I'm going through the GUI to update the Manual with the correct menu items for 
the upcoming release. 

I noticed the MP Settings dialog which I'm sure has been there for ages without 
me seeing it.  Should this now be documented as the standard way to enable MP, 
abs should there be a checkbox allowing the MP server to be set without MP 
being active?  I'll also update the dialog to make it more consistent with the 
rest of the UI if no one objects. 

On a related note I noticed that the menu option to change the lat/Lin format 
has been removed. Given how useful it is to have a decimal degrees read out for 
scenery development that seems somewhat strange. Was this intentional ? Or is 
it a regression? I'm thinking it would be better located under HUD properties. 

-Stuartn
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Starting / stopping MP in-sim

2012-01-03 Thread James Turner

On 3 Jan 2012, at 12:54, Stuart Buchanan wrote:

 I noticed the MP Settings dialog which I'm sure has been there for ages 
 without me seeing it.  Should this now be documented as the standard way to 
 enable MP, abs should there be a checkbox allowing the MP server to be set 
 without MP being active?  I'll also update the dialog to make it more 
 consistent with the rest of the UI if no one objects. 

I added the feature, but there's a couple of issues - we need to hardcode a 
server list for this release (there's a ticket about dynamically retrieving a 
list of active MP servers, for post 2.6), and the pui combo box has some focus 
issues, to do with when it fires its valueChanged notification. In the 
medium-term I'll improve the pui code, but again for 2.6, making the widget 
'non-live', and adding a separate connect button or checkbox is the way to go, 
I think.

(In more detail - I tried to make the combo-box editable - so you can enter a 
server address manually - but when you do this, the widget seems to be 
reluctant to loose the keyboard focus, and hence propagate the typed value, 
unless you click on another text field in the dialog). Notably, simply clicking 
outside the widget *won't* force it to loose focus.

James




--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Starting / stopping MP in-sim

2012-01-03 Thread Stuart Buchanan
On Tue, Jan 3, 2012 at 1:36 PM, James Turner wrote:

 On 3 Jan 2012, at 12:54, Stuart Buchanan wrote:

 I noticed the MP Settings dialog which I'm sure has been there for ages 
 without me seeing it.  Should this now be documented as the standard way to 
 enable MP, abs should there be a checkbox allowing the MP server to be set 
 without MP being active?  I'll also update the dialog to make it more 
 consistent with the rest of the UI if no one objects.

 I added the feature, but there's a couple of issues - we need to hardcode a 
 server list for this release (there's a ticket about dynamically retrieving a 
 list of active MP servers, for post 2.6), and the pui combo box has some 
 focus issues, to do with when it fires its valueChanged notification. In the 
 medium-term I'll improve the pui code, but again for 2.6, making the widget 
 'non-live', and adding a separate connect button or checkbox is the way to 
 go, I think.

OK. I'll make the appropriate hardcoded changes for the moment and
update The Manual to describe using the dialog for connecting to the
MP environment. I'll leave references to using other methods for users
wanting to connect to private or non-standard MP servers. I'll also
add a default port.

-Stuart

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Starting / stopping MP in-sim

2012-01-03 Thread James Turner

On 3 Jan 2012, at 21:34, Stuart Buchanan wrote:

 OK. I'll make the appropriate hardcoded changes for the moment and
 update The Manual to describe using the dialog for connecting to the
 MP environment. I'll leave references to using other methods for users
 wanting to connect to private or non-standard MP servers. I'll also
 add a default port.

All sounds good, thanks.

James


--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Starting / stopping MP in-sim

2012-01-03 Thread Stuart Buchanan
On Tue, Jan 3, 2012 at 10:40 PM, James Turner wrote:

 On 3 Jan 2012, at 21:34, Stuart Buchanan wrote:

 OK. I'll make the appropriate hardcoded changes for the moment and
 update The Manual to describe using the dialog for connecting to the
 MP environment. I'll leave references to using other methods for users
 wanting to connect to private or non-standard MP servers. I'll also
 add a default port.

 All sounds good, thanks.

I've just pushed an update to the MP Settings dialog. Let me know what
you think.

A couple of notes:

1) I've included location information for the servers, so they
can be used sensibly by users to determine the correct MP server
to connect to. So our instructions for new users can hopefully be simply
to open the dialog, select a server close to the user, and press Connect.
Another win for usability - great work James et al. !

2) I've remove the port setting. This defaults to 5000, and isn't something
that a user connecting to the standard MP servers is going to change.
If someone is connecting to a non-standard server, they'll need to do so
from the command line anyway

3) The only way I found to disconnect from the MP environment was to set
the txhost to 0.0.0.0 (from a code read of multiplayermgr.cxx). Is
there a better
way to disconnect? As far as I can see, there's no way to do so gracefully at
present - looks like an else branch is missing from the if() test of
the txhost
string.

-Stuart

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Starting / stopping MP in-sim

2012-01-03 Thread Gijs de Rooy

Hi Stuart and James,

nice work on the dialog updates. Works much better now :)
Some comments:
menu option is greyed out when MP is not enabled on startup (via 
commandline/fgrun).maybe add a note like Individual servers can be down? 
Could even add a button to open
the mpstatus website. People don't Read That Fine Manual, so we shouldn't rely 
on just 
that.
callsign only changes when re-connecting. I'd add a note about that as well.


Cheers,
Gijs  --
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel