Jump to content

Tutorial for creating persistent campaigns


Death Merchant

Recommended Posts

Is there a tutorial or other resources for learning how to create a persistent campaign.

I'm currently learning how to create missions. I have a background in coding and I am in the process of learning LUA.
I would love to be able to create persistent campaigns but have not been able to find any information on how to create them.

 

Thanks

[PC] ASUS X570E - Ryzen 9  5950X - RX 6900 XT - 32GB 3600Mhz

Hornet, A-4E-C, Huey, Ka-50, Mi-8, F-15E, F-14

Join us on Death Dealers PvE server.

Link to comment
Share on other sites

I would say find good tutorial to learn the DCS MOOSE api. From there, you will understand the code behind the campaign/missions ...

 

The difference between standard missions and dynamic campaign is that the dynamic campaign will generate mission file on the fly before starting the game. But the mission content will have the same format as a normal mission.

 

 


Edited by Frag
Link to comment
Share on other sites

I've climbed this mountain, and it's not easy.  

 

The methodology I used was based on Pikey's simple saving scripts for both groups and statics. 

 

They basically work by writing a serialized save file (lua table) consisting of every unit on the map in an interval.

 

On restart, it creates a set of every unit/group/static and removes them. They are then replaced by the written file.

 

I had to highly modify them, to ignore groups & units with certain names that I specifically didn't want to be persistent, or things that just didn't work well (like persistent cargo objects, moving vehicles, etc.). 

 

Many other entities need to be managed as one-offs as well - CSARs, CTLD fobs, FARPs, etc. 

 

But it absolutely can be done.  

 

And it truly does work fantastically. Our campaign server restarts every morning (reboots) and it comes up and loads the campaign mission. Everything is exactly how it was left the last time someone flew on it.

 

 

  • Like 1

 

Banner EDForum2020.jpg

Have fun. Don't suck. Kill bad guys. 👍

https://discord.gg/blacksharkden/

Link to comment
Share on other sites

  • Recently Browsing   0 members

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