chromium Posted August 18, 2016 Author Share Posted August 18, 2016 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. 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 More sharing options...
Pikey Posted August 18, 2016 Share Posted August 18, 2016 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 More sharing options...
Drexx Posted August 18, 2016 Share Posted August 18, 2016 The autosave cant save a mission in use (file is locked), so ciribobs would need to copy the mission and load the copy. Developer of DDCS MP Engine, dynamicdcs.com https://forums.eagle.ru/showthread.php?t=208608 Link to comment Share on other sites More sharing options...
chromium Posted August 19, 2016 Author Share Posted August 19, 2016 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). 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 More sharing options...
Pikey Posted August 19, 2016 Share Posted August 19, 2016 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 More sharing options...
chromium Posted August 19, 2016 Author Share Posted August 19, 2016 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. 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 More sharing options...
Drexx Posted August 21, 2016 Share Posted August 21, 2016 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 More sharing options...
chromium Posted August 21, 2016 Author Share Posted August 21, 2016 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. 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 More sharing options...
Pikey Posted August 21, 2016 Share Posted August 21, 2016 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 More sharing options...
Pikey Posted August 31, 2016 Share Posted August 31, 2016 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 More sharing options...
chromium Posted August 31, 2016 Author Share Posted August 31, 2016 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. 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 More sharing options...
chromium Posted September 22, 2016 Author Share Posted September 22, 2016 Update: till friday 30/09, Small hardware issue :S Inviato dal mio SM-G850F utilizzando Tapatalk 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 More sharing options...
chromium Posted October 15, 2016 Author Share Posted October 15, 2016 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ù: 1 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 More sharing options...
Gaanalma Posted October 15, 2016 Share Posted October 15, 2016 Great Work! THX Chromium [sIGPIC][/sIGPIC] www.36stormovirtuale.net Link to comment Share on other sites More sharing options...
NECK Posted October 15, 2016 Share Posted October 15, 2016 Looking very good! Thanks for your contribution! "When once you have tasted flight, you will forever walk the earth with your eyes turned skyward for there you have been, and there you will always long to return" 132nd Public documents - Want to apply? - 132nd Youtube channel - 132nd Discord Channel Link to comment Share on other sites More sharing options...
Zaz0 Posted October 15, 2016 Share Posted October 15, 2016 OMG my wet dreams... :P thanks! Link to comment Share on other sites More sharing options...
Pikey Posted October 15, 2016 Share Posted October 15, 2016 Looks amazing will try shortly! ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING * Link to comment Share on other sites More sharing options...
chromium Posted October 15, 2016 Author Share Posted October 15, 2016 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 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 More sharing options...
Pikey Posted October 16, 2016 Share Posted October 16, 2016 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 More sharing options...
chromium Posted October 16, 2016 Author Share Posted October 16, 2016 I might need to change again. Will see what i can do. Inviato dal mio SM-G850F utilizzando Tapatalk 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 More sharing options...
chromium Posted October 16, 2016 Author Share Posted October 16, 2016 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. 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 More sharing options...
reise_caparzo Posted November 6, 2016 Share Posted November 6, 2016 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 More sharing options...
chromium Posted November 6, 2016 Author Share Posted November 6, 2016 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. 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 More sharing options...
chromium Posted November 12, 2016 Author Share Posted November 12, 2016 Save Mission have been updated to 1.5.5 :) 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 More sharing options...
HiJack Posted November 12, 2016 Share Posted November 12, 2016 Nice! :D Link to comment Share on other sites More sharing options...
Recommended Posts