Jump to content
The simFlight Network Forums

efratomer

Members
  • Posts

    76
  • Joined

  • Last visited

Posts posted by efratomer

  1. I was woundring how can I make a scenery model appear dynamiclly while inflight (FSX) - Such as a smoke beacon etc..

    Of course im talking about doing so via FSUIPC (or simconnect?).

    Not via FSUIPC. There are no facilities. You can manipulate objects via SimConnect, but rising smoke would be an effect, not an object.

    You may want to ask questions about objects and scenery in a different forum. If not here in SimFlight, there will be an appropriate one in AVSIM.

    Regards

    Pete

    So.. I understand that its possible...

    Thanks Pete, I'll continue investigate!

    Omer.

  2. Hi,

    Just wanted to update you guys that I have found a creative solution for this problem..

    What im doing is using a command in the mission editor called "Simvar Profile" which creates a file named "profile.xml" in the active mission dir and then I make my program search if that file exists and if so that means the mission was successfully finished while when I start the program it deletes that file and wait for it to be created.

    Thanks evryone!

    Omer.

  3. hello pete,

    I don't know if I can switch a light or something like that through the mission editor but even if I can it is still a problem because the pilot may switch it him self during flight.. Any idea of what switch I can use for best results?

    Anyway, I will check this posibbility when I will get back home although I had tried to avoid this solution.

    Thanks in advance,

    Omer.

  4. Hey pete,

    FSUIPC log writes "Running inside FSX (using SimConnect Acc/SP2 Oct07)" does that mean I running with no SP installed at all?

    Yes I did had an old version of the SDK and downloaded a new one which now supplies the Offsets Status as well.

    Anyway, I checked via FSInterrogate the offset 3364 - "ready to fly" flag and while FS is in the main menu it still returns 0

    Thanks in advance,

    Omer.

  5. Thanks for your response Pete!

    I am using FSX SP2 (I think.. Anywhere I can ensure it?)

    Where can I find that FSX Offsets Status document you are talking about?

    I have thought about generating the failures myself but had thought maybe there is something builtin because its still some system resources that I can save...

    Another issue that I have encountred is that the Ready To Fly flag doesn't apprear to be functional in FSX (always return 0 with FS Interogate) is that true? If so, what can I do instead of it?

    Thanks in advance,

    Omer.

  6. Hey,

    I'm using vb.net & FSUIPC to communicate with FSX.

    I'm making a failure generator of some kind and getting in some trouble with some of the failures exists in FSX.

    As I understand from the documents all failures are launched by writting 1 to the correct offset.

    I'm having some trouble with some of the failures though:

    Pitot at 0B71 - doesn't respond.

    Com1 at 0B68 - doesn't respond.

    Com2 at 3BDB - doesn't respond.

    Nav1 at 3BE1 - doesn't respond.

    Nav2 at 3BE2 - doesn't respond.

    Nav2 at 3BE2 - doesn't respond.

    Electrics at 0B6A - doesn't respond.

    Vaccum at 0B73 - doesn't respond.

    In addition, I haven't found some of the failures even in the documents:

    Static port, Rudder, Flaps, Oil leak, Fuel leak, Alieorns and elevator.

    Am I missing something?

    Thanks in advance,

    Omer.

  7. Hello guys,

    First, im sorry I wasn't around as I was in the army for the past 21 days.

    Now, It is obviously that this problem is not related to my private program that im building as this problem also occurs with the "BasicExample" program.

    I have tried the basic example program with a fresh install Windows 7 (Via Virtual PC) and have recived "BasicExample has stopped working" message.

    Please note that I haven't yet installed SimConnect.msi on that virtual PC, because, as I try double clickon the MSI file im getting the "Gathering Information" window and than it disappears and nothing happends...

    I'm sure there is something needed to be installed before the programs will work properly.

    Please help &Thanks in advance.

    Omer.

  8. Hello guys,

    I must say thanks! I have done fixes that you have showen me. Though, after the changes the SIM crashed as usual. But, after I had updated my FSUIPC version to the newest exists (3.85) it all worked well!

    I will just take care to check clients's FSUIPC verison and prompt as needed.

    Pete, Another question with your permission: You had mentioned I should specify the string length but I can't see how if the declaration of the offset is in the declaration area and if I put it everytime I use the offset I get an error: offset already exists.

    Any suggestions?

    Thanks in advance,

    Omer.

  9. Hello Pete & Paul,

    Sorry for the delay on replying as I wasn't at home.

    Pete, for your request I have enabled IPC write logging and started a new log file and reproduced the crash. the resulted log file is as follows:

    ********* FSUIPC, Version 3.71 by Pete Dowson *********

    Running inside FS2004(original release)

    User Name=""

    User Addr=""

    FSUIPC not user registered

    WIDEFS not user registered, or expired

    [Continuation log requested by user]

    Module base=61000000

    ClassOptions: UIPCMAIN=FF7F, FS98MAIN=FF7F, FS2KMAIN=FF5E

    WeatherOptions(Orig)=0000B027[0000B027]

    InitDelay: 0 seconds

    WeatherReadInterval=4

    LogOptions=00000005

    376125 System time = 02:08:04, FS2004 time = 02:04:10 (10:04Z)

    376125 LogOptions changed, now 00000005 (LogExtras=0)

    376532 WRITE0 7B91, 1 bytes: 00

    376953 WRITE0 7B91, 1 bytes: 00

    377438 WRITE0 7B91, 1 bytes: 00

    377922 WRITE0 7B91, 1 bytes: 00

    378438 WRITE0 7B91, 1 bytes: 00

    378938 WRITE0 7B91, 1 bytes: 00

    379422 WRITE0 7B91, 1 bytes: 00

    379922 WRITE0 7B91, 1 bytes: 00

    380438 WRITE0 7B91, 1 bytes: 00

    380953 WRITE0 7B91, 1 bytes: 00

    381438 WRITE0 7B91, 1 bytes: 00

    382000 WRITE0 7B91, 1 bytes: 00

    382453 WRITE0 7B91, 1 bytes: 00

    382922 WRITE0 7B91, 1 bytes: 00

    383453 WRITE0 7B91, 1 bytes: 00

    383969 WRITE0 7B91, 1 bytes: 00

    384453 WRITE0 7B91, 1 bytes: 00

    384922 WRITE0 7B91, 1 bytes: 00

    385453 WRITE0 7B91, 1 bytes: 00

    385938 WRITE0 7B91, 1 bytes: 00

    386422 WRITE0 7B91, 1 bytes: 00

    386953 WRITE0 7B91, 1 bytes: 00

    387453 WRITE0 7B91, 1 bytes: 00

    387922 WRITE0 7B91, 1 bytes: 00

    388453 WRITE0 7B91, 1 bytes: 00

    388938 WRITE0 7B91, 1 bytes: 00

    389422 WRITE0 7B91, 1 bytes: 00

    389985 WRITE0 7B91, 1 bytes: 00

    390547 WRITE0 7B91, 1 bytes: 00

    390938 WRITE0 7B91, 1 bytes: 00

    391438 WRITE0 7B91, 1 bytes: 00

    391985 WRITE0 7B91, 1 bytes: 00

    392422 WRITE0 7B91, 1 bytes: 00

    392953 WRITE0 7B91, 1 bytes: 00

    393422 WRITE0 7B91, 1 bytes: 00

    393953 WRITE0 7B91, 1 bytes: 00

    394422 WRITE0 7B91, 1 bytes: 00

    394953 WRITE0 7B91, 1 bytes: 00

    395422 WRITE0 7B91, 1 bytes: 00

    395953 WRITE0 7B91, 1 bytes: 00

    396438 WRITE0 7B91, 1 bytes: 00

    396953 WRITE0 7B91, 1 bytes: 00

    397438 WRITE0 7B91, 1 bytes: 00

    397953 WRITE0 7B91, 1 bytes: 00

    398438 WRITE0 7B91, 1 bytes: 00

    398922 WRITE0 7B91, 1 bytes: 00

    399438 WRITE0 7B91, 1 bytes: 00

    399953 WRITE0 7B91, 1 bytes: 00

    400438 WRITE0 7B91, 1 bytes: 00

    400922 WRITE0 7B91, 1 bytes: 00

    401438 WRITE0 7B91, 1 bytes: 00

    401922 WRITE0 7B91, 1 bytes: 00

    402438 WRITE0 7B91, 1 bytes: 00

    402922 WRITE0 7B91, 1 bytes: 00

    403438 WRITE0 7B91, 1 bytes: 00

    403922 WRITE0 7B91, 1 bytes: 00

    404438 WRITE0 7B91, 1 bytes: 00

    404953 WRITE0 7B91, 1 bytes: 00

    405438 WRITE0 7B91, 1 bytes: 00

    406000 WRITE0 3380, 128 bytes: 54 69 6D 65 72 20 68 61 73 20 62 65 65 6E 20 73

    406000 74 6F 70 70 65 64 21 20 49 6E 63 6F 72 72 65 63

    406000 74 20 70 6C 61 6E 65 20 74 79 70 65 2E 00 00 00

    406000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 WRITE0 3400, 32 bytes: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 WRITE0 3420, 8 bytes: 00 00 00 00 00 00 00 00

    406000 WRITE0 3428, 16 bytes: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 WRITE0 3438, 32 bytes: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 WRITE0 3458, 16 bytes: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 WRITE0 3468, 24 bytes: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    406000 00 00 00 00 00 00 00 00

    406000 WRITE0 32FA, 4 bytes: 0A 00 00 00

    406000 WRITE0 7B91, 1 bytes: 00

    406453 WRITE0 7B91, 1 bytes: 00

    406953 WRITE0 7B91, 1 bytes: 00

    407469 WRITE0 7B91, 1 bytes: 00

    407922 WRITE0 7B91, 1 bytes: 00

    408453 WRITE0 7B91, 1 bytes: 00

    408938 WRITE0 7B91, 1 bytes: 00

    409453 WRITE0 7B91, 1 bytes: 00

    409938 WRITE0 7B91, 1 bytes: 00

    410453 WRITE0 7B91, 1 bytes: 00

    410922 WRITE0 7B91, 1 bytes: 00

    411422 WRITE0 7B91, 1 bytes: 00

    411922 WRITE0 7B91, 1 bytes: 00

    412469 WRITE0 7B91, 1 bytes: 00

    413125 WRITE0 7B91, 1 bytes: 00

    413453 WRITE0 7B91, 1 bytes: 00

    413938 WRITE0 7B91, 1 bytes: 00

    414422 WRITE0 7B91, 1 bytes: 00

    414922 WRITE0 7B91, 1 bytes: 00

    415422 WRITE0 7B91, 1 bytes: 00

    415922 WRITE0 7B91, 1 bytes: 00

    416422 WRITE0 7B91, 1 bytes: 00

    And Paul, a small code snippest as you requested:

    Dim fsuipc_ground As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H366)
    Dim fsuipc_planetitle As Offset(Of String) = New FSUIPC.Offset(Of String)(&H3D00, 256)
    Dim fsuipc_writeTxt As Offset(Of String) = New FSUIPC.Offset(Of String)(&H3380, 256)
    Dim fsuipc_TextDelay As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H32FA)
    
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
                Try
                    FSUIPCConnection.Process()
                Catch ex As FSUIPCException
                    If ex.FSUIPCErrorCode = FSUIPCError.FSUIPC_ERR_SENDMSG Then
                        ConnectionTerminated()
                    Else
                        Throw ex
                    End If
                Catch ex As Exception
                End Try
                Plane_onGround = CBool(fsuipc_ground.Value)
                Plane_Title = fsuipc_planetitle.Value
        End Sub
    
        Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
                fsuipc_writeTxt.Value = "Timer has been stopped! Incorrect plane type."
                fsuipc_TextDelay.Value = 10.0F
                fsuipc_writeTxt.Disconnect(True)
                fsuipc_TextDelay.Disconnect(True)
        End Sub
    

    * Timer 1 is set to 1000 miliseconds interval.

    Thanks for your guys help!

    Omer.

  10. Hi Paul,

    First, I must say your DLL is running great!

    Although, I think I might have found a bug which crashs FS.

    I have built a program in vb.net which reads onGround flag and Aircraft's title evry 1 second.

    The problem occur when I change aircraft if I write a string to the offset &H3380 which is the text message offset..

    Improtant to say that this happens even if I dont write the &H32FA (text delay) offset so the text even not displayed.

    furthermore, all read & writes works great with out the text offset. In addition, disconnecting the offset after the write proccess doesn't help the issue.

    Is it really a bug or i'm doing something wrong?

    Thanks in advance,

    Omer.

  11. Hello,

    I am buidling a program that connects to Simconnect in vb.net.

    I have checked the program and it works great in my Windows XP PC>.

    When I copy it to my laptop (Vista OS) i'm getting the microsoft's error report (send \ don't send window) imideatly after I execute the EXE.

    I wan't to add that in the XP OS the program works great! So after I got this error I made some try and error tests to see which line in-code makes it.

    The line that result the error:

    fsx_simconnect = Nothing

    this is how fsx_simconnect variable is declared:

    Dim fsx_simconnect As SimConnect

    any Ideas?

    Thanks in advance,

    Omer.

  12. Problem solved!

    I have no idea what Ive done but the offsets return good values now, by the way when the problem was still exist I couldn't read ANY offset without it return 0. (I have tried 2 more offsets: the on ground & beacon lights)

    Any way, I have another question:

    Is there an offset that tells me when the simulator has finished loading the scenery or when is it loading ?

    I want my program to do some acts as soon as I finish loading a flight(meaning in the plane).

    Sorry for bad english.

    Thanks in advance,

    Omer.

  13. Hey Pete,

    Thanks for the quick reply. I have looked in the log and saw:

        95641  READ0 [P1236]  8320,   1 bytes: 00 
    

    for my read. It doesn't tell me much but maybe you can learn something from it.

    About what you are saying on the offset change issue by the compiler I hope another VB program could help me here.

    Thanks in advance,

    Omer.

  14. Hello,

    I am programing a software using VB6 to FS2004 and im trying to get from FSUIPC the view mode offset (8320) but im getting only a "0" back.

    My code:

        Dim dwResult As Long
        Dim tView As Byte
        Call FSUIPC_Read(&H8320, 1, VarPtr(tView), dwResult)
        Call FSUIPC_Process(dwResult)
    

    Can someone give me a push here?

    Thanks in advance,

    Omer.

  15. As I said before, and as documented, 3302 is set by user options, not by IPC writes -- the documentation explicitly says it is read-only. It is for user's to decide what they can read best.

    Where execly can a user set that?

    Thank you Pete!

    Registered users, in the 'miscellaneous' options; non-registered have to edit a parameter in the INI file.

    Please do check the FSUIPC user guide some time. It describes the user facilities including this one.

    Regards

    Pete

    Thank you very much for your help!

    Omer.

×
×
  • 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.