Jump to content

[NEED HELP FROM ED] Spawn a FARP using LUA


Recommended Posts

Hi, dear ED programmers !

 

I'm the maintainer of a scripts library used by my squad in our missions.

This library, among other things, allows for spawning units dynamically using map markers.

 

I've read this post and updated my veafSpawn.lua script to make spawning FARPs possible. 

That's a dream come true, because I've been trying to do this for some time, without success.

I think that recent changes in DCS code did something wonderful that allows FARPs to be spawned, thank you for this !

 

It's perfectly functional, I've made a small video to demonstrate.

Unfortunately, it does not work in multiplayer.

There is no error, no trace at all, nothing ; and no FARP is spawned.

 

I tried with an invisible FARP, a single standard FARP, a quad FARP... nothing.

It works perfectly in solo play, but not in multiplayer.

 

Could someone from the dev team please help me understand what happens ? 

 

I'm stuck, I don't even know what happens on the server ; no message is logged - even in the trace log :

log.set_output("dcs-trace", "", log.ALL + log.TRACE, log.MESSAGE + log.TIME_LOCAL + log.MODULE + log.LEVEL)

 

I've attached a debug version of my mission with logging and tracing enabled.

To test, simply run the mission, spawn in the UH-1H slot named "UH-1H test", go to the F10 map, create a map marker nearby and type `-farp` near your helicopter ; click outside of the map marker to validate your entry.

 

2021-03-31 13_13_03-Digital Combat Simulator.jpg

 

The FARP should spawn (along with the required units, and decorative things). This only works solo.

 

2021-03-31 13_13_10-Digital Combat Simulator.jpg

 

Thanks a lot !

Zip, VEAF.

veaf-demo-mission_20210331.miz


Edited by davidp57
added video

Zip - VEAF :pilotfly:

 

If you want to learn, talk and fly with french-speaking friends, the Virtual European Air Force is here for you ! Meet us on our Discord and our forum

If you're a mission creator, you may want to check the VEAF Mission Creation Tools (and its GitHub repository) a set of open-source scripts and tools that make creating a dynamic mission a breeze !

Link to post
Share on other sites

Hi, 

 

As far as I am aware spawning a FARP via script does not work as there is no birth event, it is reported, but I have no ETA on a solution. 

 

thanks

smallCATPILOT.PNG.04bbece1b27ff1b2c193b174ec410fc0.PNG

Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status

Windows 10 Pro x64, NVIDIA MSI RTX 2080Ti VENTUS GP, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 32GB DDR @3000, ASUS ROG Strix Z490-F Gaming, HP Reverb G2

Link to post
Share on other sites

Cool ; I'll test on 2.7 when it's available, and report here.

Thanks @BIGNEWY!

  • Like 1

Zip - VEAF :pilotfly:

 

If you want to learn, talk and fly with french-speaking friends, the Virtual European Air Force is here for you ! Meet us on our Discord and our forum

If you're a mission creator, you may want to check the VEAF Mission Creation Tools (and its GitHub repository) a set of open-source scripts and tools that make creating a dynamic mission a breeze !

Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...