Jump to content

DAWS Save Mission


chromium
 Share

Recommended Posts

How do you set this up so that is saves the file, then if the server crashes or restarts on the same file name, it grabs the newest one.

 

You can't... or better, there is no such option at the moment.

 

When I try this, it cant open the mission file to overwrite it since the mission is using the file at the time. Trying to have an automated recovery situation (if the mission crashes, it restarts and loads the mission automatically through a macro script)

 

But if you use the autosave function, it should be possible. It was time ago. This is what you can try:

 

1. start a mission with autosave option enabled. After some mins (2 or 5, can't remember) the autosave is generated. Close the mission

2. rename the original mission with the autosave mission name, or use the autosave to restart the server.

 

Autosave is continously overwritten so it should work... if not, I don't have a proper solution at the moment.

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.

Link to comment
Share on other sites

  • Replies 442
  • Created
  • Last Reply

Top Posters In This Topic

Ciribob made an auto load mod that will automatically run your most recently played mission, the one at the top of the list. Since this will autosave to that all you need is a process to check if dcs is running and if not launch it. If you put that into startup then your server is fairly robust and needs little attention.

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Link to comment
Share on other sites

The autosave cant save a mission in use (file is locked), so ciribobs would need to copy the mission and load the copy.

 

this is different than what i saw in the very first test. I will look at this in the future to overcome the issue (a good way can be making DCS to open a copy of the file you choose to open, so that the original one remain unlocked).

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.

Link to comment
Share on other sites

Ah then thats a shame i thought it was overwriting ok. It might be a useful enhancement to have daws have two save games and alternate. I think i was using the on call function so didnt see this issue.

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Link to comment
Share on other sites

Ah then thats a shame i thought it was overwriting ok. It might be a useful enhancement to have daws have two save games and alternate. I think i was using the on call function so didnt see this issue.

 

I'm going to look at ciribob code in the future to understand it's solution to check the latest file. for sure I have to find a solution in the long term as the base Idea of Save Mission module is to be able to run the same mission saved every "n" hours to get a continously updated scenario.

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.

Link to comment
Share on other sites

Something I also found out and to maybe think of in the future, but I dont expect a fix because its between 2 scripts.

 

I am running CTLD from ciribob, and it saves the spawned units that CTLD spawns through slingloading. but then I load the saved file and the units are there but its disconnected from ctld, If you spawn a new crate and place it down, and go back to spawn another of the same crate (like 2 crates for a avenger), the original one you placed dissappears, truely weird behavior lol - the previous unsaved mission this does not happen.

 

Also CTLD script keeps tables on whats on the map, those dissappear, but I cant expect the save to save and reinstate those tables, dont worry about that, the one prob that stops me is the ctld, despawn crate thing.

Developer of DDCS MP Engine, dynamicdcs.com

https://forums.eagle.ru/showthread.php?t=208608

Link to comment
Share on other sites

Also CTLD script keeps tables on whats on the map, those dissappear, but I cant expect the save to save and reinstate those tables, dont worry about that, the one prob that stops me is the ctld, despawn crate thing.

 

I see that many users of Save Mission are using also CTLD. I already have in plan to keep in touch with Ciribob and a couple of other great mod maker to ensure that the next big step of Save Mission developement will be ok with their work... but first I need to obtain something solid to let them have a look (I'm almost halfway with that).

 

To achieve what you need it could be necessary that the other mod (CLTD) save a physical copy of those table inside the temp table where daws unzip the original miz files, and then update those table accordingly every time. Also, it should be needed that the mod check those file at each mission start to get them readed. While the part of reading the table file at each mission start is a work of the other modder, I might evaluate with them if it could be suitable that save mission check the presence of those table in the SSE and create & update itself the files. Not easy and no promise at the moment :), maybe in future.

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.

Link to comment
Share on other sites

Drex, post in Ciris ctld thread mate. He is active and will help you through that issue.

 

With ctld and daws and spawned ovjects there have been some improvements i think its more likely to have problems with tables of objects with many scripts now due to the actual core scripting system.

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Link to comment
Share on other sites

  • 2 weeks later...

Yeah, still looking for a way to overcome the problem of running the mission from autosave not working.

ERROR VFS: VFS_open_write: CreateFile(D:\Users\DCSADMIN\Saved Games\DCS\Missions/campaign.miz): The process cannot access the file because it is being used by another process.

Shame, until we can save the same mission file we use, we cannot autorecover as Drexx said above.

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Link to comment
Share on other sites

Yeah, still looking for a way to overcome the problem of running the mission from autosave not working.

ERROR VFS: VFS_open_write: CreateFile(D:\Users\DCSADMIN\Saved Games\DCS\Missions/campaign.miz): The process cannot access the file because it is being used by another process.

Shame, until we can save the same mission file we use, we cannot autorecover as Drexx said above.

 

I can try to produce a small update this weekend that will save a progressive autosave file... but I will leave the code to retrieve the latest saved one to other, for now. Sadly real life work is going to be really intese till friday 16/09.

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.

Link to comment
Share on other sites

  • 3 weeks later...

Update: till friday 30/09, Small hardware issue :S

 

Inviato dal mio SM-G850F utilizzando Tapatalk

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.

Link to comment
Share on other sites

  • 4 weeks later...

I had been away for a long time, I know... but I'm having a very interesting and busy time at work, so my free modding time was no more than few hours a week. Anyway I'm going to test and then release a new version of DAWS Save Mission, that will be renamed DAWS Package.

 

The main features of this release will be:

 

- Options menù available in game, so that you won't need to open a lua file to customize what you need.

- Autosave will save progressive numbered files, so that who needs to access the files during the sim it will be able to manage them.

 

Here's a couple of images of the menù:

 

DAWS_Package_1.jpg

 

DAWS_Package_2.jpg

  • Like 1

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.

Link to comment
Share on other sites

You can't: not released yet as specified in the post. I might complete internal tests from tomorrow to the next week :)

 

Inviato dal mio SM-G850F utilizzando Tapatalk

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.

Link to comment
Share on other sites

If it's not complete can I ask about the autosave? I'm looking for a way to reuse the last save game, but last time we couldn't use the same name as it wouldn't overwrite. You mentioned incremental numbering, this won't work with Ciribob's dedicated server script as it will look for the file to always be called the same. Is there a way we can programmatically rename the mission to the same original name in the same directory? I can probably write some script to do this, but ideally the mod should manage this option as its main strength is making a mission persistant through restarts. If it can make it so it will work with the script that reloads the updated mission automatically, it woudl make this the ideal companion I think. Thoughts?

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Link to comment
Share on other sites

I might need to change again. Will see what i can do.

 

Inviato dal mio SM-G850F utilizzando Tapatalk

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.

Link to comment
Share on other sites

If it's not complete can I ask about the autosave? I'm looking for a way to reuse the last save game, but last time we couldn't use the same name as it wouldn't overwrite. You mentioned incremental numbering, this won't work with Ciribob's dedicated server script as it will look for the file to always be called the same. Is there a way we can programmatically rename the mission to the same original name in the same directory? I can probably write some script to do this, but ideally the mod should manage this option as its main strength is making a mission persistant through restarts. If it can make it so it will work with the script that reloads the updated mission automatically, it woudl make this the ideal companion I think. Thoughts?

 

Pikey,

 

I'm going to send you a copy of testing version of DAWS save mission with a modification by PM. You will have only the usual DAWS_Autosave.miz file, but this file is a copy of a temp file that is removed as soon as the save is done. So, it's impossible that it is used by another process.

 

If this is not working, you should check folder permissions.

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.

Link to comment
Share on other sites

  • 3 weeks later...

Hi, first of all, Congratulations for this mod/script/add?, for me and my Virtual Scuadron this add totaly change DCS World, and i think that is a Must Have.

 

Unfortunately, since 1.5.5, when i try to host a game with SAVE Mission(the only mod i have in JSGME) the game goes to Black Screen when i try to host.

 

I hope guys you can fix it.

 

Again, rly thank for this AWESOME MOD!

Message deleted in 3,2,1 ....:thumbup:

Link to comment
Share on other sites

Unfortunately, since 1.5.5, when i try to host a game with SAVE Mission(the only mod i have in JSGME) the game goes to Black Screen when i try to host.

 

I'm waiting for 1.5.5 stable to investigate the issue and make a minor release.

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.

Link to comment
Share on other sites

Save Mission have been updated to 1.5.5 :)

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.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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