Jump to content
The simFlight Network Forums

Alhard Horstmann

Members
  • Posts

    170
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Alhard Horstmann

  1. hi Pete,

    my question is:

    can I get / read via FSUIPC the weather data (direction, speed) of selected (e.g. by ICAO code) weather stations of the FSX weather engine. The weather is configured by me through the FSX weather page. can I read the anwers in your SDK?. I didnt do it yet.

    My main question though was for the FSC team of Volker Heine, to show these data on their FSC map.

    thanks

    Alhard

  2. I am customizing very often my weather in FSX/FS9 with onboard weather configuration feature .

     

    Question:

    How can I display in FS Commander my current weather, configured in FS via built in configuration, or REX or AS.

     

    I want to see the same information on the map with weather stations, wind direction, wind speed,  as I get it by Internet download.

     

    I think via FSUIPC you can read out all this information. You must not show up all weather stations, but all stations close to my current flightplan waypoints.

     

    thanks und beste Grüße an Volker

      Alhard

    PS: I checked the forum, without success.

  3. Hi Pete, as I didn't find a thread with my tags,  I created a new one.

    I am looking for all the information about position, size and color of all the messages showing up in the FSX main window.

    In the meantime I found the files and sections of nearly all these informations. But one is left:

        

         Where is the information of the horizontal scrolling message (e.g. ATIS) stored?
         Where is the color and where the location stored?

    I found in the .FLT file the section "message windows", but this obviously is not the place of storage.
    When I change the position and the size (e.g.: screencoords) in the file, nothing happens. When I change the position and size in the running FSX window and then save the .FLT file, after reloading this .FLT file the previously stored pos. and size is surprisingly restored.

    The only help for changing e.g. ATIS into white is your parameter "WhiteMessages". How are you doing this???

     

    thanks and regards

    Alhard
    Tags: whitemessages× TextColor.1× BackGroundColor.1× InfoLowerLeftTextColor×

  4. Hi Pete

    as I have a personal question regarding this issue above, I need to send you a PM.

    Is this possible?

    I tried it here with the message system, but I got this error message:

    --------------------------------------------------------

    Compose New Message

    The following errors were found

    The member Pete Dowson can not use the messaging system

    This personal message has not been sent

    ---------------------------------------------------------------

    best regards

    Alhard Horstmann

    PS: I think you got already my personal email adress in the past.

  5. Hi Pete,

    as I have big losts of FPS during flight over MEGA airports, I am thinking of how to change FSX values, e.g. disable "Autogen", during flight in dependance of the area.

    Is it possible to do this via FSUIPC?

    I saw e.g. in your older Programmers Manual of FSUIPC for FS2002 that there was an offset 0C92 for Texture Quality. In your newest FSX Offset document there are "NO's" for FSX READ / WRITE.

    I checked the forum, but didn't find similar topic.

    thanks again for your comments

    regards

    Alhard

  6. ...........Assign both yoke's aileron and elevator axes in FSUIPC, selecting "direct to FSUIPC calibration", then calibrate in FSUIPC. When you do this FSUIPC will arbitrate between the two otherwise conflicting inputs, giving precedence to the one with the greatest deflection from centre.

    Regards

    Pete

    Hi Pete,

    I am currently on the same path with a two controller equipment, one for the PF the other for PNF.

    Question: I am using 2 different yokes (from different manufacturers) so I need two different calibrations for the same FS function (e.g. Elevator).

    How can I implement this?

    I got FSUIPC for FS9/X since years and I have experience with LUA. Possibly you remember my conversation with you last year ;-) .

    Thanks and best regards form Erlangen, Germany

    Alhard

  7. You submitted a support query to the Download Links subforum, which is where I provide links to updates and other goodies. Please use this Support Forum for questions. You are lucky I noticed your post.

    No, I know no way of doing that. The scenery file is loaded long before anything can be done by FSUIPC. All you can do is run some sort of batch file before FS to rename your assorted SCENERY.CFG files.

    Note that even having different users doesn't work with scenery, as the SCENERY.CFG is global for all users, unlike the main FS CFG file. There's a good reason for that. Each time there's a change in the SCENERY list, FS has to generate new indices in each scenery library.

    Regards

    Pete

    Thanks Pete, I apologize, I wasn't aware that I was in the wrong forum. How can I move my topic?

    Thanks for your response. I assumed that the only way to solve my requirement is by batch files, as proposed by you and in one of the later responses to my topic.

    Thanks again

    Regards

    Alhard

  8. Hi Pete,

    I want to load special scenery.cfg's for different FSX-YYY.cfg's. Your "profile" feature in FSUIPC could be a good container for my requirement.

    Let me explain my requirement in more detail:

    For performance issues in FSX, I store the current "C:\ProgramData\Microsoft\FSX\Scenery.CFG", then I disable some scenery entries in scenery.cfg, save the changed file as e.g. "scenery_heli.cfg" for later usage and start then my FSX by starting e.g. my FSX_HELI.CFG by calling "fsx_heli.exe". I am using your excellent FSUIPC feature for multiple INI files.

    So I don't know whether it's possible to load the scenery.cfg by a different filename. This could be done by a different FSUIPC profile ???

    Please give me an advise as you did in the years before :-).

    thanks and

    Mit freundlichen Grüßen

    Alhard

  9. Hallo Sascha,

    I am using now FSC since first Version 8 (and I am flying FS since 1980). No questions during this time. It's a great tool.

    But now I want to change the color of the selected line in Flightplan. The color is dark red on dark blue. This is not very good readable, especially on a beamer as a monitor (see attachment).

    How can I change this configuration?

    I own FSC 9.0 Build 16-03-2011 on WIN7-64.

    beste Grüße

    Alhard

    Erlangen EDDN

    post-12923-0-12701700-1302261304_thumb.j

  10. Well that is truly weird. There is nothing in that part of FSUIPC that is at all related to what version of FS is being used. In fact the same modules are compiled into both FSUIPC3 and FSUIPC4.

    Sorry, I don't know offhand. I'd do a search. There's probably a [sound] section in their someplace.

    Regards

    Pete

    Hi Pete, after long research I found the "bug". LUA Sound is working as designed!

    As I wrote before I have two sound cards. One is the C-Media (four channels) and the other is the Realtek Audio 5.1 (six channels).

    The Realtek was configured with 6 speakers and what happened? LUA was playing always on the Center Speaker, which was NOT connected.

    The Realtek sound card was running in a 2 box stereo HARDWARE configuration without correct SOFTWARE configuration.

    More details of my research see in attached pdf file.

    The difference between FS9 and FSX behaviour (I reported before) was due to different default sound card assignments in Windows XP sound config.

    Additionally I found that in FSX sound section we have two entries for sound devices, which I could assign different GUIDs.

    Now I hear the engine sound via one sound card and the pilots and controller voice via another sound card (see details in attached paper).

    It is still open to me to assign two sound cards in FS9 ??????? Can somebody help??

    Thanks for your help

    Regards

    Alhard

    PS: I used your additional debug feature during my research. Thanks.

    Sound Tests.pdf

  11. There's no difference in the DirectSound code ..........................

    Regards

    Pete

    Pete, I will try all what you proposed.

    In the meantime I started testing with FSX. Surprisingly device 2 sounds (which is default sound) but not device 3 ??!!

    Question: can I change in FS9/X.CFG the sound device? Where can I find descriptions fro the "SOUND" parameter there??

    regerds

    Alhard

  12. Okay. I fixed it by making the sound playing routine run in the main FS thread.

    Hi Pete, good to hear from again you after your absence.

    I tested your new update for FS9 (version 3.989e) but without success. Tests on FSX will follow later these days.

    As you can read, I tested with two soundcards and on soundcard 2 (device 3) sound works. I changed all possible devices, but no sound on main sound card (device 2).

    My PC runs with XP SP2 and FS9.1

    Here is my code and log:

    Sound section in FSUIPC.INI

    [Sounds]
    Path=Y:\FS9\Sound\
    Device1=Primärer Soundtreiber
    Device2=Realtek HD Audio output
    Device3=C-Media PCI Audio
    

    LUA script

    -- "PlaySound" V1 example LUA plug-in, by AH, 10-10-16
    -- 
    --set message window to left side
    ipc.setdisplay(0)
    ipc.setdisplay(20,100,500,500)
    --show message for tracing
    ipc.lineDisplay("",0)						-- Display löschen und warten
    ipc.sleep(2000)
    ipc.lineDisplay("sound starts",1)			-- message line 1
    --
    -- now sound to be played
    --
     ref = sound.play("barn_fx.wav",3)	    		--sound played on device 3
      while sound.query(ref) do
             ipc.sleep(3000)
      end  
    --
    ipc.lineDisplay("sound starts now device 3 rear speaker",2)		-- message line 2
    --
    ref = sound.play("caapdis.wav",3,90,180)			--sound played on device 3 rear
      while sound.query(ref) do
             ipc.sleep(3000)
      end  
    --
    ipc.lineDisplay("sound starts now device 2",3)		-- message line 3
    ref = sound.play("barn_fx.wav",2)					--sound played on device 2
      while sound.query(ref) do
             ipc.sleep(3000)
      end  
    --
    --show message for tracing
    ipc.lineDisplay("sound ends",5)						-- message line 5
    

    LUA LOG file

    ********* LUA: "ahPlaySound" Log [from FSUIPC version 3.989e] *********
      3186750 System time = 19/10/2010 13:49:13, FS2004 time = 16:07:13 (14:07Z)
      3186750 LUA: 0
      3186750 LUA: Y:\FS9\MODULES\ipcDebug.lua
      3186750 LUA: return
      3186766 LUA: 
    
      3186766 LUA: 0
      3186766 LUA: Y:\FS9\MODULES\ipcDebug.lua
      3186766 LUA: call
      3186766 LUA: 
    
      3186766 LUA: Y:\FS9\MODULES\ipcDebug.lua:38
      3186766 LUA: beginning "Y:\FS9\MODULES\ahPlaySound.lua"
      3186766 LUA: Y:\FS9\MODULES\ahPlaySound.lua:4
      3186766 LUA: Y:\FS9\MODULES\ahPlaySound.lua:5
      3186782 LUA: Y:\FS9\MODULES\ahPlaySound.lua:7
      3186782 LUA: Y:\FS9\MODULES\ahPlaySound.lua:8
      3188782 LUA: Y:\FS9\MODULES\ahPlaySound.lua:9
      3188782 LUA: Y:\FS9\MODULES\ahPlaySound.lua:13
      3188797 LUA: Y:\FS9\MODULES\ahPlaySound.lua:14
      3188813 LUA: Y:\FS9\MODULES\ahPlaySound.lua:15
      3191813 LUA: Y:\FS9\MODULES\ahPlaySound.lua:14
      3191813 LUA: Y:\FS9\MODULES\ahPlaySound.lua:15
      3194813 LUA: Y:\FS9\MODULES\ahPlaySound.lua:14
      3194813 LUA: Y:\FS9\MODULES\ahPlaySound.lua:18
      3194813 LUA: Y:\FS9\MODULES\ahPlaySound.lua:20
      3194828 LUA: Y:\FS9\MODULES\ahPlaySound.lua:21
      3194844 LUA: Y:\FS9\MODULES\ahPlaySound.lua:22
      3197844 LUA: Y:\FS9\MODULES\ahPlaySound.lua:21
      3197844 LUA: Y:\FS9\MODULES\ahPlaySound.lua:25
      3197844 LUA: Y:\FS9\MODULES\ahPlaySound.lua:26
      3197860 LUA: Y:\FS9\MODULES\ahPlaySound.lua:27
      3197860 LUA: Y:\FS9\MODULES\ahPlaySound.lua:28
      3200860 LUA: Y:\FS9\MODULES\ahPlaySound.lua:27
      3200875 LUA: Y:\FS9\MODULES\ahPlaySound.lua:28
      3203875 LUA: Y:\FS9\MODULES\ahPlaySound.lua:27
      3203875 LUA: Y:\FS9\MODULES\ahPlaySound.lua:32
      3203891 LUA: ended "Y:\FS9\MODULES\ahPlaySound.lua"
      3203891 System time = 19/10/2010 13:49:30, FS2004 time = 16:07:30 (14:07Z)
    ********* LUA execution terminated: Log Closed *********
    

  13. ....my little playSound() function now:

    Hi all,

    I read all the FSUIPC-LUA documentation and this thread.

    I wrote a LUA script for playing a sound, but nothing to hear ! :-( ! Please help.

    Here is my code started by key press in FS9 running:

    -- "PlaySound" example LUA plug-in, by AH, 10-10-13
    -- 
    -- require("sound") necessary ???
    -- require("fsuipc")not necessary
    --
    --set message window to left side
    ipc.setdisplay(10,500,200,200)
    --
    --show message for tracing
    ipc.lineDisplay("sound starts",1)
    --
    -- now sound to be played
    --
    --test command line frozen
    --ValRet=sound.play("barn_fx.wav",0,90,-1)
    sound.playloop("Y:\FS9\Sound\barn_fx.wav")
    --
    --show message for tracing
    ipc.lineDisplay("sound ends",5)
    

    and here is the debug logfile:

    ********* LUA: "ahPlaySound" Log [from FSUIPC version 3.989c] *********
      3660359 System time = 14/10/2010 21:35:03, FS2004 time = 16:09:03 (14:09Z)
      3660359 LUA: 0
      3660359 LUA: Y:\FS9\MODULES\ipcDebug.lua
      3660375 LUA: return
      3660375 LUA: 
    
      3660375 LUA: 0
      3660375 LUA: Y:\FS9\MODULES\ipcDebug.lua
      3660375 LUA: call
      3660375 LUA: 
    
      3660375 LUA: Y:\FS9\MODULES\ipcDebug.lua:38
      3660375 LUA: beginning "Y:\FS9\MODULES\ahPlaySound.lua"
      3660375 LUA: Y:\FS9\MODULES\ahPlaySound.lua:7
      3660390 LUA: Y:\FS9\MODULES\ahPlaySound.lua:10
      3660390 LUA: Y:\FS9\MODULES\ahPlaySound.lua:16
      3660390 LUA: Y:\FS9\MODULES\ahPlaySound.lua:19
      3660406 LUA: ended "Y:\FS9\MODULES\ahPlaySound.lua"
      3660406 System time = 14/10/2010 21:35:03, FS2004 time = 16:09:03 (14:09Z)
    ********* LUA execution terminated: Log Closed *********
    

    All messages are shown but NO SOUND!! What is wrong?? What should I test?

    BTW the sound from FS9 is played properly in parallel to the script.

    Thanks and regards

    Alhard

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.