[Flightgear-devel] Re: PA24-250 model under development
* Vivian Meazza -- Thursday 22 December 2005 10:13: Blender is clever, but almost impossible to use. Oh, sure. That must be why the Concorde, the Bo105 and several others were done with Blender. This opinion is common under people who didn't have the patience to learn a new interface. Yes, it's overwhelming at first, but it's *very* efficient once you understood it. Reading one or two tutorials (plenty available on the net) and asking a few questions here or in our IRC channel should be enough to grok Blender. Blender is literally a professional tool, not only in the buzzword sense. It was written and used by a graphics studio that did commercial animations for advertisement purposes and such. Then it was freed and is now GPL'ed. It is fully scriptable in Python and there are scripts available for specific FlightGear development purposes. This here[1] writes FlightGear animation XML fragments and whole XML animation files. There are many other scripts available, too. You can directly ray-trace your model if you like, import/export numerous formats, and do lots of other fancy things with it. To get going quickly, while getting acceptable results I would recommend AC3D. The $40 or so it costs is money well spent I reckon. Could be. But didn't the ac3d author already screw some paying customers over? I remember the discussion here on the devel list. I don't really care who uses what, as long as I can use Blender. AC3D may be a nice application and is certainly good enough for FlightGear modeling, but Blender is far from almost impossible to use. m. Disclaimer: I'm biased. :-) [1] http://members.aon.at/mfranz/flightgear/blender-textured-lights.html --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Calling FG functions via network interface
On Mon, Jan 02, 2006 at 10:20:20AM +0100, Melchior FRANZ wrote: Still untested, but for the archive (and IIRC): - execute = func { fgcommand(cmdargs().getValue(), args) } + execute = func { fgcommand(cmdarg().getValue(), args) } - args.setStringValue(filename, dummy); + args.getNode(filename, 1).setStringValue(dummy); m. :-) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Texture compression experiments in plib
On Tue, Jan 10, 2006 at 04:17:32PM +, Tiago Gusmão wrote: I see that .sgi has a few dummy fields we could use (altough that would break the spec, they should be NULL), That's not an option. Even using the comment line for that isn't one, although it wouldn't violate the spec. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] material animation problem
On Wed, Jan 18, 2006 at 10:55:21PM -0500, Josh Babcock wrote: Can anyone see something wrong with this animation? It seems that the condition switch is stuck in the on position. You tell it to change the material if/when the condition is met. And that's what it does. You don't tell it to restore a prior material state once the condition becomes false. And how could it? Which 'prior state' should it use? Other material animations for the same object could have changed it meanwhile! Solution: you have to change it back explicitly -- in a separate animation. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] material animation problem
On Thu, Jan 19, 2006 at 10:02:39AM +0100, Melchior FRANZ wrote: Solution: you have to change it back explicitly -- in a separate animation. Solution II: you can also watch the sun angle in a Nasal loop and set a property accordingly. Then you can leave the material condition away and use that property with emissionblue-propfoo-light/on/blue-prop... m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Using property listeners
On Thu, Jan 19, 2006 at 09:36:38PM +, AJ MacLeod wrote: I am in need of some sage advice on property listeners. Could someone enlighten me on the easiest way to convert the following type of function to respond to, for example, the sim/model/lightning/controls/flight/ap_pitch property? If you want to listen to a property that changes several times per frame, then a simple settimer loop is the best thing to do. A timer value of 0 makes sure that the function is run once per frame. Otherwise (and if the property is not tied!) a listener function is the way to go. # Pitch Hold / Off autpilot_pitch = func { aircraftpitch = getprop('orientation/pitch-deg[0]'); on = arg[0]; if ( on != '1' ) { setprop(autopilot/locks/altitude[0], ); setprop(sim/model/lightning/controls/flight/ap_pitch, 0); setprop(autopilot/gui/alt-active[0], false); } else { setprop(sim/model/lightning/controls/flight/ap_pitch, 1); setprop(autopilot/settings/target-pitch-deg[0], aircraftpitch); setprop(autopilot/locks/altitude[0], pitch-hold); } } # end function autopilot_pitch = func { new_ap_pitch = cmdarg().getValue(); ... } setlistener(sim/model/lightning/controls/flight/ap_pitch, autopilot_pitch); m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Patch for Nasal flaps, gear, Vne, airframe stress warnings
* Curtis L. Olson -- Tuesday 03 January 2006 22:21: It might also be nice to have a version of the display message that takes an X,Y location so you can put message in arbitrary locations. The whole thing could have been done with simple transparent dialogs and a Nasal function (like the new fps display). No need for a new Nasal primitive ... That way it could display several lines that scroll up as new lines are added ... m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Using property listeners, and remapping JS controls on a per-ac basis
* AJ MacLeod -- Thursday 26 January 2006 13:28: Which leads me to a linked question; is there any way of assigning nasal functions to joystick buttons on a per-aircraft basis (i.e. with the _aircraft_ setting the controls, not the JS config), in the same way the keyboard can be remapped? Yes, kind of: there are several wrapper functions in controls.nas that individual aircraft can redefine. Some are doing that already. We could use more of these wrappers. For example, the joystick configs just call controls.lowerFlap(0), and controls.nas defines what lowerFlap() means. You can redefine that in your aircraft for special flap handling (see the Hurricane config). But as long as your aircraft has flaps, you may only use that for flap handling! Everything else would be a big mistake. Aircraft may only redefine *how* things are done, but not on which of my js buttons they are done. Aircraft know *nothing* about my joystick, or my preferences. I've replicated this with a bit of nasal, which now works - but is the only way to use this to have every user temporarily and manually change their JS config? If you are missing a redefinable wrapper in controls.nas, then write one (and adapt all js configs for it). m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: screenPrint alternative
* Melchior FRANZ -- Friday 27 January 2006 09:24: Here's a first draft [...] Expect some improvements ... The newest version does now depend on fgfs CVS/HEAD as of *now*! It supports colors and has a Nasal interface screenlog.write(foo); screenlog.write(redfoo, 1, 0, 0); and property interfaces. Just write to these properties from Nasal/telnet/http/... /MSG(red) /GREEN /BLUE These are still at top level for testing purposes, but will later be under /sim/screen/... Note that you can attach further listeners from other nasal files to arbitrary properties, for example: setlistener(/foo/atc-message, func { screenlog.write(cmdarg().getValue, 1, 0.9, 0.9); } m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Autopilot on default Cessna
* Martin Spott -- Saturday 28 January 2006 16:35: but the autopilot pull-down menue is inactive, the word Autopilot in the headline is greyed-out. Is this intentionally ? Yes, it's intentional. The KAP140 is AFAIK only operatable via 3D cockpit. The dialogs don't work for it, so the entry is grayed out. (Too many people complained about the dialogs.) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Autopilot on default Cessna
[autopilot menu entry disabled for the default aircraft] * Martin Spott -- Saturday 28 January 2006 19:45: Melchior FRANZ wrote: Yes, it's intentional. The KAP140 is AFAIK only operatable via 3D cockpit. Ah, that's ok. This doesn't make it easier to realise my plan but I will accept the facts :-) $FG_ROOT/Nasal/gui.nas, line 71 ... it's all yours! :-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [Flightgear-cvslogs] CVS: FlightGear/src/GUI gui_local.cxx,1.14,1.15
* Josh Babcock -- Monday 30 January 2006 22:01: * On Sunday 29 January 2006 16:20, Melchior Franz wrote: set the /sim/signals/reinit property on reinit, so that aircraft code can attach listeners. I think I missed something earlier. Can someone describe the functionality that has been added? There's a Nasal interface to the property listener feature since a few weeks. If one attaches a listener to a property, it will be executed whenever the property is written to (no matter which value -- it's not about *changing* values). These listeners are implemented directly in the property node, and *every* write access will trigger them, even when setting via telnet/http or from c++. The listeners should be used instead of polling loops, if the property isn't tied and isn't written to frequently. The triggering property node is available as cmdarg(). Examples: setlistener(/sim/crashed, func { print(we crashed!) }); replayNode = props.globals.getNode(/sim/freeze/replay-state); replay = func { print(replay ~ [off, on][cmdarg().getBoolValue()]) } setlistener(replayNode, replay); Because setlistener() uses cmdarg(), which uses props.Node, one can only use it after the props.nas module has been loaded. Files in $FG_ROOT/Nasal/ should therefore use setlistener in an INIT style timer function. setlistener() takes an optional third bool argument, that tells if the callback function should be executed initially: Example: setlistener(/environment/metar/real-metar, func { print(cmdarg().getValue()) }, 1); This prints the current metar string and every new one. Yesterday I added two properties solely for the purpose of attaching Nasal listeners. They can be used for callback functions: /sim/signals/reinit -- set on reinit (Shift-Esc) /sim/signals/exit -- set on exit Examples: setlistener(/sim/signals/reinit, reset_function); atexit = func(f) { setlistener(/sim/signals/exit, f) } atexit(save_my_stuff); m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Triggering snapshot via the HTTPD/Telnet interfaces?
* Mike Kopack -- Tuesday 31 January 2006 17:26: Is there any way through either the HTTP or Telnet Property interfaces to force a screenshot to be taken? That's easy. On a very recent CVS (= development) version write this into a file $FG_ROOT/Nasal/local.nas: INIT = func { setlistener(/sim/screenshot, func { fgcommand(screen-capture, props.Node.new()) }); } settimer(INIT, 0); Then set property /sim/screenshot via telnet to an arbitrary value. On older systems you write this into that file and set /sim/screenshot to a positive value: screenshot = nil; loop = func { if (screenshot.getBoolValue()) { fgcommand(screen-capture, props.Node.new()); screenshot.setBoolValue(0); } settimer(loop, 0.05); } INIT = func { screenshot = props.globals.getNode(/sim/screenshot, 1); screenshot.setBoolValue(0); loop(); } settimer(INIT, 0); m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Triggering snapshot via the HTTPD/Telnet interfaces?
* Curtis L. Olson -- Tuesday 31 January 2006 17:52: If screen-capture is the exposed function name, then you should also be able to just setup the telnet interface, telnet in, and type run screen-capture. Ahh. Didn't know that. Here's yet another possibility that works for almost all commands. (See attachment). Put this into $FG_ROOT/Nasal/ and then in telnet/http first write the args and finally the command name. Example: set /sim/cmd/name screen-capture set /sim/cmd/args/dialog-name instrument-failures set /sim/cmd/name dialog-show m. # set appropriate args in /sim/cmd/args/ and then write the # command name to /sim/cmd/name. Example: # # set /sim/cmd/arg/timeofday morning # set /sim/cmd/name timeofday cmd = args = nil; INIT = func { cmd = props.globals.getNode(/sim/cmd/name, 1); args = props.globals.getNode(/sim/cmd/args, 1); args.setValues({ file : , # load, save, play-audio dialog-name : , # dialog-show, dialog-close object-name : , # dialog-update, dialog-apply path : , # play-audio, panel-load, preferences-load script: , # script, nasal status: 0, # exit subsystem : , # reinit write-all : 0, # save button: 0, # panel-mouse-click is-down : 0, # panel-mouse-click x-pos : 0, # panel-mouse-click y-pos : 0, # panel-mouse-click temp-degc : 0.0,# set-sea-level-degc, set-oat-degc altitude-ft : 0.0,# set-oat-degc, set-dewpoint-degc dewpoint-degc : 0.0,# set-dewpoint-sea-level-degc, set-dewpoint-degc timeofday : noon, # timeofday targetnode: , # load_xml_to_proptree filename : , # load_xml_to_proptree, save_xml_from_proptree sourcenode: , # save_xml_from_proptree }); setlistener(cmd, func { fgcommand(cmdarg().getValue(), args) } ); } settimer(INIT, 0);
[Flightgear-devel] Re: Patch for XML-based tutorial system
* Buchanan, Stuart -- Friday 03 February 2006 00:06: --- Melchior FRANZ wrote: I changed that meanwhile and made it a class (because Curt wanted more than one text window. :-) OK, I'll take a look and update the tutorial patch. You just need to replace screenlog.write() with screen.log.write(). screen.log is an already open 'window' and everyone can write to it. Up to 10 messages are shown for 10 seconds each. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] screen.nas: log windows
I've yesterday committed a Nasal class that helps to display log information in a scrolling transparent window. This can be used for ATC message type of information and whatever info you want to display. (The default font SANS_12B looks good, but is a maybe a bit too slow -- see below for how to choose a faster ( blurry) font.) Examples: # write to default window screen.log.write(boo!); screen.log.write(red message, 1, 0, 0); # setting the /sim/screen/* properties writes to the same window setprop(/sim/screen/blue, some blue text); # create a new window vertically centered on the left with # left aligned, red text foo = screen.window.new(20, nil, 5, 15); # 5 lines, 15 seconds foo.font = Helvetica.txf; # faster font foo.align = left; foo.fg = [1, 0.5, 0, 1]; # set default color foo.write(FlightGear); foo.write(0.9.9, 1, 1, 1); # white text Attached is a Nasal example file that makes use of the default window (centered on top): it displays metar messages and geo click coordinates (click anywhere in the landscape to make them show up). Screenshot: http://members.aon.at/mfranz/screenlog.jpg [34 kB] m. metar = func { var s = cmdarg().getValue(); if (!size(s)) { return; } for (i = 0; i size(s); i += 1) { if (s[i] == `\n`) { break; } } screen.log.write(substr(s, 0, i)); # date screen.log.write(substr(s, i + 1)); # metar } INIT = func { setlistener(/environment/metar/real-metar, metar, 1); setlistener(/sim/input/click/longitude-deg, func { screen.log.write(LON=~ cmdarg().getValue(), 1, 1, 1) }); setlistener(/sim/input/click/latitude-deg, func { screen.log.write(LAT= ~ cmdarg().getValue(), 1, 1, 1) }); setlistener(/sim/input/click/elevation-ft, func { screen.log.write(ELEV= ~ cmdarg().getValue(), 0, 0, 0) }); } settimer(INIT, 1);
[Flightgear-devel] Re: screen.nas: log windows
* Andy Ross -- Friday 03 February 2006 16:29: How about porting the existing screenPrint() code to use it instead, screenPrint = func { screen.log.write(arg[0]) } # in global.nas Ported! Or is there more to do? Only the tutorial ever used screenPrint, and it doesn't any more, so it's probably no problem to kill it. And better before the next release. and removing the C++ implementation? Or for a bonus, port the ATC display code (from which screenPrint was derived) to use the Nasal implementation and remove the C++ code from that, too? The ATC subsystem shouldn't really generate the message *and* display it, no matter which method is used. It should rather only set a property to the generated message, for example /sim/messages/atc. A different subsystem should then take this message and display it -- using the same code for ATC and other screen messages. It should be glue code that decides what to do with the message property (c++ and Nasal listeners). Send it to the screen like now, print it to the console, forward it to the speech synthesis module (yet to be written :-), ... The old display code is very performance friendly, and very user unfriendly: displaying only one message at the same time just isn't enough. Adding further such lines doesn't cut it either. We need to use something like screen.nas, but it could also be done in C++ based on the old code. (And only once for ATC, tutorials and others, maybe in the gui subsystem.) As far as the fonts go: the blurry/antialiased ones (which look better when textured on 3D surfaces, but don't have pixel-space hinting) shouldn't be any slower/faster than the bitmaps. If nothing else, you can store the bitmap in the texture as long as you're careful about rendering it at half-pixel boundaries. If plib implements that I'm fine with it. :-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: screen.nas: log windows
* Josh Babcock -- Saturday 04 February 2006 14:40: [drop screenPrint] There may be some people using it for custom stuff, perhaps if you added a print statement with a warning and then wait a month or two before removing it. This was never in a release, so it can get removed without warning before the next release. People who paid enough attention to pick it up from cvs are probably smart enough to notice the dismission, too. Nasal would tell them, anyway! :-} m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: screen.nas: log windows
* Isao Yamashita -- Saturday 04 February 2006 19:04: There is a text to speech program called festival, Actually, I'm using Festival for fgfs since *ages*. I made a property /sim/sound/speech, and when I write text to this, it's spoken by the synthesizer. A listener copies the messages from /sim/messages/atc there, so that I have spoken ATC. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: screen.nas: log windows
* Isao Yamashita -- Saturday 04 February 2006 19:30: * Melchior FRANZ [EMAIL PROTECTED] wrote: Actually, I'm using Festival for fgfs since *ages*. I made a property /sim/sound/speech, and when I write text to this, it's spoken by the synthesizer. A listener copies the messages from /sim/messages/atc there, so that I have spoken ATC. I tried with V0.9.8a came with Game Knoopix DVD. I didn't hear anything but only the text on the display, when I enabled from the menu. I'll try with --prop this time. I didn't say it's committed to CVS. Only that I made it -- in my copy. And this is in my local.nas: setlistener(/sim/messages/atc, func { var msg = cmdarg().getValue(); setprop(/sim/sound/speech, msg); screen.log.write(msg, 1, 0, 0); print(ATC: ~ msg); }); ATC messages are spoken, written to the console, and displayed in the log screen. My use of Festival isn't very sophisticated. I hand the job over to KDE's kttsmgr via dcop. I should better let Festival run as server and connect via socket. Would cure some ugly lags. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: screenshotart.com
* Martin Spott -- Sunday 05 February 2006 10:05: http://www.screenshotart.com/index.php?act=modulemodule=gallerycmd=sccat=69 Do you consider it as a good or as a bad sign that I didn't identify the FlightGear screenshots in the mentioned gallery ? Well, one is the completely black one titled Nightshift scramble. I needed to download it and brighten it up in GIMP to see anything. Didn't find the others. :-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [PATCH][RFC] speech synthesis with festival
Here's a fix for the existing totally broken festival speech synthesis interface. The new implementation isn't part of the ATC subsystem any more, but resides in the Sound/ dir. It can be called via FGVoiceMgr::say(string), or simply by writing to property /sim/sound/speech, and is so available for Nasal/telnet/http/... (Tutorials/Instructor voice, Copilot hints, warnings, ATC, ...) ATC doesn't use it by default, but a simple Nasal instruction can forward ATC messages to the synthesizer: setlistener(/sim/messages/atc, func { var msg = cmdarg().getValue(); setprop(/sim/sound/speech, msg); screen.log.write(msg); print(ATC: ~ msg); }); Of course you can also set /sim/sound/speech in the property browser. And, of course, you need to install and start the festival speech synthesizer[1], which is cross platform and open source: $ nice festival --server On the fgfs side: 1) apply the attached patch basedir.diff in your fgfs dir 2) copy these two files to src/Sound/: http://members.aon.at/mfranz/voice.cxx [2.5 kB] http://members.aon.at/mfranz/voice.hxx [2 kB] 3) configure make Currently, you get a harmless error message if the festival server isn't found on localhost:1314. You can set a different host and port under /sim/presets/voice/{host,port}. The old code was apparently never in broad use (it has a hard-coded and unusable host address, uses a non-default port, uses wrong/obsolete commands, doesn't use sg socket code, doesn't use threads, does only work for ATC, ...) Please test and complain. m. [1] http://www.cstr.ed.ac.uk/projects/festival/ Index: src/Main/fg_init.cxx === RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Main/fg_init.cxx,v retrieving revision 1.150 diff -u -p -r1.150 fg_init.cxx --- src/Main/fg_init.cxx 30 Jan 2006 13:29:50 - 1.150 +++ src/Main/fg_init.cxx 5 Feb 2006 16:38:38 - @@ -106,6 +106,7 @@ #include Sound/fg_fx.hxx #include Sound/beacon.hxx #include Sound/morse.hxx +#include Sound/voice.hxx #include Systems/system_mgr.hxx #include Time/light.hxx #include Time/sunsolver.hxx @@ -1677,6 +1678,7 @@ bool fgInitSubsystems() { globals-add_subsystem(fx, new FGFX); +globals-add_subsystem(voice, new FGVoiceMgr()); #endif Index: src/Sound/Makefile.am === RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Sound/Makefile.am,v retrieving revision 1.2 diff -u -p -r1.2 Makefile.am --- src/Sound/Makefile.am 9 May 2003 18:44:35 - 1.2 +++ src/Sound/Makefile.am 5 Feb 2006 16:38:38 - @@ -3,6 +3,7 @@ noinst_LIBRARIES = libSound.a libSound_a_SOURCES = \ beacon.cxx beacon.hxx \ fg_fx.cxx fg_fx.hxx \ - morse.cxx morse.hxx + morse.cxx morse.hxx \ + voice.cxx voice.hxx INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
[Flightgear-devel] Re: [PATCH][RFC] speech synthesis with festival
* Vassilii Khachaturov -- Sunday 05 February 2006 18:51: Would it be difficult to include an urgent shut-up interface? I can make it delete the queue when an empty string is set. But I can't revoke the string that already went to festival. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [PATCH][RFC] speech synthesis with festival
* Melchior FRANZ -- Sunday 05 February 2006 18:58: * Vassilii Khachaturov -- Sunday 05 February 2006 18:51: Would it be difficult to include an urgent shut-up interface? I can make it delete the queue when an empty string is set. But I can't revoke the string that already went to festival. Or better make a second listener with priority. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [PATCH][RFC] speech synthesis with festival
* Vassilii Khachaturov -- Sunday 05 February 2006 18:51: Would it be difficult to include an urgent shut-up interface? We could actually have two or three channels that could speak at the same time. One for background voice (ATC), and one for a foreground voice (instructor, copilot). We can even have one with slightly increased volume pitch (We will all die, whaaa ...!), or make volume/pitch adjustable etc. It just doesn't look as if there's much interest. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: A-10 3D cockpit
* alexis bory -- Tuesday 07 February 2006 00:14: I just can't wait to show a screenshot: http://croo.murgl.org/img/very-begining.jpg Very nice. Looks quite good already! m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [PATCH][RFC] speech synthesis with festival
* John Wojnaroski -- Tuesday 07 February 2006 16:50: Don't have the code in front of me, IIRC that address is where FG sends the text string to a small wrapper program that runs the festival client OK. The voice subsytem can easily handle that, too: /sim/presets/voice/host=192.168.2.15 /sim/presets/voice/port=7100 /sim/sound/voice[0]/festival=false This sends voice[0] in raw form to that address like before, and should work for you out of the box. festival defaults to true, which adds the festival syntax around the messages and the pitch/speed commands. My approach is to run festival on a seperate machine so as not to reduce the frame rate. That was never a question. Of course that's preferable and possible. It's just not an option for the majority and shouldn't be default. [sphinx] It was moderately difficult. The biggest item was creating the word dictionary or corpus Ahh, yes. Now I remember. This wasn't only tedious, it also made the whole sphinx a fata morgana. I had thought it were a real speech-to-text solution, not a text sample recognition program. I instantly lost interest, but I still have it here. :-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [PATCH][RFC] speech synthesis with festival
* Vivian Meazza -- Tuesday 07 February 2006 09:35: So after a little effort, Festival and FG work together. The default voice is poor, but Melchior is working on that, so we can pick one of the better ones that are available. This is now working. I have defined three voice groups with better voices: us[123]_mbrola. One should be able to use any of the voices from here: http://tcts.fpms.ac.be/synthesis/mbrola/mbrcopybin.html So I can now make atc, pilot and copilot speak with different voices. Now it's starting to get nice funny. Well done Melchior, and thanks for the help. I look forward to this forming part of the base code Thanks, and you are welcome. :-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] speech synthesis with festival [New Patch]
There's a new patch available. It supports multiple voices and writes in different colors to screen.log. The files are available here, along with some instructions: http://members.aon.at/mfranz/flightgear/festival.html You'll hear the synthesizer say e four times. That's thought for preloading the voice data. I hope I can remove that later. If you find the screen.log text illegible, simply change to a better GUI style (Shift-F10). It's quite nice to hear the tower with one voice, ai-planes with another, and your own with yet another. :-) Please, comment and complain as usual. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [PATCH][RFC] speech synthesis with festival
* Erik Hofman -- Monday 06 February 2006 13:35: Personally I feel it would be a nice addition. OK, then. I'll commit tomorrow around midday if there are no objections until then. The latest patch can be found here again, along with some documentation: http://members.aon.at/mfranz/flightgear/festival.html I'll also add most of this to $FG_ROOT/Docs/README.sound. The feature will be turned off by default (/sim/sound/voices/enabled). I will not commit the patch that disables the old ATC message display -- this should be discussed first. The new subsystem obsoletes the old ATC voice function, as it can fully 'emulate' its capabilities. This will also be described in the README. Those who have the patch already applied and want to test the latest version do only have to copy the new files voice.cxx and voice.hxx to the Sound/ dir. There are no other relevant changes. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: CVS: data preferences.xml,1.197,1.198
* Melchior Franz -- Friday 10 February 2006 20:57: preferences.xml Log Message: pre-set callsign +voices [...] +/voices Whoops. The voice stuff wasn't meant to go in already. But now I can leave it there, too ... :-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [PATCH][RFC] speech synthesis with festival
* David Luff -- Friday 10 February 2006 23:54: Melchior FRANZ writes: No, no. I'm not speaking aobut the ATIS messages. These are fine and will remain. Phew :-) I like the ATIS recordings a lot, and others on IRC do so, too. The ATIS voice will have a long life. :-) I'm looking forward to trying out the festival stuff BTW, when I manage to get a large enough time-slice of spare time. It's quite funny. And really flexible, too. All subsytems/aircraft are encouraged to make use of this. (But none should rely on it being there, of course. Things that use it have to work sanely without.) Intelligent response to user voice input using Sphinx next? Not exactly on the TODO, but I should probably look into it again after ignoring it for a long time. Should have progressed a lot, too. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] literature
To increase list traffic on this boring day, here are a few links to pages where people discuss fgfs: http://digg.com/software/Awesome_Free_Flight_Sim Eternal discussion with a few new entries: http://www.macupdate.com/info.php/id/16997 http://happypenguin.org/show?Flight%20Gear%20Flight%20Sim German (have fun with babelfish): http://www.winfuture.de/news,23149.html German (they seem to like the bo105 and not to know how to start fgfs at daylight - screenshots): http://nickles.softonic.de/ie/47000/Flightgear m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Help ! on a Run-Time Error !
* Frederic Bouvier -- Sunday 12 February 2006 16:54: Isao Yamashita wrote : ... Audio initialization failed! Could not change the current ALC context Adding subsystem fx Adding subsystem voice ATC Display ATC Manager It looks like the new voice subsystem is causing you problems. No, it doesn't look like it. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Help ! on a Run-Time Error !
* Isao Yamashita -- Sunday 12 February 2006 19:07: #6 0x083a0ff8 in SGSoundSample::load_file (this=0xb2da290, path=0x0, file=0xb2da10c default.wav) at sample_openal.cxx:388 [...] I suspect somewhere around the trace #6 or #7 is causing the problem. Yes, and I say it the last time: your sound isn't working. Either the openal lib is too old, or the driver for your sound card, or something. May I remember you: | [Thread -1435599952 (zombie) exited] | Audio initialization failed! | Could not change the current ALC context Try running the sound tests in SimGear/simgear/sound/. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Help ! on a Run-Time Error !
* Mathias Fröhlich -- Sunday 12 February 2006 19:17: On Sunday 12 February 2006 19:12, Melchior FRANZ wrote: Yes, and I say it the last time: your sound isn't working. Either the openal lib is too old, or the driver for your sound card, or Well, yes. But is that a reason for flightgear to quit? No, but that's not the problem we are discussing here, is it? m. PS: and I know it should be May I *remind* you :-) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Help ! on a Run-Time Error !
* Mathias Fröhlich -- Sunday 12 February 2006 19:28: On Sunday 12 February 2006 19:19, Melchior FRANZ wrote: No, but that's not the problem we are discussing here, is it? I believe it is. Others will profit from better error message, yes. But Isao's problem won't be solved by that. We have fg that just aborts. That is a problem regardless of the availability of a soundcard. One cause for this is that people use wrongly compiled freeglut/SDL libs, where exceptions aren't enabled and thus the stack unwinding informaion is lost. So the boostrap function never gets the exception, but rather calls terminate() and aborts. This is not a FlightGear bug. OTOH, we suffer from it and should maybe add a hint to the error message or a trouble-shooting README. Do you already have a clue where in simgears code this exception is thrown? Nope. But linking with a (free)glut/SDL lib that was configured/compiled/linked with CFLAGS=-fexceptions $CFLAGS LDFLAGS=-fexceptions $LDFLAGS ./configure should be more helpful. m. :-) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Help ! on a Run-Time Error !
* Frederic Bouvier -- Sunday 12 February 2006 20:08: May I remind you the helpfull stack sent by Isao ? Sure. But now I was talking with Mathias about the other problem. :-P #7 0x080c61f2 in FGATCVoice::LoadVoice (this=0xb1e8040, [EMAIL PROTECTED]) at ATCVoice.cxx:58 (BTW: this has nothing to do with the new voice code.) line 388, file sample_openal.cxx, there is : [...] This throw needs a try {} catch {} somewhere. I will commit a fix soon. Would be useful. But it is not the reason why fgfs doesn't show the exception text, as I explained above. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Help ! on a Run-Time Error !
* Melchior FRANZ -- Sunday 12 February 2006 21:11: Going on although basic files are missing -- which can only mean that the base package is corrupted -- Gah ... forget this. There isn't anything missing at all. Just openal doesn't work. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Question about --carrier=Nimitz
* Stefan Seifert -- Monday 13 February 2006 08:45: Isao Yamashita wrote: I did uncomment the scenarionimitz_demo/scenario line in preference.xml and autosave.xml Will probably not help you, but there should not be a scenario in your autosave.xml. Where does it come from? I guess that comes from this well meant, but totally wrong advice: | A long shot but try copying the preferences.xml to autosave.xml | and see if that changes the error message (it might even eliminate it!!) ... Just remove that local autosave.xml copy of the global preferences.xml file again. The autosave.xml file will be generated automatically, as the name implies. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: New South Germany Scenery release
* Ralf Gerlich -- Monday 13 February 2006 12:23: I don't think that there are areas in the world with a high concentration of FlightGear-developers living there ;-), What we have plenty of is white spots. :-) http://unbeatenpath.net/software/fgfs/Developers/Developers.html m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: GOTD ... Gimmick Of The Day
* Andy Ross -- Tuesday 14 February 2006 18:05: Melchior FRANZ wrote: My little Nasal console: http://members.aon.at/mfranz/nasal-console.jpg [23 kB] Nice. :) It's just a simple xml dialog, added to my Debug menu. Should be useful to test aircraft functions without having to assign key bindings. One could also allow to have more of those around, smaller ones ... m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Mouse patch
* David Megginson -- Thursday 16 February 2006 03:36: It still doesn't seem to be working perfectly, but it's better than before. Fixed for SDL. The problem was that fgWarpMouse()/SDL_WarpMouse() moves the pointer to the center and creates a mouse motion event. But before this event was processed, there could still be mouse motion events for the old position left in the queue. So we got a big delta and an ugly jump. The mouse motion events are now flushed from the queue. (I haven't looked into (free)glut. Same problem there?) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Mouse patch
* David Luff -- Friday 17 February 2006 00:27: I do recall that on Cygwin (glut) builds I used to see unpredicable view behaviour when the mouse wrapped, that I've never seen on Linux (SDL) builds where the mouse has always wrapped with no problem or view jump. The jumps were always there in SDL. I got used to them -- only David's remark reminded me that this should really get fixed. If the new code causes crashes then we should try to find the reason. Reverting the input.cxx change only hides the true cause. Any useful backtrace on that? (killed doesn't tell me anything.) :-/ m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: errors after new CVS install 0.9.9
* Mike Rawlins -- Friday 17 February 2006 03:40: In previous message, I failed to mention that I moved all data into .fgfs directory. Suggestions? Yes. Move everything back! FlightGear complained about a missing file ~/.fgfs/autosave.xml, so you moved the base data into ~/.fgfs/? That makes no sense to me. Just ignore this initial complaint about autosave.xml. FlightGear will *automatically* *save* some menu settings there. (Which is why it's called autosave.xml. :-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: UDP port into the property tree
* dene maxwell -- Friday 17 February 2006 05:53: What port number for write ? What port number for read? (I prefer confirming protocols) That's called TCP, then. Yes, that's possible. Just run fgfs with --telnet=5500, then you can telnet into it and read/write to properties. $ fgfs --telnet=5500 Then wait until it's running, and from another terminal window telnet into it: $ telnet localhost 5500 help Valid commands are: cd dir cd to a directory, '..' to move back data switch to raw data mode dump dump current state (in xml) get var show the value of a parameter help show this help message ls [dir] list directory prompt switch to interactive mode (default) pwddisplay your current path quit terminate connection run command run built in command set var valset var to a new val show var synonym for get And the whole telnet/socket connection can also be done by a script. Look into scripts/ dir for examples. What format to access each property? Start withdata Then read... get /position/longitude-deg get /position/latitude-deg Or write ... set /sim/foo 123 and finally quit This way you can do about everything. Read/write properties, execute built-in commands, or transfer arbitrary Nasal code and let fgfs execute it. You can even transfer whole dialogs and pop them up in fgfs. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: UDP port into the property tree
* dene maxwell -- Friday 17 February 2006 10:18: That would suit my needs exactly if; a) I wanted to do it manually b) I could start a telnet session from within VB6 (not saying you can't just I haven't yet) Forget about telnet. It's a normal tcp socket connection. I'm confident that VB6 can do that. Did you look at the examples as I told you? The c/c++ examples in scripts/example/ don't even mention telnet. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: UDP port into the property tree
* dene maxwell -- Friday 17 February 2006 10:50: From: Melchior FRANZ [EMAIL PROTECTED] Forget about telnet. It's a normal tcp socket connection. That was the second part of my question, what would the syntax be under UDP... the same? It would probably be the same. If it were implemented. But as it doesn't make the least sense, it isn't. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: UDP port into the property tree
* Melchior FRANZ -- Friday 17 February 2006 10:57: * dene maxwell -- Friday 17 February 2006 10:50: That was the second part of my question, what would the syntax be under UDP... the same? It would probably be the same. If it were implemented. But as it doesn't make the least sense, it isn't. You probably want to read README.protocol, README.IO, README.multiplayer. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: errors after new CVS install 0.9.9
* Mike Rawlins -- Friday 17 February 2006 14:29: So why do I get these messages and an abort. [...] Failed to set alias to /sim/sound/voices/voice[3]/text Failed to set alias to /sim/chase-distance-m [...] These are property aliases. It appears that you get these messages if you try to set them twice. And this is probably because your global preferences.xml file is read twice, or two different copies thereof. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: CVS: FlightGear/src/Sound voice.cxx,1.3,1.4
* Mathias Fröhlich -- Saturday 18 February 2006 17:18: On Saturday 18 February 2006 17:13, Melchior FRANZ wrote: so why ask if it's there? You can either include all defines autoconf generates in the compilers commandline, then HAVE_CONFIG_H is not defined or autoconf puts the defines into config.h and defines HAVE_CONFIG_H ... OK. So we are back at my first message: /* fgfs.h */ #ifdef HAVE_CONFIG_H # include config.h #endif globals.hxx is a bit too big to include it everywhere, but fgfs.h (or whatever its name) wouldn't be. What we do here is the opposite of abstraction. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: A question about the mesh reordering animation
* Josh Babcock -- Saturday 18 February 2006 23:08: Personally, I would like to see two tools added, one a function call to export a visual representation of a subtree as text, Index: model.cxx === RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/scene/model/model.cxx,v retrieving revision 1.36 diff -u -p -r1.36 model.cxx --- model.cxx 11 Dec 2005 13:35:05 - 1.36 +++ model.cxx 18 Feb 2006 22:30:59 - @@ -353,6 +353,8 @@ sgLoad3DModel( const string fg_root, co } #endif + if (props.getBoolValue(dump, false)) +model-print(stderr, , 1); return alignmainmodel; } Then you'd just add a dump bool: PropertyList pathbo105.ac/path dumptrue/dump offsets x-m2.5/x-m z-m-.2/z-m /offsets ... and it would output the model structure: ... ssgBranch: Name=Aircraft Num Kids=2 ssgBranch: Name=Aircraft Num Kids=0 ssgSelector: Name=NoName Num Kids=1 ssgVtxArray: Name=bounding_box ssgSimpleState: 0xa1cba48 ssgVertexArray: Name=NoName Total # items = 12 ... This isn't exactly pretty, but not bad for two lines of code. :-) Maybe you want to use some other constant than 1 in the print(). m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: A question about the mesh reordering animation
* Melchior FRANZ -- Saturday 18 February 2006 23:38: + if (props.getBoolValue(dump, false)) +model-print(stderr, , 1); Better make that an int: int m = props.getIntValue(dump, -1); if (m = 0) model-print(stderr, , m); Then use an int property (values -1 - off, 0 - few details, ..., 4 - very *many* details): dump1/dump m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: 737 EICAS
* Erik Hofman -- Sunday 19 February 2006 18:32: I would like to commit this to CVS but I think the .xml files was the most important update, and it's missing ... I'll use the opportunity to remove the space from the filename of the eicas background, once the fixes are in: 737/Instruments/Textures/eicas background.rgb 737-300/Instruments/Textures/eicas background.rgb These disturb me since a long time. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: problems running FG now
* Justin Smithies -- Monday 20 February 2006 21:39: freeglut ERROR: Function glutSetCursor called without first calling 'glutIni t'. im using freeglut 2.4.0 Any ideas ? Yes. Don't use freeglut 2.4.0. :-) It's broken. Either use 2.2.0 or CVS. Or even better: use SDL (./configure --enable-sdl) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: problems running FG now
* Justin Smithies -- Monday 20 February 2006 21:47: What are the advantages of using sdl over freeglut ? Also does this mean i have to compile simgear with this option too or just FG ? Advantages: Some bugs less. (Such as the keyboard repeat bug.) You only need to configure/compile/link FlightGear with it. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: problems running FG now
* Melchior FRANZ -- Monday 20 February 2006 21:48: [--enable-sdl] Advantages: Some bugs less. (Such as the keyboard repeat bug.) There's a (minor) disadvantage, too: desktop switching isn't possible in fullscreen. I don't care, because I don't use the built-in fullscreen option, but rather make my own: I just run fgfs with --geometry=1152x864 (which is my screen res), and advise KDE's kwin not to draw any window decoration. That's better than fullscreen. :-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [Simgear-cvslogs] CVS: SimGear/simgear/math .cvsignore, [...]
* Frederic Bouvier -- Tuesday 21 February 2006 11:05: Melchior, it seems your FSF script has a flaw. It ditched lines of codes and put that sentence in the middle of the class. It wasn't a script. It was all hand-made and verified multiple times. The patch was correct. Only: it had no context lines (my fault), and Erik installed it over files with uncommitted changes, and committed it in one go. Now everything is broken and I'm waiting for instructions how to help fix it. Ideally, all would get backed out and uncommitted code committed first, then a new patch (with context) applied again. Currently most of SG is a big mess. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [Simgear-cvslogs] CVS: SimGear/simgear/math .cvsignore, [...]
* Melchior FRANZ -- Tuesday 21 February 2006 11:11: It wasn't a script. It was all hand-made and verified multiple times. The patch was correct. Only: it had no context lines (my fault), and Erik installed it over files with uncommitted changes, and committed it in one go. But, no. This doesn't explain it. The context lines are only there to allow cvs to resolve minor conflicts *automatically*. But there should still conflicts have been reported while committing. After all, the '-' line has to match at exactly the right line number, to be replaced by the '+' line. So I change my mind: it can't have been my fault. Hmmm ... m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Resigning as patch committer.
* Erik Hofman -- Tuesday 21 February 2006 13:20: I have finally made the decision not to commit any patches from others anymore. I think I've done my time over the last few years but this accident this morning alone has cost me more than half a day. Sorry to hear that. I'm aware that you had to carry the main load of committing patch contributions. On the other hand, I do now feel the need to defend myself, because it may appear as if it was my fault. It was not. 1. I didn't want to make this FSF address patch at all, but was encouraged. (When I explained why I wouldn't do it, I only got a Bah., as in: weak excuse!. So I made and submitted it anyway.) 2. The patch was well tested against a clean SG/CVS/HEAD. It is correct as you can see here in the originally submitted file: http://members.aon.at/mfranz/simgear.diff.gz [7.8 kB] I tried it again right now and it applied cleanly *and* correctly, as did reverting it. ($ zcat simgear.diff.gz|patch -R -p0) 3. I don't see how reverting two patches takes more than a half day. Actually, I'd be surprised if it took more than half an hour. I'd give it no more than 10 minutes. Unless, of course, cvs or patch has a bug that doesn't allow it. I can't, however, imagine that Erik made a mistake. It looks very much like a cvs or patch bug. Nothing in the patch justifies the outcome. Not even if it had been applied wrongly (which it hardly was -- Erik isn't a cvs beginner). m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Resigning as patch committer.
* Erik Hofman -- Tuesday 21 February 2006 15:42: Melchior FRANZ wrote: On the other hand, I do now feel the need to defend myself, because it may appear as if it was my fault. It was not. I didn't say that and I didn't mean to. Yes, thanks. However, the audience here proably thinks that. ;-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Tutorial System patch (version 5)
* Buchanan, Stuart -- Tuesday 21 February 2006 00:15: Available for comments from http://www.nanjika.co.uk/flightgear/tutorial5.tar.gz Tested and works very well! It's a lot of fun, too. There are only a few remaining issues that can get fixed once it's in. If nobody objects, then I'll commit that tomorrow. (Mind the fg_command.cxx change, if you care.) Now we only need to assign a better festival voice to the copilot ... m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: festival speech
* Justin Smithies -- Tuesday 21 February 2006 20:05: Does that mean if i install festival that FG will speak ? Yes. How do i configure FG to speak and setup festival etc. See $FG_ROOT/Docs/README.voice.html. Once festival is set up you only need to start it as server: $ festival --server and start fgfs with voice support enabled: $ fgfs --prop:/sim/sound/voices/enabled=1 --airport=KSQL Turn on ATC Traffic if you want to hear AI pilots. Use the '-key (apostrophe key) to communicate with the tower. (If you start from KSFO you won't get ATC communication offered.) The tutorials will also speak to you. You can permanently enable /sim/sound/voices/enabled. The only disadvantage is that you get a few error messages if the server isn't running. You can safely ignore that. I'll fix that later (by submitting an sg patch :-). m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: festival speech
* Curtis L. Olson -- Tuesday 21 February 2006 20:32: Festival --server is kicking out messages like: client(1) Tue Feb 21 13:29:46 2006 : rejected from localhost.localdomain not in access list I didn't see anything useful in the manual related to locating a config file and what the access list syntax looks like. Yes. Festival seems to be set up restrictive on some systems (or by default?). One has to set the permissions in /etc/festival.scm (if it looks there) or in /usr/share/festival/siteinit.scm or /usr/share/festival/init.scm: http://www.cstr.ed.ac.uk/projects/festival/manual/festival_28.html#SEC130 See server_deny_list and server_access_list. I have first to find out where to place that ideally. It doesn't seem to accept a config file in the home dir. I'll add a paragraph about it in the README if I know more. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: festival speech
This should work: (set! server_access_list '(localhost)) Not that I've tried ... :-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: festival speech
* Melchior FRANZ -- Tuesday 21 February 2006 20:50: (set! server_access_list '(localhost)) It looks as if you only have to put the above line into a file e.g. ~/.festival.scm, and then call festival like so: $ festival --server ~/.festival.scm m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: festival speech
* Pigeon -- Tuesday 21 February 2006 21:04: So I ended up having this in my .festivalrc is: (set! server_access_list nil) Ah. Very good, thanks. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: ATC voices
* Justin Smithies -- Tuesday 21 February 2006 22:57: I have tried KSFO and heard the speech , but do any of the UK airports have this too ? I have enabled atc and a density of 3 , even tried 1 but when leaving EGPD my home airport i never get anything from the tower etc ? You should hear the tower there, too, if you tune in a tower frequency (see Menu-ATC-Frequencies). But non-KSFO personnel is a bit retarded. What they say may not make much sense. ;-) m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: ATC voices
* Justin Smithies -- Tuesday 21 February 2006 23:11: I do enter the tower freq but i still dont see any text or hear the speech even when leaving their airspace Works here at EGPD: Frequency 118.1 (Tower) in COMM1. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: ATC voices
* Justin Smithies -- Tuesday 21 February 2006 23:20: Thats the same freq im using and i can take off fly miles away and hear nothing. I enable ATC and select 3 from density I hear ATC and my voice ('-key dialog), but there doesn't seem to be any AI aircraft around. No idea why. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?
* Roberto Inzerillo -- Wednesday 22 February 2006 19:43: I've set two animations with one condition each; the conditions compare the current sun-angle-rad with a fixed value; one condition should make the Needle light on, the second condition should bring the Needle back to no emission. That's a bug. Static values are only initially set. But, of course, they should always be set again if a condition is present and has changed. I'll soon submit a fix. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: [PATCH] tiny eta-reduction at the voice README docs
* Vassilii Khachaturov -- Wednesday 22 February 2006 21:39: BTW, I don't know how recent it is, but on my system the following is even easier to get the install voices list: festival (voice.list) (rab_diphone don_diphone kal_diphone) Sounds good. I used what KDE uses internally. Of course, voice-locations alone would also work. I'll add your versions to the README. Thanks. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?
* Melchior FRANZ -- Wednesday 22 February 2006 20:53: * Roberto Inzerillo -- Wednesday 22 February 2006 19:43: [material animation problem] That's a bug. Fixed and committed. m. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?
* Robicd -- Wednesday 22 February 2006 23:43: As soon as I use the red-prop instead of red property (and so on with green and blue) flightgear crashes with the following error message: It doesn't crash ... Unknown exception in the main loop. Aborting... ... but abort, because you entered an invalid property. This has nothing to do with the material animation. Sigh ... But maybe red-prop has to be used with slightly different syntax; Reading the documentation is *strongly* recommended before you complain. It's a bug in your XML code. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: How to correctly change material emission using condi
* dene maxwell -- Thursday 23 February 2006 05:47: Your comments would seem to say though, that something is being entered (into the FGv099 commad line) that causes an ABORT Could be, but I wasn't talking about that, but about a wrong XML statement. Roberto presumably used something like red-prop1.0/red-prop. But the -prop in the tag wants to say us that it expects a property path: red-prop/path/to/a/number/red-prop. And the material animation, like all other animations, doesn't check the validity of the property path, but hands it over to SimGear. SimGear checks, isn't happy, throws an exception, and this should issue an error message and exit. If the exception is unknown to main(), then it simply says: Unknown exception in the main loop. Aborting... and aborts. Some people say it crashes. It doesn't. But I've changed that now in fgfs so that it says at least: Fatal error: name must begin with alpha or '_' Someone with sg access may want to write a better fix for simgear (replace string with an exception class). or am I simply miles off course? ;-) No. Problems on the command line can potentially have the same consequences. But the range of possible causes is too big to concentrate on the command line. Often, such unintelligent aborts are simply the result of a trivial bug that isn't properly announced, because fgfs was linked with a badly compiled (free)glut. A useful exception may then be filtered by glut, and all you get is an abortion. At least a glut library from Linux/BSD/... distributors should work correctly. I'd complain if it doesn't. (I complained about that from SuSE, and they promised to fix it. Haven't checked since then.) m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?
* Roberto Inzerillo -- Thursday 23 February 2006 17:26: Am I saying something correct here or am I totally away from reality? Everything correct. (And *-norm properties *are* supposed to deliver values ranging from 0 to 1.) Well, e.g. the statement The offset is applied before the factor [...] Eeew ... indeed. That's written in the rotate animation and is wrong, even for rotate: _position_deg = _prop-getDoubleValue() * _factor + _offset_deg; There you see why animation.[ch]xx is one of my information sources. I'll fix that in the documentation. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: ATC Speech
* Justin Smithies -- Thursday 23 February 2006 21:45: Is it possible to make the speech louder than the aircraft noise ? Yes. Just make the aircraft noise quieter. :-) Does festival have a setting to increase the volume ? no idea m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] [BUG] JSBSim: crash on re-init
Enjoy! #0 0x0812b332 in JSBSim::FGFDMExec::GetAtmosphere (this=0x0) at FGFDMExec.h:252 #1 0x0813954e in JSBSim::FGInitialCondition::SetMachIC (this=0xa4b0790, tt=0) at FGInitialCondition.cpp:186 #2 0x08142f1c in SGRawValueMethodsJSBSim::FGInitialCondition, double::setValue (this=0xa1b4b60, value=0) at props.hxx:406 #3 0x084c8d4a in SGPropertyNode::set_double (this=0xa3ab4c8, val=0) at props.cxx:445 #4 0x084c3e64 in SGPropertyNode::setDoubleValue (this=0xa3ab4c8, value=0) at props.cxx:1381 #5 0x084bc469 in copyProperties (in=0xce303f8, out=0xa3ab4c8) at props_io.cxx:583 #6 0x084bc6f4 in copyProperties (in=0xce301a0, out=0xadd89c0) at props_io.cxx:613 #7 0x084bc6f4 in copyProperties (in=0xce27680, out=0xa445448) at props_io.cxx:613 #8 0x084bc6f4 in copyProperties (in=0xce27620, out=0xa4583d8) at props_io.cxx:613 #9 0x084bc6f4 in copyProperties (in=0xcce0f00, out=0x8987608) at props_io.cxx:613 #10 0x080537d4 in FGGlobals::restoreInitialState (this=0x8987480) at globals.cxx:235 #11 0x082b68a2 in reInit (cb=0x0) at gui_local.cxx:71 m. :-) --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: ATC
* Justin Smithies -- Friday 24 February 2006 18:51: How do i contact the tower on 118.10 You need to select this channel on one your your COMM radios. Do i have to put in some sort of id in the command line to identify me to the ATC ? No. But you can start with --prop:/sim/user/callsign=Justin, if you want it familiar. ;-) m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: ATC voices (no AI at EGPD)
* David Luff -- Thursday 23 February 2006 23:35: I wonder if there's any scope for giving it phonetic help/hints for stuff it doesn't pronounce well, such as ATIS. Yes, that's on my TODO. Just need to learn a bit more about Festival, and wait for the display question to settle. Then I'd like to add a library in the Festival space that is transferred initially, and some simple markup to the messages that is filtered out by the display and translated for Festival. For example: foo {hint} bar. All {} groups would then be removed before the user reads/hears the message. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: ATC
* Justin Smithies -- Friday 24 February 2006 19:02: I do have com 1 on 118.10 and i hear the tower all the time but i cant contact him i get no transmission available This works for me: $ fgfs --prop:/instrumentation/comm[0]/frequencies/selected-mhz=118.1 --airport=EGPD Then the '-key dialog and ... m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Howto use max and min with multpiple values in xml material animation?
* Robicd -- Friday 24 February 2006 14:56: http://www.geocities.com/robitabu/animation/index.htm It's ome kind of a memo to me, but if correct could be usefull to others too. I'm only expert for the material animation, not for sun angle calculations. But the animation is still right, as it was yesterday already. BTW: I wouldn't use 1.57 in *all* objects. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: error with today's fgfs cvs update
* Dave Perry -- Friday 24 February 2006 22:35: make[2]: *** No rule to make target `tiny_xdr.cpp', This file has been renamed to tiny_xdr.cxx. But some build steps on your disk do still think they need this old file. I always forget which steps are required (although Andy keeps telling me). Maybe autoreconf is enough already. If not, make clean, remove the autom4te.cache and configure again. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Any Billboard animation doc around?
* Roberto Inzerillo -- Saturday 25 February 2006 15:26: Is there any documentaion about the billboard animation to read? I'd like to understand how to use that animation in order to get some boat/lighthouse lighting look nice. You better look at Fred's beacon. The billboard animation is quite simple: animation typebillboard/type object-name... sphericalfalse/spherical... defaults to true /animation lights use sperical trees don't use it m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] model accumulation
Is everyone aware that we *never* free model branches? They are only accumulated until fgfs is exited. If you teleport from KSFO to LOWW/Europe, then you still have the KSFO terminal in memory. Doesn't sound like a good idea to me. Currently we don't have that many individual objects, but as people are contributing to the fgdb, this may become a problem (textures!). And it certainly will be a problem once I got Nasal support for scenery objects into cvs. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: model accumulation
* Curtis L. Olson -- Sunday 26 February 2006 07:13: Melchior FRANZ wrote: Is everyone aware that we *never* free model branches? The original design of the scenery pager would delete these objects. What are you seeing that leads you to believe they aren't getting deleted? It's very plausible that something got broke along the way. Could have been introduced recently with ssgSharedPtr. Around the time when we got random objects it was desirable not to have thousand separate tree objects etc. in memory. So the SGModelLib::load_model() function was introduced. It holds all models in a mapstring path, ssgSharedPtrssgEntity. The objects are removed from the scenegraph when the tile is freed, but because we still hold the refcounted model branches in this map, they are *not* freed. And this is not just a theory: I was actually about to add Nasal support to static objects. This wasn't meant to be used for trees or other frequent models, but for landmarks with special needs. (Example: Eiffel Tower lighting, Roberto's Space Needle, etc.) And, of course, the Nasal contexts would have to get destroyed once the model is removed from memory, so that they wouldn't accumulate. But my Nasal destructors were never called. Only when I modified my fgfs copy to only cache OBJECT_SHARED and random objects, but not OBJECT_STATIC, would it free the models. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Error in SGMisc class? I don't see it ...
* Mathias Fröhlich -- Monday 27 February 2006 14:31: Would it be possible that we add that to CPPFLAGS in configure.ac if we find a *win32*) host? I suggest we put that in every single file in sg and fg, with an #ifdef around, just like those sophisticated #include config.h. That way the likeliness of omissions and typos is vastly reduced. :-} m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: terminate called after throwing an instance of 'std::string'
* Dave Perry -- Tuesday 28 February 2006 21:52: PropertyList params nav-in-range/instrumentation/nav[0]/in-range/nav-in-range /params animation typeselect/type object-nameGlidescopeNeedle/object-name condition ###property alias=../../../../../params/nav-in-range/ /condition /animation /PropertyList Can any of you spot the problem? Yes. Way too many ../! You only want ../../../params/nav-in-range here, because you want to get out of one property, one condition, and one animation. As a simple rule: use as many ../ as you have indentation steps in that line. (Shown as '#' above. Of course, sane people use Tabs, not spaces. :-) m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Recently introduced bug in AI/Radar
* AJ MacLeod -- Wednesday 01 March 2006 12:55: I believe there was a bug recently introduced (with the recent SG changes I think) which has stopped radar working properly. Quite unlikely. SG has no idea about radars or instruments. In SG it would have to be a change to the property system or the XML parser to cause this. And not only were there no such changes since a while, they would also affect a whole lot of other parts in the same way. Do you have anything special in mind? In SG? The material animation? m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Recently introduced bug in AI/Radar
And to be a bit more constructive ... * AJ MacLeod -- Wednesday 01 March 2006 12:55: The AI aircraft now seem (if I'm not mistaken) to start as the number of radar returns specified in the XML + 1; The AI aircraft? There were many changes to AI/MP, so I'd say this is the place to look first. :-) m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Nasal in scenery object XML files
FYI: I've now added Nasal support for scenery objects to my copy of sg fg. This can be used for 'intelligent' objects -- special lighting features, specific lighthouse signals, things that couldn't be done with animations alone. The code is run as soon as the tile loader decided to load the model. It can use listeners and timers and so run as long as it wishes. If the object is removed from memory, then a variable is changed in the object's namespace, so that the code can stop itself. An optional destructor part can be used for further cleanup (remove listeners etc.) The required changes for sg fg are minimal, but because of the nearing release I better send the patches for review after the release. See below for an example. m. ?xml version=1.0? PropertyList pathhelipad.ac/path nasal script f = func { if (!valid) { return } print(Hello, I'm the helipad!); settimer(f, 5); } f(); /script script !-- optional destructor -- print(Bye, bye!) /script /nasal animation typenoshadow/type object-namehelipad/object-name /animation /PropertyList --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Nasal in scenery object XML files
* Roberto Inzerillo -- Wednesday 01 March 2006 16:52: Is there any chance we can get a nasal-modified binary for Win platform to play with as soon as something works in an acceptable stable way? It is stable. It's just the pending release that keeps me from submitting. But if it'll take a while to fix the remaining JSBSim aircraft configs, then we can as well apply it now. :-) Don't know about Win binaries. I'm not releasing any builds, and if I would, then they'd be for Linux. To Josh: I'll offer a patch later today. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Nasal in scenery object XML files
* Andy Ross -- Wednesday 01 March 2006 18:44: Which can do it all from Nasal with just a single line. And defining it as the second script tag seems clumsy to me; how about calling it on-unload or destroy or something similar? I thought about that, too. But I would then not call the first script script, either, but make a pair load and unload. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Nasal in scenery object XML files
* Josh Babcock -- Wednesday 01 March 2006 15:39: Can you make a patch available for those of us that want to experiment with this? http://members.aon.at/mfranz/nasal-scenery.tar.gz [3.7 kB] How it works - the model loader has another arg: a pointer to an ssgBase derived SGModelData class - if !0 then its load() method is called - only the caller of scenery models sets such a class: an SGModelData derived FGNasalModelData class - the tileloader sets a bool for OBJECT_STATIC for the modellib loader, so that those can be excluded from the cache map I've changed the behavior a bit after Andy's suggestion. I'm currently using two properies load and unload (could be changed to on-load and on-unload -- I just found on-unload hard to pronounce. ;-) New example: ?xml version=1.0? PropertyList pathhelipad.ac/path nasal load loaded = 1; print(Hello, I'm the helipad!); var f = func { if (!loaded) { return } print(I'm still there!); settimer(f, 5); } f(); /load unload loaded = 0; print(Bye, bye!) /unload /nasal animation typenoshadow/type object-namehelipad/object-name /animation /PropertyList --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Nasal controls.nas patch for multi-engine aircraft and changes to C310
* Buchanan, Stuart -- Thursday 02 March 2006 20:11: I have a patch to Nasal/controls.nas. The patch changes the adjEngControl() function to apply the adjustment to the currently selected engine, rather than all of them. This directly affects adjThrottle(), adjMixture(), adjCondition() and adjPropeller(). Makes sense to me. (The implementation less so. :-) I also have a patch to the C310 so that the propeller control repeats, available from http://www.nanjika.co.uk/flightgear/c310-set.diff Makes sense, too, but I wonder if we shouldn't assign that globally in keyboard.xml. Looking into map.pdf I see that n/N has no meaning per default, but several aircraft defining it to mean the same: N (78) c182|c182-2dpanel|c310|c310dpm-3d|hurricaneIIb|seafireIIIc|spitfireIIa: Propeller Coarse n (110) c182|c182-2dpanel|c310|c310dpm-3d|hurricaneIIb|seafireIIIc|spitfireIIa: Propeller Fine m/M is mixture already, and right beside n/N. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Nasal controls.nas patch for multi-engine aircraft and changes to C310
* Martin Spott -- Friday 03 March 2006 09:12: would you mind taking into account that we (hopefully) someday will have carburator heating for certain piston-engined aircraft being modelled in Flightgear ? We'll take that into account once it was (hopefully) implemented in certain piston-engined aircraft some day. That's soon enough. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Nasal controls.nas patch for multi-engine aircraft and changes to C310
* Martin Spott -- Friday 03 March 2006 10:43: Melchior FRANZ wrote: We'll take that into account once it was (hopefully) implemented in certain piston-engined aircraft some day. That's soon enough. Sorry, you don't understand: I understood you perfectly fine. But you didn't understand me. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Nasal controls.nas patch for multi-engine aircraft and changes to C310
* Buchanan, Stuart -- Friday 03 March 2006 10:30: --- Melchior FRANZ wrote: Makes sense to me. (The implementation less so. :-) Well, to be consistent I was copying code from elsewhere in the Nasal file. ... just not the placing of parentheses. :-P I assume you have some way of doing this in half the number of lines :) That's not the main issue. You are using the indices of a Nasal array as property indices. But properties aren't guaranteed to be continuous. You could have engine[3] and engine[7], and no engine[0] etc. (Even though nobody would probably do that.) Besides that, IMHO foo += 1 should be preferred to foo = foo + 1. In the latter case one has to check if the variables are really the same. Easy for i or foo, but less so with longer variable names. And finally, this for(i=0; isize(engs); i=i+1) can be written as forindex (i; engs) Not that shorter is necessarily better, of course. But again, those last two points were not what I found to make less sense. Makes sense, too, but I wonder if we shouldn't assign that globally in keyboard.xml. Looking into map.pdf I see that n/N has no meaning per default, but several aircraft defining it to mean the same: a) Obviously this function only applies to some aircraft. I haven't checked the effect of adjusting the prop on, say the c172 or j3cub. True. But it applies to more aircraft than select engine 4 or decrease spoilers. b) Some people are a bit concerned about using up all the keyboard assignments (though presumably they can be over-written in an aircraft .xml file?) I'm usually concerned, too. But here we have 7 aircraft that use n/N for propeller pitch already, and some are still missing (pa24, pa28, aerostar, b29, ...?). There are a few dozens of keys still unassigned (almost all Alt bindings), some could be removed or put into extra files (like it was done with the carrier keys) or dialogs. Living with unassigned key bindings doesn't buy us much, either. Using them makes sense, wasting them does of course not. m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Quick question
* Erik Hofman -- Friday 03 March 2006 18:24: Normally it could but we now have code at one place that writes to disk (the ~/.fgfs/autosave.xml) and I don't know how well it handles write errors. Just put a pre-fabricated ~/.fgfs/autosave.xml with startup save-on-exitfalse/save-on-exit /startup m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Re: Flaps and landing gear extend and retract with no power? OK to add voltage checks?
* Dave Perry -- Sunday 05 March 2006 01:41: I would like to add a voltage check before moving the flaps or landing gear in data/Nasal/controls.nas. _if(getprop(/systems/electrical/outputs/flaps) 8.0) {return; } [...] _if(getprop(/systems/electrical/outputs/landing-gear) 8.0) 8.0 what? Ampere? I don't think such a fixed value is a good idea here. This should IMHO be an enabled flag. The aircraft knows more about the exact conditions and could then enable/disable this flag whenever it thinks it should (below 8.0 thingies or 0.6 or whatever). m. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel