Jump to content

Recommended Posts

Posted

We run our mission on a server that swaps to a specific instance for liberation missions, and then swaps back to a different server instance for general/public DCS missions.

The issue is that some times, before I have a chance to copy the Liberation state.josn file to a different folder, or rename it, the server starts with the same mission ( even though there are other missions listed) and overwrites the state.json file.

What I would like to do is copy the state.josn file to a different file about 45 to 60 seconds before the mission ends.

I know the basics of Lua, but not sure how to use lua to copy a file.  I can write to a file, just dln't know how to issue a command to copy a file.

Can anyone point me the a direction to do this.

Thanks

----------------

AKA_Clutter

 

Win 10 Pro, Intel i7 12700k @4.6 GHz, EVGA RTX 3080  FTW, Ultra 64 GB G.Skill DDR4 3600 RAM, Acer 27" flat screen, HP Reverb G2, TM Warthog HOTAS with Virpil warBRD base, MFG Rudder Pedals, Virpil TCS Rotor Base with AH-64Dcollective, TrackIR 5 Pro w/Vector Expansion, PointCTRL.

  • Recently Browsing   0 members

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