Death Merchant Posted May 21, 2021 Share Posted May 21, 2021 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 More sharing options...
Frag Posted May 24, 2021 Share Posted May 24, 2021 (edited) 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 May 24, 2021 by Frag Link to comment Share on other sites More sharing options...
fargo007 Posted May 26, 2021 Share Posted May 26, 2021 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. 1 Have fun. Don't suck. Kill bad guys. https://discord.gg/blacksharkden/ Link to comment Share on other sites More sharing options...
Pikey Posted May 26, 2021 Share Posted May 26, 2021 lookup "DSMC" in the mods section. Its a self contained plug and play engine for persistence, there's not another sensible option when just starting. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING * Link to comment Share on other sites More sharing options...
Recommended Posts