Jump to content
The simFlight Network Forums

Bleedin

Members
  • Posts

    18
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Bleedin

  1. On 4/28/2019 at 8:47 AM, Fscats said:

    Was any progress made on getting Lua sockets to work with Fsuipc V5.  I would really like to be able to leverage this.

    Thanks much

    Evan

    As I reported in the thread: I have gotten socket (UDP, TCP) to work. Have successfully run code with UDP in two separate environments. Both with Fsuipc V5 and P3D V4.3 on win7.

  2. 5 hours ago, Pete Dowson said:

    And the Lua file doing your UDP exchange is running in FSUIPC5?

    If so, that is weird. I certainly don't think a 32-bit DLL can run in a 64-bit process.

    And things are getting weirder...
    Removed socket_core.dll and it still works.
    I have no other dll:s i the modules folder or its subfolders.
    I execute the script with a fsuipc "key press" so everything runs in FSUIPC 5.14.

  3. 1 minute ago, Pete Dowson said:

    Could you explain how, please? That "socket_core.dll" is definitely the 32-bit version. Are you using P3D4 and FSUIPC5?

    Yes, I am using P3D4 and FSUIPC5

    I just put socket.lua and a socket_core.dll in the modules folder.

    Required it with:

    local socket = require("socket")

    Have successfully tested to send UDP data

    • Thanks 1
  4. I got it working.

    Thank you!

    Quote

    Also, I noticed that you have to have a socket.lua and a socket_core.dll that may actually be the 64 bit DLL(?).  These go in the Modules root.

    But all I seem to need are socket.lua and a socket_core.dll in the modules folder (or the lua folder). At least as long as I only need Socket core, UDP and TCP.

  5. Thank you for your quick response. 

     

    I guess was a bit unclear. Sorry.

     

    When talking about "develop efficiently" I mean the actual developing/programming process. It's the fact that you need to bind the lua script you're working on to a keypress (or similar) to be able to execute it at will while you're developing/testing it. It is this part that I feel is a bit "clumsy".

     

    I suppose it is because the ipc library needs to run "inside" FSX there are limited ways to execute the scripts. I mean you can't use the windows command promt - right?

     

    It would be great if you could access the scripts by a console/promt/terminal and work with the scripts that way by using commands.

  6. Hello fellow simmers!

     

    I've been using lua in my FSX projects for some time now, and I love it. Simple yet powerful. Thank you Pete for implementing lua in fsuipc.

     

    But I can't really find a way to develop with it efficiently.

     

    While developing I often bind the lua scripts to be executed by key presses (often the numeric keys). And I use tail to keep an eye on the log file.

     

    This approach works but it feels a bit clumsy.

     

    Is there a better way of doing this?

     

    How do you develop? Do you have any tips, ideas or suggestions how one can develop more efficiently?

     

    Any thoughts on this Pete Dowson (or anyone)?

  7. Hello fellow simmers!

     

    I've been using lua in my FSX projects for some time now, and I love it. Simple yet powerful. Good work Pete! As always...

     

    But I can't find a way to develop with it efficiently.

     

    While developing I bind the lua scripts to key presses (often the numeric keys) and also "lua kill" and so forth.

    I use tail to keep an eye on the log file.

     

    This approach works but it feels clumsy.

     

    Wouldn't it be great if there were a console/teminal in fsuipc that gave the possibilities to list, execute and kill lua scripts and so forth?

     

    How do you work? Do you have any tips, ideas or suggestions?

  8. Thanks for the quick reply.

    I'm actually using FSX but on a rather powerful rig (i7@5ghz).

    I'm using the sleep function in a custom lib that plays sounds to a Teamspeak channel.

    The “play-function” returns the sound files duration witch I used in a ipc.sleep. I noticed the problem when new sounds began playing before the previous sound had finished.

    I guess I can solve this by multiply the duration by 1.1- but that will maybe get me new possible problems?

    Best regards

    Bleedin

  9. Hello Pete!

    I have a question about the Lua ipc.sleep function. I have noticed that longer "sleeps" seems a bit shorter than they should. For instance “a sleep” with a duration of 60 000 ms only lasts about 54 seconds.

    First I thought that it might be something wrong with my environment but after have tried it on another computer I can say it behaves the same way.

    Any idea about the reason for this?

    Thanks for a otherwise excellent product.

    Best regards

    Bleedin

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