Jump to content

Send Lua script through socket


Avat

Recommended Posts

Hello,

 

I have connected to DCS using LuaSocket. I can receive information, but I'd like to send something.

 

So, let's say I want to send UDP message with a command:

trigger.action.outText("TEST MESSAGE", 10, 0)

 

Simple command like udp:receive() causes DCS to crash.

 

How to approach this?


Edited by Avat
Link to comment
Share on other sites

OK, I managed to send data to DCS and it's being received properly.

 

But still, the only thing I can send using sockets is string "trigger.action.outText("TEST MESSAGE", 10, 0)" - is there any possibility to make it work in mission?

Link to comment
Share on other sites

  • 6 months later...

I'm starting now tring to do the same thing, but I didn't even connect the socket... could you explain how did you connect DCS via luasocket?

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Link to comment
Share on other sites

  • 1 month later...

Thanks but I found another (ugly) solution :)

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...