Hummersepp Posted August 23, 2019 Posted August 23, 2019 Double check you put the campaign in correct folder. All kinds of nastiness may happen if that's not correct. If you modified any text files, make sure they were edited in a script editor like notepad++ Thank you very much for your feedback. However, I have installed everyting in the correct folder and I have not modified any script files .... I still have the issue and do not know why?!?!
D3adCy11nd3r Posted August 24, 2019 Posted August 24, 2019 Sorry, I flew a mission yesterday then got busy. The script does work, the failures do happen [YAY] However this morning when I tried to generate a mission I get "Generating First Mission. 07:40h passed. Next mission scheduled at: 08:40, 6.4.2001. METAR 060840 00006KT CAVOK NSW SKC Q1035= Please Wait... possible failure FR24RADIO 1H10 Durée 48 probability: 54 possible failure HYD_PUMP_2_FAIL_100 1H35 Durée 31 probability: 82 possible failure MAINGENERATOR 1H56 Durée 41 probability: 25 possible failure BCKGYRO 0H48 Durée 4 probability: 80 possible failure ELEVONSERVINNERLEFT 0H5 Durée 29 probability: 9 ..\..\..\..\..\..\..\bin\luae.exe: Scripts/ATO_Generator.lua:44: attempt to index field '?' (a nil value) stack traceback: Scripts/ATO_Generator.lua:44: in main chunk [C]: in function 'dofile' Scripts/MAIN_NextMission.lua:156: in main chunk [C]: in function 'dofile' Scripts/BAT_FirstMission.lua:195: in main chunk [C]: ? I:\SteamLibrary\steamapps\common\DCSWorld\Mods\aircraft\FA-18C\Missions\EN\Campaigns\Hornet over PG>" Have not changed anything. When I remove the script chunk it works.
Miguel21 Posted August 24, 2019 Posted August 24, 2019 Ok, change these lignes local id_failed = math.random(0, n) local m = 0 Like this local id_failed = math.random(1, n) local m = 1 Then generate a new mission with SkipMission.bat If it starts again, copy here the line incriminated by the error (In your case, the error was on line 44 of ATO_Generator.lua) FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
Miguel21 Posted August 24, 2019 Posted August 24, 2019 Hi Folks, Hope that I am i the right Forum and someone can help me. My issue relates to the F18 Module in connection with the DCE campaigns. I finished a campaign mission and press ESC and „Quit“. For the Harrier or Tomcat DCE Campaigns everything works as expected after that which means that the Standard DCS de-Briefing screen will be displayed where I can see my mission results. At the same time the DOS window open where I can accept the mission results (or not) and the text editor also with the mission results. Unfortunately this does not work in the F18 Hornet DCE Campaigns and I do not now why. When I finished a mission and press ESC and „Quit“ I see the black loading screen with the DCS Logo. In the background the DOS window and the Text file from the DCE Campaigns opens as well but that‘s it. I can accept the mission and DCE generates a new one. But I cannot press the „End Mission“ Button as i do not see it but only the Black Screen. The Game will not continue and I Need to restart DCS. I thought that maybe I accept the mission, generate a new one and restart DCS May help but unfortunately not. I still can only play the mission I flew last also DCE generate a new one. As said before this only applies to the DCE campaign and F18. All other DCS modules work perfectly with the DCE Campaigns. I also do not have this issue in Single missions or the static Campaigns for the F18, i.e. Everything works perfectly there. Thus and in my opinion this must relate to the DCE Campaign. I also re-installed the Campaigns but nothing helped. I Play the DCE campaigns in the latest version actualy published on the website. Hope someone has an idea as I Love the Dynamic Campaigns (and the Hornet) very much. Thank you all in advance and Kind regards. Hummersepp Can you post the log of dcs following the crash of your end of mission Then, can you give us the version of the campaign and especially the version of the script? (S11.0.7?) Finally, when the mission generation fails at the end of a mission, you can relaunch it via DEBUG_DebriefMission.bat ( It takes the temporary files of your last mission into account : camp_status MissionEventslog Scen_destroyed ) FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
D3adCy11nd3r Posted August 24, 2019 Posted August 24, 2019 If it starts again, copy here the line incriminated by the error (In your case, the error was on line 44 of ATO_Generator.lua) Okay changed the code now I am getting "..\..\..\..\..\..\..\bin\luae.exe: Scripts/ATO_Generator.lua:1: unexpected symbol near '∩'" Followed by the traceback When i run the skip mission it does not generate just closes. So inputs would be [y] and then [enter] and it shuts the window down. No errors thrown on skip mission.
Miguel21 Posted August 24, 2019 Posted August 24, 2019 strange Download this file if you can: https://www.dropbox.com/s/9drtz3yd29mv5j5/ATO_Generator.lua?dl=0 FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
D3adCy11nd3r Posted August 24, 2019 Posted August 24, 2019 "Generating First Mission. 10:02h passed. Next mission scheduled at: 11:02, 6.4.2001. METAR 061102 14008KT CAVOK NSW SCT168 Q1007= Please Wait... possible failure ELEVONSERVINNERRIGHT 1H19 Durée 52 probability: 90 possible failure RWRANTREAR 0H51 Durée 16 probability: 47 possible failure DOPPLER_UNIT 0H7 Durée 4 probability: 46 possible failure GTS 1H21 Durée 28 probability: 77 possible failure Failure_PP_EngL_Nozzle_CS 0H13 Durée 21 probability: 29 possible failure AOASENSOR 0H28 Durée 33 probability: 2 possible failure ELEVONSERVOUTERRIGHT 1H44 Durée 35 probability: 73 possible failure BACKUPGENERATOR 0H8 Durée 45 probability: 29 ..\..\..\..\..\..\..\bin\luae.exe: Scripts/ATO_Generator.lua:45: attempt to index field '?' (a nil value)" So it gets further than the file I had
Miguel21 Posted August 24, 2019 Posted August 24, 2019 (edited) Haha, pretty the formalism of DCS, you think it's always the same way, well no ... ^^ Most failures have a resumed identifier (ID) and others, no ... So reload the file and it should do it, sorry for the tests ... EDIT: new file https://www.dropbox.com/s/qk13ckkf7vkquoa/ATO_Generator.lua?dl=0 Edited August 24, 2019 by Miguel21 FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
D3adCy11nd3r Posted August 24, 2019 Posted August 24, 2019 Alright, that one broke it more. First mission closes just like the skipmission batch was doing earlier [and still does] No error thrown, just closes the window.
Miguel21 Posted August 24, 2019 Posted August 24, 2019 (edited) Oups, bad file, Upload a new file https://www.dropbox.com/s/qk13ckkf7vkquoa/ATO_Generator.lua?dl=0 Edited August 24, 2019 by Miguel21 FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
Miguel21 Posted August 24, 2019 Posted August 24, 2019 If the DOS window closes without giving any info, you have to right click on the file firstmission.bat (and skipmission.bat) edit with notepad, delete the word "& exit" start "Generate First Mission" cmd / k ".. \ .. \ .. \ .. \ .. \ .. \ .. \ bin \ luae.exe Scripts / BAT_FirstMission.lua & exit" like this start "Generate First Mission" cmd / k ".. \ .. \ .. \ .. \ .. \ .. \ .. \ bin \ luae.exe Scripts / BAT_FirstMission.lua" saves Sorry for the file above, I juggle with a script exclusively for you and the same script (modified) for DCE FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
D3adCy11nd3r Posted August 24, 2019 Posted August 24, 2019 Alright. I reinstalled hornet over PG 11.0.4 then updated the scripts to 11.0.7, verified that that will create a first mission with the few modifications I make on every campaign [hot start off, intercept hot start off, prune level 2 and prune static true.] Then installed the last ATO Generator script, now I am getting "..\..\..\..\..\..\..\bin\luae.exe: Scripts/DC_Prune.lua:1: unexpected symbol near '∩'" after selecting the task so in puts are [3] then it throws the error No need to apologize for the testing, I asked for this feature LOL I am more than happy to help you out with testing it
Miguel21 Posted August 24, 2019 Posted August 24, 2019 It's a shame to have to restart the campaign at the beginning, I hope you saved it;) I think you have an encoding problem with Notepad + Make sure encoding is set to UTF-8 or ANSI. I'm not sure why it would be different for you, but it's the only problem I can really think of. https://scriptinghelpers.org/questions/68044/unexpected-symbol-near-how-to-fix FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
D3adCy11nd3r Posted August 24, 2019 Posted August 24, 2019 Holy WTF LOL The prune script had been changed to UTF-8 BOM I did not even know that button was there. But it is working so.. Awesome. Thank you for your help
Miguel21 Posted August 24, 2019 Posted August 24, 2019 Glad it's finally working ... ^^ Good flight with DCE :pilotfly: FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
Hummersepp Posted August 24, 2019 Posted August 24, 2019 (edited) Thank you I use Script 11.0.7. attached are the log file Edited August 24, 2019 by Hummersepp
Hummersepp Posted August 24, 2019 Posted August 24, 2019 2019-08-24 14:22:47.116 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 0.900000. Update lod buffers. 2019-08-24 14:22:47.117 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:22:47.117 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:23:18.893 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 1.000000. Update lod buffers. 2019-08-24 14:23:18.894 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:23:18.894 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:23:23.359 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 0.900000. Update lod buffers. 2019-08-24 14:23:23.360 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:23:23.360 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:23:31.946 INFO DX11BACKEND: Unloaded 170 mb of textures. 2019-08-24 14:24:01.139 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 1.000000. Update lod buffers. 2019-08-24 14:24:01.140 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:24:01.140 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:24:02.877 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 0.900000. Update lod buffers. 2019-08-24 14:24:02.878 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:24:02.878 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:24:03.657 INFO Lua: Lua CPU usage: metric: average mission execution: 0.8169 % 2019-08-24 14:24:10.079 INFO Dispatcher: Stop 2019-08-24 14:24:10.726 INFO Config: netview stopped 2019-08-24 14:24:10.770 INFO DCS: wcTanker::onEvent:5 2019-08-24 14:24:10.770 INFO EDCORE: (wcTanker::Channel)enterToState_:6 2019-08-24 14:24:10.770 WARNING LOG: 1 duplicate message(s) skipped. 2019-08-24 14:24:10.770 INFO EDCORE: (wcTanker)enterToState_:3 2019-08-24 14:24:10.770 INFO DCS: wcTanker::onEvent:5 2019-08-24 14:24:10.770 INFO EDCORE: (wcTanker::Channel)enterToState_:6 2019-08-24 14:24:10.770 INFO EDCORE: (wcTanker)enterToState_:3 2019-08-24 14:24:10.856 INFO TERRAIN: lSystem::CleanScenes() 2019-08-24 14:24:10.870 INFO VISUALIZER: StopSimulation 2019-08-24 14:24:10.875 INFO VISUALIZER: Stopped collection of statistic. 2019-08-24 14:24:10.906 INFO EDCORE: (dDispatcher)enterToState_:3 2019-08-24 14:24:10.978 INFO VISUALIZER: TerrainRenderer::release 2019-08-24 14:24:35.063 INFO DCS: Screen: Campaign
Bloody_gums Posted August 24, 2019 Posted August 24, 2019 Hello. I love dce however only briefly got it working ages ago for the original guardians campaign. My fianacial sitautions been really really tough - in fact im torn right nowbas im soo close to getting the ww2 assets and normany but dont hace enough for a 109 or fw :( :( I digress - i got the f14 campaign to work. JOY! EXCEPT i end mission and a error boxnappears. I can screen and post. Oddly the campaognworks and progresses after. Help pls?
Miguel21 Posted August 24, 2019 Posted August 24, 2019 Hello. I love dce however only briefly got it working ages ago for the original guardians campaign. My fianacial sitautions been really really tough - in fact im torn right nowbas im soo close to getting the ww2 assets and normany but dont hace enough for a 109 or fw :( :( I digress - i got the f14 campaign to work. JOY! EXCEPT i end mission and a error boxnappears. I can screen and post. Oddly the campaognworks and progresses after. Help pls? Hello ;) If you have the error box: You did not install the DCE_Missionscript_mod or you have installed the wrong place or the OpenBeta updates we broke You need to use OvGME (https://forums.eagle.ru/showpost.php?p=3594613&postcount=29) or JSGME (https://forums.eagle.ru/showthread.php?t=98607). The "DCE_Missionscript_mod" folder provided will also modify MissionScripting.lua file in "DCS World OpenBeta\Scripts", preventing you to make this modification manually after each update : Not needed anymore with OvGME or JSGME Mods Folder !!! ============ Open the file "DCS World OpenBeta\Scripts\MissionScripting.lua". Add two minus signs in front of line 16 "sanitizeModule('os')" and line 17 "sanitizeModule('io')". The code block from line 16 to line 20 should then look like this: --sanitizeModule('os') --sanitizeModule('io') sanitizeModule('lfs') require = nil loadlib = nil This modification has to be repeated after each update of DCS World, as each update reverts the file back to its original state. WARNING: This modification will allow the execution of LUA code included in any downloaded custom mission that is potentially harmful to your system. Modification at your own risk. ====== Not needed anymore with OvGME or JSGME Mods Folder !!! Installation: ------------- 1. Extract the folder "EN" in the zip file to: "DCS World OpenBeta\Mods\aircraft\FA-18C\Missions". Ensure that the resulting folder structure is “...\FA-18C\Missions\EN\Campaigns\Hornet over PG\...”. 2. Extract the "DCE_Missionscript_mod" folder in your Mods OvGME or JSGME folder then activate this mod. In all cases, the file DCS World OpenBeta\Scripts\MissionScripting.lua Must have --sanitizeModule('os') --sanitizeModule('io') sanitizeModule('lfs') require = nil loadlib = nil FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
Miguel21 Posted August 24, 2019 Posted August 24, 2019 2019-08-24 14:22:47.116 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 0.900000. Update lod buffers. 2019-08-24 14:22:47.117 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:22:47.117 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:23:18.893 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 1.000000. Update lod buffers. 2019-08-24 14:23:18.894 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:23:18.894 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:23:23.359 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 0.900000. Update lod buffers. 2019-08-24 14:23:23.360 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:23:23.360 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:23:31.946 INFO DX11BACKEND: Unloaded 170 mb of textures. 2019-08-24 14:24:01.139 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 1.000000. Update lod buffers. 2019-08-24 14:24:01.140 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:24:01.140 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:24:02.877 INFO EDTERRAINGRAPHICS41: forestDistanceFactor has been changed to 0.900000. Update lod buffers. 2019-08-24 14:24:02.878 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectDeclBuffer() 2019-08-24 14:24:02.878 INFO EDTERRAINGRAPHICS41: InstanceManager2::updateObjectLodDeclBuffer() 2019-08-24 14:24:03.657 INFO Lua: Lua CPU usage: metric: average mission execution: 0.8169 % 2019-08-24 14:24:10.079 INFO Dispatcher: Stop 2019-08-24 14:24:10.726 INFO Config: netview stopped 2019-08-24 14:24:10.770 INFO DCS: wcTanker::onEvent:5 2019-08-24 14:24:10.770 INFO EDCORE: (wcTanker::Channel)enterToState_:6 2019-08-24 14:24:10.770 WARNING LOG: 1 duplicate message(s) skipped. 2019-08-24 14:24:10.770 INFO EDCORE: (wcTanker)enterToState_:3 2019-08-24 14:24:10.770 INFO DCS: wcTanker::onEvent:5 2019-08-24 14:24:10.770 INFO EDCORE: (wcTanker::Channel)enterToState_:6 2019-08-24 14:24:10.770 INFO EDCORE: (wcTanker)enterToState_:3 2019-08-24 14:24:10.856 INFO TERRAIN: lSystem::CleanScenes() 2019-08-24 14:24:10.870 INFO VISUALIZER: StopSimulation 2019-08-24 14:24:10.875 INFO VISUALIZER: Stopped collection of statistic. 2019-08-24 14:24:10.906 INFO EDCORE: (dDispatcher)enterToState_:3 2019-08-24 14:24:10.978 INFO VISUALIZER: TerrainRenderer::release 2019-08-24 14:24:35.063 INFO DCS: Screen: Campaign Is it really a log dcs following the end mission crash? Moreover, we do not see the entire log, I need you post on a sharing site and you give the link here. Finally, I read again your problem and for me, although DCS crashes, the new mission DCE has been well generated. The first and the second mission already exists (campaign_first.miz, campaign_ongoing.miz), after a mission, look at the dates of creation in windows, campaign_ongoing.miz must have changed date and time of creation To reveal the bug, you do not have to complete a mission, you can launch the mission and leave it after 5 to 15 minutes. FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
Bloody_gums Posted August 24, 2019 Posted August 24, 2019 Hello ;) If you have the error box: You did not install the DCE_Missionscript_mod or you have installed the wrong place or the OpenBeta updates we broke In all cases, the file DCS World OpenBeta\Scripts\MissionScripting.lua Must have --sanitizeModule('os') --sanitizeModule('io') sanitizeModule('lfs') require = nil loadlib = nil Thabk you but i put the minus signs in.it doesnt work. Whafs odd is campaign progresses and even damage is 'remembered'. Shall I play a mission and screen or if I cant screen take a pic on my phone of comp screen (lol) until I get screen shots working?
Miguel21 Posted August 24, 2019 Posted August 24, 2019 Yes, a screen plz ;) FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
Bloody_gums Posted August 25, 2019 Posted August 25, 2019 Here you go latest error. this happens every mission yet oddly usually campaigns progress. sometimes not at alll. please help, the mig 21 and other campaigns are amazing looking but an F14 campaign? Dynamic? dream come true. help please!
Miguel21 Posted August 25, 2019 Posted August 25, 2019 I confirm that it is a problem of DCE_Missionscript_mod incorrectly installed -1- give me the exact path of your MissionScripting.lua file -2- make me here a copy of the file MissionScripting.lua -3- Do you play on the OpenBeta or DCS world? FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
Bloody_gums Posted August 26, 2019 Posted August 26, 2019 Thanks for helping. Stand by (20 min) for the paths. Where shall I send my .lua file or should I try attaching it? Im 99.99 percent I play 2.5 open beta. Im gonna double check but my missionscriptong should be in dcs\scripts and in that folder. I opened with notepad and added the -- signs.
Recommended Posts