

Lekaa
ED Closed Beta Testers Team-
Posts
273 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Lekaa
-
@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
-
Add to it, melez as well.
-
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
-
Tankers can not spawn on Ben-Gurion, all though they are placed on the map and on the parking spot, they do not spawn.
-
Complete Transport and Logistics Deployment - CTLD
Lekaa replied to Ciribob's topic in Scripting Tips, Tricks & Issues
Thanks alot ! -
Complete Transport and Logistics Deployment - CTLD
Lekaa replied to Ciribob's topic in Scripting Tips, Tricks & Issues
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 -
Complete Transport and Logistics Deployment - CTLD
Lekaa replied to Ciribob's topic in Scripting Tips, Tricks & Issues
Will it work with foothold you think? -
Complete Transport and Logistics Deployment - CTLD
Lekaa replied to Ciribob's topic in Scripting Tips, Tricks & Issues
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? -
Complete Transport and Logistics Deployment - CTLD
Lekaa replied to Ciribob's topic in Scripting Tips, Tricks & Issues
How can i make the ctld work with the dyamic spawn? Hello, would you mind share your Lua for the CTLD? -
DCS-SimpleSlotBlock - Multiplayer Slot Blocking Script
Lekaa replied to Ciribob's topic in Scripting Tips, Tricks & Issues
How is it workikg for you? -
Universal UFC| Works with all modules | Simple Install
Lekaa replied to prestonflying's topic in Winwing
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) -
Performance issues - New launcher launches ST or MT?
Lekaa replied to captain_dalan's topic in General Bugs
i resolved my issue by using the old dlss file that is found in bin-mt -
Complete Transport and Logistics Deployment - CTLD
Lekaa replied to Ciribob's topic in Scripting Tips, Tricks & Issues
@Ciribobwould it be possible if you have the time to make CTLD be able to save progress? -
trigger.action.outSoundForUnit() not working as intended in multiplayer
Lekaa replied to RED's topic in Multiplayer Bugs
any updates on this? -
Complete Transport and Logistics Deployment - CTLD
Lekaa replied to Ciribob's topic in Scripting Tips, Tricks & Issues
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 -
Complete Transport and Logistics Deployment - CTLD
Lekaa replied to Ciribob's topic in Scripting Tips, Tricks & Issues
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 -
I know, just stating that the picture made me confused
-
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
-
That ability is not yet implemented? Adding L&S and DT2
-
Universal UFC| Works with all modules | Simple Install
Lekaa replied to prestonflying's topic in Winwing
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. -
Universal UFC| Works with all modules | Simple Install
Lekaa replied to prestonflying's topic in Winwing
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. -
Universal UFC| Works with all modules | Simple Install
Lekaa replied to prestonflying's topic in Winwing
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