Surrexen Posted September 21, 2022 Author Share Posted September 21, 2022 On 9/20/2022 at 3:14 AM, markh said: i added moose ctld but there seems to be a problem with crates not showing in the menu, see my post above. Didn't even know they had CTLD in moose now, so I've got no idea sorry. Link to comment Share on other sites More sharing options...
markh Posted September 21, 2022 Share Posted September 21, 2022 its no problem, i added a couple files that are setup in the post i made. if you could take a quick look it would be appreciated. nice mission by the way, with ctld it could be awesome Link to comment Share on other sites More sharing options...
markh Posted September 21, 2022 Share Posted September 21, 2022 (edited) anyone else willing to take a look, files are on page 9, if you figure it out let me know thanks. i asked surrexen but reply was less than helpfull: "I can't really help you, as I didn't even know moose made a CTLD. There wasn't one available when I made mine. Sorry." its ok though i get it, probably had a million questions and got fed up with people hahaha. no hard feelings. Edited October 13, 2022 by markh Link to comment Share on other sites More sharing options...
Surrexen Posted September 23, 2022 Author Share Posted September 23, 2022 Operation Scarlet Dawn updated Minor update to correct some parking spot issues/changes at Bassel Al-Assad and Rene Mouawad airbases. Thanks TA_Findo for pointing it out. 1 Link to comment Share on other sites More sharing options...
Shadeslayers09 Posted October 10, 2022 Share Posted October 10, 2022 Is there a way to reset the map/mission? Link to comment Share on other sites More sharing options...
ZeroReady Posted October 10, 2022 Share Posted October 10, 2022 3 hours ago, Shadeslayers09 said: Is there a way to reset the map/mission? Just delete the 4 scarlet dawn luas in the main dcs folder. Link to comment Share on other sites More sharing options...
Antix70 Posted October 16, 2022 Share Posted October 16, 2022 @markh or @Surrexen I'm trying to add the UH-60L to access the Helo Operations menu, but can't find where the Helo Operations allowed aircraft are defined. A little help would be appreciated. I know just enough about MOOSE and LUA files to be dangerous I just need pointed in the right direction. Link to comment Share on other sites More sharing options...
phrogZ Posted October 23, 2022 Share Posted October 23, 2022 In i10n\DEFAULT\ look at the file named "something Helo Operations.lua" it should be in the function "function EventHandlerHeloBirth:onEvent(Event)", or just search the line if ( EventGroupType == "UH-1H" or EventGroupType == "Mi-8MT" or EventGroupType == "SA342L" or EventGroupType == "SA342M" or EventGroupType == "SA342Minigun" or EventGroupType == "SA342Mistral" or EventGroupType == "Ka-50" or EventGroupType == "Mi-24P" or EventGroupType == "AH-64D_BLK_II" ) then I guess if you add the getTypeName() of the UH-60L, it should work. Not sure but to give you an idea (I'm unsure of the typeName) : if ( EventGroupType == "UH-1H" or EventGroupType == "Mi-8MT" or EventGroupType == "SA342L" or EventGroupType == "SA342M" or EventGroupType == "SA342Minigun" or EventGroupType == "SA342Mistral" or EventGroupType == "Ka-50" or EventGroupType == "Mi-24P" or EventGroupType == "AH-64D_BLK_II" or EventGroupType == "UH-60L" ) then Link to comment Share on other sites More sharing options...
Surrexen Posted October 24, 2022 Author Share Posted October 24, 2022 @Antix70 @phrogZ As per above, UH-60L sounds right. I'm sure we've been through this earlier in the thread somewhere. Link to comment Share on other sites More sharing options...
Antix70 Posted October 29, 2022 Share Posted October 29, 2022 Yeah, I have added that exact text to the HeloOperations.lua, but it doesn't enable the F10/Other -> Helo Operations option in the 60. I'm wondering if this is because it's a community mod, and not a native DCS helicopter? On 10/23/2022 at 7:18 PM, Surrexen said: @Antix70 @phrogZ As per above, UH-60L sounds right. I'm sure we've been through this earlier in the thread somewhere. Link to comment Share on other sites More sharing options...
Surrexen Posted October 30, 2022 Author Share Posted October 30, 2022 On 10/29/2022 at 2:42 PM, Antix70 said: Yeah, I have added that exact text to the HeloOperations.lua, but it doesn't enable the F10/Other -> Helo Operations option in the 60. I'm wondering if this is because it's a community mod, and not a native DCS helicopter? Make sure you join spectators for about 10 seconds or so at mission start before joining a helo slot or the script won't have loaded up yet. It should work, doesn't matter it's not an 'official' helo or whatever. I don't personally use it, but I know it can work. Link to comment Share on other sites More sharing options...
mimamema Posted October 30, 2022 Share Posted October 30, 2022 I have a problem with helo operations as well since the update. I added 3 or 4 more FARPS to Clear Field and Snowfox, I modified your HeloOperations.lua adding the necessary triggers to the list of loading zones and they were working till 2.8 update arrived... here is the error that it gives to me attached. The symptoms are that if I ask to smoke the loading zone it´s working but no message is received, but as soon as I ask for troops or cargo containers nothing happens. As soon as I delete the lines related with the added FARPS, it works as always... I don´t get it. new 1.lua Link to comment Share on other sites More sharing options...
Surrexen Posted October 30, 2022 Author Share Posted October 30, 2022 7 minutes ago, mimamema said: I have a problem with helo operations as well since the update. I added 3 or 4 more FARPS to Clear Field and Snowfox, I modified your HeloOperations.lua adding the necessary triggers to the list of loading zones and they were working till 2.8 update arrived... here is the error that it gives to me attached. The symptoms are that if I ask to smoke the loading zone it´s working but no message is received, but as soon as I ask for troops or cargo containers nothing happens. As soon as I delete the lines related with the added FARPS, it works as always... I don´t get it. new 1.luaUnavailable If it's smoking the zone but not giving the message then something you changed is wrong. It won't let me download the lua to look at it. You've said it yourself though, if you remove the changes you made, it works. Make sure there are no typo's, like missing comma's etc. Link to comment Share on other sites More sharing options...
mimamema Posted October 30, 2022 Share Posted October 30, 2022 31 minutes ago, Surrexen said: If it's smoking the zone but not giving the message then something you changed is wrong. It won't let me download the lua to look at it. You've said it yourself though, if you remove the changes you made, it works. Make sure there are no typo's, like missing comma's etc. I agree but still confused as I already looked for those typo´s and I was trying even adding only one FARP at a time and still giving the same error. The names of the loading zones are copied straight forward from the editor. Sorry, here is the error and I guess that probably is no recognizing the zones that I´m adding: << 2022-10-30 21:40:15.332 INFO SCRIPTING (Main): 17504( -1)/I: DATABASE00003.function(Player 'Hippie Colgao' joint unit '2- Al Minhad AB - UH-1H 1' of group '2- Al Minhad AB - UH-1H 1') 2022-10-30 21:40:15.332 INFO SCRIPTING (Main): 12398( 17521)/I: SETTINGS05603.SetPlayerMenu(Setting menu for player Hippie Colgao) 2022-10-30 21:40:24.992 ERROR SCRIPTING (Main): [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:660: attempt to index a nil value stack traceback: [C]: ? [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:660: in function <[string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:651> 2022-10-30 21:40:54.040 ERROR wInfo (Main): can't open Objects[POLE] table 2022-10-30 21:40:54.040 INFO SCRIPTING (Main): 51484( -1)/E: CARGO_GROUP05504.function({[IniUnit]={[SceneryObject]={[id_]=486966097,},[ClassName]=SCENERY,[SceneryName]=486966097,},[initiator]=,[id]=8,[IniObjectCategory]=5,[IniUnitName]=486966097,[IniCategory]=4,[time]=68.724,[IniTypeName]=POLE_CRASH,[IniDCSUnit]=,[IniDCSUnitName]=486966097,}) 2022-10-30 21:40:54.040 INFO SCRIPTING (Main): 51484( -1)/E: CARGO_GROUP05460.function({[IniUnit]={[SceneryObject]={[id_]=486966097,},[ClassName]=SCENERY,[SceneryName]=486966097,},[initiator]=,[id]=8,[IniObjectCategory]=5,[IniUnitName]=486966097,[IniCategory]=4,[time]=68.724,[IniTypeName]=POLE_CRASH,[IniDCSUnit]=,[IniDCSUnitName]=486966097,}) 2022-10-30 21:41:39.733 ERROR SCRIPTING (Main): [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:466: attempt to index a nil value stack traceback: [C]: ? [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:466: in function 'SEF_INFANTRY_GETNEARESTINFANTRYZONE' [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:494: in function <[string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:487> 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): During the last 600.0s an average of 0 units objects and 0 ballistic objects have been active per frame 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): The average frame rate of 54.8fps would have been 54.9fps if the flight data recorder was disabled 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): DCS World simulation is taking 99.8% of CPU 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): DCS GetWorldObjects is taking 0.0% of CPU 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): Tacview recorder is taking 0.2% of CPU 2022-10-30 21:43:14.329 ERROR SCRIPTING (Main): [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:1259: attempt to index a nil value stack traceback: [C]: ? [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:1259: in function 'SEF_CARGO_GETNEARESTCARGOZONE' [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:1287: in function <[string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:1280> >> Link to comment Share on other sites More sharing options...
Surrexen Posted October 31, 2022 Author Share Posted October 31, 2022 1 hour ago, mimamema said: I agree but still confused as I already looked for those typo´s and I was trying even adding only one FARP at a time and still giving the same error. The names of the loading zones are copied straight forward from the editor. Sorry, here is the error and I guess that probably is no recognizing the zones that I´m adding: << 2022-10-30 21:40:15.332 INFO SCRIPTING (Main): 17504( -1)/I: DATABASE00003.function(Player 'Hippie Colgao' joint unit '2- Al Minhad AB - UH-1H 1' of group '2- Al Minhad AB - UH-1H 1') 2022-10-30 21:40:15.332 INFO SCRIPTING (Main): 12398( 17521)/I: SETTINGS05603.SetPlayerMenu(Setting menu for player Hippie Colgao) 2022-10-30 21:40:24.992 ERROR SCRIPTING (Main): [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:660: attempt to index a nil value stack traceback: [C]: ? [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:660: in function <[string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:651> 2022-10-30 21:40:54.040 ERROR wInfo (Main): can't open Objects[POLE] table 2022-10-30 21:40:54.040 INFO SCRIPTING (Main): 51484( -1)/E: CARGO_GROUP05504.function({[IniUnit]={[SceneryObject]={[id_]=486966097,},[ClassName]=SCENERY,[SceneryName]=486966097,},[initiator]=,[id]=8,[IniObjectCategory]=5,[IniUnitName]=486966097,[IniCategory]=4,[time]=68.724,[IniTypeName]=POLE_CRASH,[IniDCSUnit]=,[IniDCSUnitName]=486966097,}) 2022-10-30 21:40:54.040 INFO SCRIPTING (Main): 51484( -1)/E: CARGO_GROUP05460.function({[IniUnit]={[SceneryObject]={[id_]=486966097,},[ClassName]=SCENERY,[SceneryName]=486966097,},[initiator]=,[id]=8,[IniObjectCategory]=5,[IniUnitName]=486966097,[IniCategory]=4,[time]=68.724,[IniTypeName]=POLE_CRASH,[IniDCSUnit]=,[IniDCSUnitName]=486966097,}) 2022-10-30 21:41:39.733 ERROR SCRIPTING (Main): [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:466: attempt to index a nil value stack traceback: [C]: ? [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:466: in function 'SEF_INFANTRY_GETNEARESTINFANTRYZONE' [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:494: in function <[string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:487> 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): During the last 600.0s an average of 0 units objects and 0 ballistic objects have been active per frame 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): The average frame rate of 54.8fps would have been 54.9fps if the flight data recorder was disabled 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): DCS World simulation is taking 99.8% of CPU 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): DCS GetWorldObjects is taking 0.0% of CPU 2022-10-30 21:43:09.995 INFO TACVIEW.DLL (Main): Tacview recorder is taking 0.2% of CPU 2022-10-30 21:43:14.329 ERROR SCRIPTING (Main): [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:1259: attempt to index a nil value stack traceback: [C]: ? [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:1259: in function 'SEF_CARGO_GETNEARESTCARGOZONE' [string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:1287: in function <[string "C:\Users\ALA74\AppData\Local\Temp\DCS.openbeta_server\/~mis00005EFF.lua"]:1280> >> Unfortunately I can't really check out what is going on for you, my game doesn't even work properly with 2.8. Makes me suspicious something else has changed. Link to comment Share on other sites More sharing options...
mimamema Posted October 31, 2022 Share Posted October 31, 2022 5 minutes ago, Surrexen said: Unfortunately I can't really check out what is going on for you, my game doesn't even work properly with 2.8. Makes me suspicious something else has changed. yep, I know, 2.8 it´s being a headache for a lot of people, mostly in VR. No worries and thank you anyway for having a look. Link to comment Share on other sites More sharing options...
Surrexen Posted October 31, 2022 Author Share Posted October 31, 2022 5 hours ago, mimamema said: yep, I know, 2.8 it´s being a headache for a lot of people, mostly in VR. No worries and thank you anyway for having a look. One last idea, since I can't really see too well in the screenshot, you do actually have a FARP object called "Moscow" underneath all that stuff going on? The script relies on there being an airbase that matches up to the appropriate zone names. If it can't match it up then it won't be able to spawn the containers/infantry etc. 1 Link to comment Share on other sites More sharing options...
mimamema Posted November 1, 2022 Share Posted November 1, 2022 18 hours ago, Surrexen said: One last idea, since I can't really see too well in the screenshot, you do actually have a FARP object called "Moscow" underneath all that stuff going on? The script relies on there being an airbase that matches up to the appropriate zone names. If it can't match it up then it won't be able to spawn the containers/infantry etc. That made it! yes, I don´t know why but the FARP names were ok but the unit name was the same with and added "-1", so Moscow FARP unit name was Moscow-1. After correcting all of them is back working! Thank you so much again ^^ Link to comment Share on other sites More sharing options...
Antix70 Posted November 1, 2022 Share Posted November 1, 2022 (edited) On 10/30/2022 at 4:43 AM, Surrexen said: Make sure you join spectators for about 10 seconds or so at mission start before joining a helo slot or the script won't have loaded up yet. It should work, doesn't matter it's not an 'official' helo or whatever. I don't personally use it, but I know it can work. First off, thanks for replying. I know some people can be full of questions but empty on gratitude. Your work has provided us with many hours of fun, and we do appreciate it! Second, literally every other helo at the FARP or Airfield has the Helo Operations menu. Spawn a Huey, verify menu, Exit the Huey, spawn the 60, and check for the menu, and nothing. Here's that line of code from the end of the Scarlet Dawn Helo Operations.lua: if ( EventGroupType == "UH-60L" or EventGroupType == "UH-1H" or EventGroupType == "Mi-8...etc... This is from you OB/GYN section of the lua. Does the 60 need to be added to any other lua within the mission files? Edited November 1, 2022 by Antix70 Link to comment Share on other sites More sharing options...
Surrexen Posted November 1, 2022 Author Share Posted November 1, 2022 (edited) 2 hours ago, Antix70 said: First off, thanks for replying. I know some people can be full of questions but empty on gratitude. Your work has provided us with many hours of fun, and we do appreciate it! Second, literally every other helo at the FARP or Airfield has the Helo Operations menu. Spawn a Huey, verify menu, Exit the Huey, spawn the 60, and check for the menu, and nothing. Here's that line of code from the end of the Scarlet Dawn Helo Operations.lua: if ( EventGroupType == "UH-60L" or EventGroupType == "UH-1H" or EventGroupType == "Mi-8...etc... This is from you OB/GYN section of the lua. Does the 60 need to be added to any other lua within the mission files? Seems strange, perhaps the name of the UH-60 changed? Fly one over a SAM or something and get shot down, see what the kill message shows. Take a look at page 6 of this thread as it has a lot of info about the UH-60L and getting it going. 4 hours ago, mimamema said: That made it! yes, I don´t know why but the FARP names were ok but the unit name was the same with and added "-1", so Moscow FARP unit name was Moscow-1. After correcting all of them is back working! Thank you so much again ^^ Boom, headshot. Edited November 1, 2022 by Surrexen 2 Link to comment Share on other sites More sharing options...
ak22 Posted November 6, 2022 Share Posted November 6, 2022 (edited) On 11/22/2020 at 11:17 PM, Surrexen said: Inside your DCS installation there is a folder called Scripts. Inside that there is a file called MissionScripting.lua, if you want persistency to work, edit this file (make a backup first if you like) and make the bit that looks like this: do sanitizeModule('os') sanitizeModule('io') sanitizeModule('lfs') require = nil loadlib = nil end Look like this instead: do sanitizeModule('os') --sanitizeModule('io') --sanitizeModule('lfs') require = nil loadlib = nil end Important: The user that runs DCS must also have write permissions to the installation directory or the lua files for persistency will not be generated. Once you have done that, start DCS and launch the mission. The mission will then write out a list of dead units and statics to a pair of lua files inside the DCS root folder. A file is also generated to track the status of airfields. Another one is generated to track what you have built from the helo operations menu. Once these files exist, the mission will load those files when it starts up and remove the units and statics that were previously destroyed so you can pick up where you left off. Note: MissionScripting.lua will need to be changed any time an update or repair is run. Download here: https://www.digitalcombatsimulator.c...files/3313323/ My lua file looks like this: not sure where "_G" came from maybe during a DCS update? Shall i just add -- or does it have to look like the above? local function sanitizeModule(name) _G[name] = nil package.loaded[name] = nil end do sanitizeModule('os') sanitizeModule('io') sanitizeModule('lfs') _G['require'] = nil _G['loadlib'] = nil _G['package'] = nil end I am not sure where "_G" came from maybe during a DCS update? Shall I just add -- or does it have to look like below? How do i know if the game is keeping track for my progress when I load into the mission next time? do sanitizeModule('os') --sanitizeModule('io') --sanitizeModule('lfs') require = nil loadlib = nil end Edited November 6, 2022 by ak22 Link to comment Share on other sites More sharing options...
Surrexen Posted November 6, 2022 Author Share Posted November 6, 2022 8 hours ago, ak22 said: My lua file looks like this: not sure where "_G" came from maybe during a DCS update? Shall i just add -- or does it have to look like the above? local function sanitizeModule(name) _G[name] = nil package.loaded[name] = nil end do sanitizeModule('os') sanitizeModule('io') sanitizeModule('lfs') _G['require'] = nil _G['loadlib'] = nil _G['package'] = nil end I am not sure where "_G" came from maybe during a DCS update? Shall I just add -- or does it have to look like below? How do i know if the game is keeping track for my progress when I load into the mission next time? do sanitizeModule('os') --sanitizeModule('io') --sanitizeModule('lfs') require = nil loadlib = nil end Like this: do sanitizeModule('os') --sanitizeModule('io') --sanitizeModule('lfs') _G['require'] = nil _G['loadlib'] = nil _G['package'] = nil end Link to comment Share on other sites More sharing options...
Surrexen Posted November 23, 2022 Author Share Posted November 23, 2022 Operations Snowfox/Scarlet Dawn/Clear Field/Sea Slug have been updated to include the MB-339A. Also some important changes: 1. Snowfox Escalation has been renamed back to just 'Snowfox' and the link for the escalation version has been deleted. 2. Clear Field Escalation has been renamed back to just 'Clear Field' and the link for the escalation version has been deleted. 3. Operation Black Spire has been deleted 4. Operation Crystal Sea has been deleted 5. Snowfox/Scarlet Dawn/Clear Field/Sea Slug have had the Moose version replaced to version 2.7.16 6. Some corrections to the templates for Snowfox/Scarlet Dawn for the AI Mirage F1BQ/F1EQ as the livery names changed 3 1 Link to comment Share on other sites More sharing options...
phrogZ Posted December 7, 2022 Share Posted December 7, 2022 On 10/29/2022 at 5:42 AM, Antix70 said: Yeah, I have added that exact text to the HeloOperations.lua, but it doesn't enable the F10/Other -> Helo Operations option in the 60. I'm wondering if this is because it's a community mod, and not a native DCS helicopter? I don't know if it has been already suggested, but as far as I remember the pilot and name should be exactly the same. Link to comment Share on other sites More sharing options...
Antix70 Posted December 7, 2022 Share Posted December 7, 2022 2 hours ago, phrogZ said: I don't know if it has been already suggested, but as far as I remember the pilot and name should be exactly the same. Turns out the only thing I needed to do was make sure the UH-60 mod folder was included in the Mods/aircraft/ folder on the server and restart the DCS Dedicated Server. Link to comment Share on other sites More sharing options...
Recommended Posts