Jump to content

Recommended Posts

Posted (edited)

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
Posted

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?

  • 6 months later...
Posted

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.

  • 1 month later...
Posted

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.

  • Recently Browsing   0 members

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