Jump to content

Lekaa

ED Closed Beta Testers Team
  • Posts

    273
  • Joined

  • Last visited

Everything posted by Lekaa

  1. @Grimes I think i fixed the Group not accessible by unit in event handler. This is a DCS bug local function groupSpawned(event) if event.id == world.event.S_EVENT_BIRTH and timer.getTime() > event.time + 1 then if Object.getCategory(event.initiator) == 1 then local g = Unit.getGroup(event.initiator) if g and event.initiator:getPlayerName() and event.initiator:getPlayerName() ~= "" then local unitName = event.initiator:getName() if unitName and not mist.DBs.MEunitsByName[unitName] then local gName = g:getName() if not tempSpawnedGroups[gName] then tempSpawnedGroups[gName] = {type = 'group', gp = g} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end end else log:error('Group not accessible by unit in event handler. This is a DCS bug') end elseif Object.getCategory(event.initiator) == 3 or Object.getCategory(event.initiator) == 6 then local staticName = StaticObject.getName(event.initiator) if staticName then tempSpawnedGroups[staticName] = {type = 'static'} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end end end end by adding > event.time + 1 then
  2. Add to it, melez as well.
  3. Anyone managed to sort this portion of mist? local function groupSpawned(event) -- dont need to add units spawned in at the start of the mission if mist is loaded in init line if event.id == world.event.S_EVENT_BIRTH and timer.getTime0() < timer.getAbsTime() then if Object.getCategory(event.initiator) == 1 then --log:info('Object is a Unit') local g = Unit.getGroup(event.initiator) if g and event.initiator:getPlayerName() ~= "" and not mist.DBs.MEunitsByName[event.initiator:getName()] then -- log:info(Unit.getGroup(event.initiator):getName()) local gName = g:getName() if not tempSpawnedGroups[gName] then --log:warn('addedTo tempSpawnedGroups: $1', gName) tempSpawnedGroups[gName] = {type = 'group', gp = g} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end else log:error('Group not accessible by unit in event handler. This is a DCS bug') end elseif Object.getCategory(event.initiator) == 3 or Object.getCategory(event.initiator) == 6 then --log:info('staticSpawnEvent') --log:info(event) --log:info(event.initiator:getTypeName()) --table.insert(tempSpawnedUnits,(event.initiator)) ------- -- New functionality below. ------- --log:info(event.initiator:getName()) --log:info('Object is Static') tempSpawnedGroups[StaticObject.getName(event.initiator)] = {type = 'static'} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end end end it's triggering this error: 2024-08-19 09:15:28.205 ERROR SCRIPTING (Main): MIST|f|1488: Group not accessible by unit in event handler. This is a DCS bug
  4. Tankers can not spawn on Ben-Gurion, all though they are placed on the map and on the parking spot, they do not spawn.
  5. What should i now do if i so bad want the CTLD to work with dynamic slots? After that i will try to get the persistence to work
  6. Will it work with foothold you think?
  7. I don't Use AI for that, only human players. If you would share the function for using the event for birth and to get the menu to show up. Even if you share it, i will compare it will the original. have you tried to get persistence to work?
  8. How can i make the ctld work with the dyamic spawn? Hello, would you mind share your Lua for the CTLD?
  9. Apache AH-64D, Changes in the last patch. from 14, 15 To PLT_KU = getKU(16) CPG_KU = getKU(15)
  10. Apache AH-64D, Changes in the last patch. from 14, 15 to this: function ufcPatchAH64.generateUFCData() local PLT_KU = getKU(16) local CPG_KU = getKU(15)
  11. Helloooou Any ETA on the upcoming update? Cheers! 2024-07-12 15:57:41.297 ERROR SCRIPTING (Main): MIST|f|1471: Group not accessible by unit in event handler. This is a DCS bug
  12. i resolved my issue by using the old dlss file that is found in bin-mt
  13. @Ciribobwould it be possible if you have the time to make CTLD be able to save progress?
  14. Thanks. I Don't want to use moose for this mission. I get huge spikes of stutter every few seconds all though Moose CTLD works flawlessly on my other missions. secondly it's a Foothold mission, I do not wish to save anything but the CTLD dropped units. Foothold have it's own save for whatever in those Zones. Thanks
  15. Hello. I need help, I'm trying to find away to have persistence for MIST CTLD in my foothold. I have managed to get it to create a save lua file but it's not saving anything, it's empty. It's not tracking who ever is dropped from the helo. Anyone have one that does saves? Mist_CTLD.lua
  16. I know, just stating that the picture made me confused
  17. I saw this picture you posted in another post made me confused because of the TDC courser have elev and alt on each side and I don't have that so i was questioning if there is something wrong with my "version" null
  18. That ability is not yet implemented? Adding L&S and DT2
  19. I also tried this : local FuelTotalizer_10k = MainPanel:get_argument_value(368) local FuelTotalizer_1k = MainPanel:get_argument_value(369) local FuelTotalizer_100 = MainPanel:get_argument_value(370) local FuelTotalizer_left_100 = MainPanel:get_argument_value(374) local FuelTotalizer_left_1k = MainPanel:get_argument_value(373) local FuelTotalizer_right_100 = MainPanel:get_argument_value(378) local FuelTotalizer_right_1k = MainPanel:get_argument_value(377) -- Calculate total fuel in pounds local totalFuel = FuelTotalizer_10k * 10000 + FuelTotalizer_1k * 1000 + FuelTotalizer_100 * 100 + FuelTotalizer_left_100 * 100 + FuelTotalizer_right_100 * 100 + FuelTotalizer_left_1k * 1000 + FuelTotalizer_right_1k * 1000 -- Convert total fuel to a string and extract the first four characters local totalFuelString = tostring(totalFuel) -- Determine the number of digits in the total fuel local numDigits = totalFuelString:len() -- Extract the first four characters if the total fuel has more than four digits local firstFourDigits = totalFuelString:sub(1, math.min(numDigits, 4)) -- Include first four digits of total fuel in payload local fuelPercentage = firstFourDigits It worked but i didn't see the the same fuel count that was in the jet, tried for hours but no avail.
  20. By the way, i tried local totalFuel = LoGetEngineInfo().fuel_internal * 35550 local fueltotal = string.format("%2dK%1d", math.floor(totalFuel / 1000), (totalFuel % 1000) // 100) With the option5 corrected, it didn't work. Didn't display anything on the whole thing.
  21. I've been working on the F15E the whole day and been fighting with ChatGPT a lot. I also learned a lot. I have made few improvements, it's already midnight, feel free to add the fuel if you have time. My idea was like yours, looking down and see 35.2 or something. or X9.2. I have made so the radio channels in the correct place like the hornet and much more. ufcPatchF15e.lua
×
×
  • Create New...