Jump to content

SNAFU

Members
  • Posts

    772
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by SNAFU

  1. Ah, thanks, will try this.
  2. Can someone confirm that the name of the unit "SA-18 IGLA" and "SA-18 IGLA comm" was changed with the recent updates? In old scripts I found and used "SA-18 IGLA-S" and "SA-18 IGLA-S comm" instead. As a Heads-Up: If so a lot of scripts like the IADS, Detection, Dismount, CTTS will have some issue with this change, I guess.
  3. For me it is mostly try & error, getting the AI to the things I want with scripting and with the ME functions. In my AFAC script I use the following code: [important to have the Group-Task to be set to CAS} local RunningIn = { id = 'Mission', params = { route = { points = { [1] = { ["alt"] = _strikeralt, ["type"] = "Turning Point", ["action"] = "Fly Over Point", ["alt_type"] = "BARO", ["formation_template"] = "", ["properties"] = { ["vnav"] = 1, ["scale"] = 0, ["angle"] = 0, ["vangle"] = 0, ["steer"] = 2, }, -- end of ["properties"] ["ETA"] = 0, ["y"] = IPTangoz, ["x"] = IPTangox, ["speed"] = _strikerspeed, ["ETA_locked"] = true, ["task"] = { ["id"] = "ComboTask", ["params"] = { ["tasks"] = { [1] = { ["enabled"] = true, ["auto"] = false, ["id"] = "Bombing", ["number"] = 1, ["params"] = { ["direction"] = 0, ["attackQtyLimit"] = false, ["attackQty"] = 1, ["expend"] = "All", ["altitude"] = _pricklealt, ["directionEnabled"] = false, ["groupAttack"] = true, ["y"] = WPMarkerPos.z, ["altitudeEnabled"] = true, ["weaponType"] = 1073741822, ["x"] = WPMarkerPos.x, }, -- end of ["params"] }, -- end of [1] [2] = { ["enabled"] = true, ["auto"] = false, ["id"] = "WrappedAction", ["number"] = 2, ["params"] = { ["action"] = { ["id"] = "Option", ["params"] = { ["variantIndex"] = 1, ["name"] = 5, ["formationIndex"] = 4, ["value"] = 262145, }, -- end of ["params"] }, -- end of ["action"] }, -- end of ["params"] }, -- end of [1] [3] = { ["number"] = 3, ["auto"] = false, ["id"] = "WrappedAction", ["enabled"] = true, ["params"] = { ["action"] = { ["id"] = "Option", ["params"] = { ["value"] = 2, ["name"] = 1, }, -- end of ["params"] }, -- end of ["action"] }, -- end of ["params"] }, -- end of [2] [4] = { ["number"] = 4, ["auto"] = false, ["id"] = "WrappedAction", ["enabled"] = true, ["params"] = { ["action"] = { ["id"] = "Option", ["params"] = { ["value"] = 1, ["name"] = 4, }, -- end of ["params"] }, -- end of ["action"] }, -- end of ["params"] }, -- end of [3] [5] = { ["number"] = 5, ["auto"] = false, ["id"] = "WrappedAction", ["enabled"] = true, ["params"] = { ["action"] = { ["id"] = "Option", ["params"] = { ["value"] = 2, ["name"] = 3, }, -- end of ["params"] }, -- end of ["action"] }, -- end of ["params"] }, -- end of [4] }, -- end of ["tasks"] }, -- end of ["params"] }, -- end of ["task"] ["speed_locked"] = true, }, -- end of [1] }, } } } local activestrikergrpctrl = activestrikergrp:getController() Controller.setTask(activestrikergrpctrl, RunningIn) Looks similar to yours, but without the rest of the task-code and the context it is just guessing. Maybe the example above helps...
  4. Thanks for the pictures. I agree, the old look better. Lets hope this can be corrected...
  5. Would be great to have some 1.2.11 vs 1.2.12 and some real life pics comparison? Can only link some real life night flares picuters for starters... http://www.bharat-rakshak.com/media/39705-3/DSC_2670.jpg http://www.strangemilitary.com/images/content/144189.jpg
  6. Doesn´t work for blue MiG21Bis, that`s why I wrote a little script to get GCI support for blue MIG21s. Since the MiG21bis doesn´t even seem get detected by own EWR I cheated a little with terrain cover to keep it simple. So if you are in a MiG below 150m (?) and farer then 70km away from friendly EWR, you cannot get a direct intercept vektor, but only bulls eye references. You have to define the blue airpsace by the waypoints of a group named "blueborder" and place some blue EWR/ SR systems ("1L13 EWR" or unitData.type == "55G6 EWR" or unitData.type == "Hawk sr" or unitData.type == "Patriot str") onto the map. Then you can used the F10 radio menu in a MiG21. But that is not comparable with Ajaxs script, just a little improvisation until this gets fixed some day. MIST3_5_blueGCI_r1.lua
  7. I guess you are right. Since it is part of the group data in mission file, I had the hope there would be known/ easy way.
  8. I am trying to write a small EWR Communication script for the blue side (since EWR GCI doesn´t work for blue MiG21bis) and would like to check if the player using the F-10 Option is on the correct frequency, but I cannot find a documented function. Does anybody know, how to get the actual frequency a player is on?
  9. I guess the times, in which control surfaces just moved according to the position the pilot put his stick to, are long gone. Nowadays the FCS interprets the pilots wish and moves the control surfaces to the optimum position methinks.
  10. Hey Schleudi, While on our training flight yesterday we too faced problems with an tanker on UHF 265.000 with A-10C and F-15C on realistic settings, latest release version of DCS World and Aries. On first call on the frequency the tanker responded, but in precontact position, all tanker lights on, boom lowered, the boom operater refused to do his job and control the boom. To some player the tanker even didn´t respond, eventhough they reacted on their first request and turned on the light. Never thought it would be related to Aries, but I just read this and you never know. We used the default server mission on our dedicated server.
  11. In the script you see the lines 21 to 30 <fighterunitnametable[1] = { unitname = 'test1'}> There you have to overwrite the 'test1' with the unitnames of the clientplanes, which shall get the F-10 options. This script shall check all the planes in the mission and if the unitname of the plane is listed in the table <fighterunitnametable[1...]>, then it gives these the units the radio option with the functions. In your case, if the client units have the name 'test1' and 'test2' it should actually work.
  12. Yes, I will try this with the Bailong Torch I bought beginning of the year. Could only test it the Baltic this summer in the Finnish and Swedish skär waters. Lake Vättern was quite interesting, but I guess you know... ;) I took this picture in Motala and even though it was the clearest water we found in the whole Baltic region, the view is still quite limited. But I guess that is due to some gale gusts we had that day... Huh, since I am a beginner, with little experience I will stick to the calm waters, so I guess Red Sea fits me perfectly... I only experienced slight currents so far, and found it challenging enough to navigate a long the curved reefs. On the second dive I ever made,my instructor and me - since the situation in Egypt was a little "tumbleweed", I had an instructor and guide for myself , so no mass-group-dives- I could watch a sea cow for 2 or 3 minutes and in this situation a current would have definitely got me lost... ;)
  13. Same here, I coudn´t image how fast the colors fade with the depth and so thought I don´t need a red filter. For the next trip I will definitly get a red filter. I already have a torch now for some times necessary keel inspections while sailing and am really looking forward to the advance open water and night dive courses.
  14. I didn´t face this bug yet, so it is not simulated nose wheel shimmy?
  15. Attached you find a script, which generates 1 or 2 F-15C or Su-27 in a triggerzone you have to place in the ME, by using the F10 Radio command option. In top of the script file you find a description, how to use the script and how to modify the player unit or the script and the triggerzone. Note that you have to initialize MIST before. --[[ --script to activate AI Planes for AA Training by snafu --requires MIST! How to: -0 Download MIST by Grimes/Speed on (http://forums.eagle.ru/showpost.php?p=1622305&postcount=3) and the MIST Manual -1 Open Mission Editor (ME) and choose coalitions -2 Open "Trigger Page" by pressing icon on the left side row of the ME -3 Choose a lua file which shall be initialized at the start of the mission by opening file-menu in bottom line on the "Trigger Page" and initialize MIST by choosing the latest MIST*.LUA, you just downloaded -4 Create a new Trigger by pressing: ONCE -> TIME IS MORE (5) -> MESSAGE TO ALL ("Test Script loaded", 10 sec) + DO SCRIPT FILE ([url="http://forums.eagle.ru/attachment.php?attachmentid=107209&d=1415804445"]AIgeneration_v5.lua[/url]) -5 insert a plane and name the unit and group as listed in "fighterunitnametable[1]..[8]", here "test1" (or "whatever") -6 modify the script and insert in "fighterunitnametable[1]..[8]" the unit names you have used in step 5 -7 place triggerzone in which you want the AI to spawn in and name it 'AAtrainingarea' -8 save mission and press green icon for testing --]] PS: I just wrote the script for our squad training map template and did not do any in depth tests of the AI, I noticed so far, that they don´t attack in some cases and just prefer to RTB, but I figured that this was due to the distance between me and them and their skill level being random. AIgeneration_v5.lua
  16. My girlfriend got me into diving and I did my Open Water Diver (PADI) course in Marsa Alam, Egypt last year. As a small kid I did a lot of snorkelling in the Med (mostly Italy and France), but until last year always stayed afloat. Great experience and got me hooked I guess. I definity plan on further courses and since I spent most of my holidays on a boat sailing, I am really looking forward to combine theses hobbies... ;) I bought an Intova Under water cam for this and had a real great time taking pictures and making films...
  17. Looks lovely. Will try this. Thank you! :thumbup: DCS needs more shipping and sailing!
  18. Here is a little info on "isDetected" Function. http://forums.eagle.ru/showthread.php?t=110340&highlight=Controller.isTargetDetected I couldn´t get it to work on AWACS planes, but for ground Radar it returns true.
  19. Just noticed your thread here and since other groups like to reserve some slots for their friends/ members too, but don´t know how to, I post the script, we found working well enough here. The script reserveunits_v1.lua (4.3 KB) reserves all in the table listed units for all in the table listed players, while the file reserveunits_individuell_v1.lua (4.3 KB) reserves the unit listed in line 1 of the unit table for the player listed in the playertable in line 1 and so on. reserveunits_individuell_v1.lua reserveunits_v1.lua
  20. I have been there a few years ago and gave up on public servers.The best time I had on public servers, was on the <51th> server though (MHO). But at this time Il2 1946 was still alive (unmodded) and I got my "immersion" fix there (Coop wars, SEOW, ADW). Maybe BoS grows over the Public-Gang-Bang online play it is restricted to now, who knows. For now I found DCS is best in role play/hardcore, with a close-to-real-procedure approach in a medium/small sized group of like minded on specialized servers. It is too easy for one foul apple to ruin the batch, so public is what it is... :pilotfly:
  21. There is an error in line 82, but not to clutter this thread, I sent you a PM...
  22. Well, I don´t know anything about UCID? I don´t know a function, which gets you a UCID (what ever that is) from a player, sorry.
  23. A10Creservedseattable[1] = { unitname = 'test1'} Here replace 'test1' with the unitname of the unit, which shall be reserved for the players, with the names listed in A10Cplayertable[1] = { name = 'player1" } Replace 'player1' with 'DavidRed', if this is your online name. That is all you need to modify in the script... in theory.;)
  24. LUA is quite simple and the script is quite simple, too... even I managed to handle it. :smilewink: Here is a small how to implement a script file in a mission: How to: -0 Download MIST by Grimes/Speed on (http://forums.eagle.ru/showpost.php?p=1622305&postcount=3) and the MIST Manual -1 Open Mission Editor (ME) and choose coalitions -2 Open "Trigger Page" by pressing icon on the left side row of the ME -3 Choose a lua file which shall be initialized at the start of the mission by opening file-menu in bottom line on the "Trigger Page" and initialize MIST by choosing the latest MIST*.LUA, you just downloaded -4 Create a new Trigger by pressing: ONCE -> TIME IS MORE (5) -> MESSAGE TO ALL ("Test Script loaded", 10 sec) + DO SCRIPT FILE (reserveunits_v0.LUA) -5 insert a plane and name the unit and group as listed in "A10Creservedseattable[1]..[8]", here "test1" -6 modify the script and insert in "A10Cplayertable[1]..[8]" the player names (network setup), here 'player1', which shall be allow to use the unit listed in "A10Creservedseattable[1]..[8]" -7 save mission and press green icon for testing For editing the scrip-file, which you need to do, do insert the player names you want to reserve some units to, and to correct some errors, which will pop up, at mission start, I recommend you download Notepad++, which is for free and a better tool, than the default windows Notepad. reserveunits_v0.lua
  25. I once had the same idea and started working on script. I dropped the idea again and never tested the script, but this is what I had so far. The script functions should be complete, but as I said... it is not tested and must be tweaked for sure. Anyhow... --by snafu --requires MIST A10Creservedseattable = {} A10Creservedseattable[1] = { unitname = 'test1'} --unitname of the A10C shall only be taken by certain playernames listed in A10Cplayertable A10Creservedseattable[2] = { unitname = 'test2'} A10Creservedseattable[3] = { unitname = 'test3'} A10Creservedseattable[4] = { unitname = 'test4'} A10Creservedseattable[5] = { unitname = 'test5'} A10Creservedseattable[6] = { unitname = 'test6'} A10Creservedseattable[7] = { unitname = 'test7'} A10Creservedseattable[8] = { unitname = 'test8'} A10Cplayertable = {} A10Cplayertable[1] = { name = 'player1'} --player name, who shall be allowed to use A10C A10Cplayertable[2] = { name = 'player2'} A10Cplayertable[3] = { name = 'player3'} A10Cplayertable[4] = { name = 'player4'} A10Cplayertable[5] = { name = 'player5'} A10Cplayertable[6] = { name = 'player6'} A10Cplayertable[7] = { name = 'player7'} A10Cplayertable[8] = { name = 'player8'} function checkallreservedA10C() for index, unitData in pairs(mist.DBs.aliveUnits) do if unitData.category ~= nil and (unitData.category == "plane") then if unitData.unitName ~= nil then local currentaircraftunitname = unitData.unitName if Unit.getByName(currentaircraftunitname) ~= nil then local currentaircraftunit = Unit.getByName(currentaircraftunitname) if Unit.getPlayerName(currentaircraftunit) ~= nil then for i=1,#A10Creservedseattable do if currentaircraftunitname == A10Creservedseattable[i].unitname then currentplayerclearedforac = false for j=1,#A10Cplayertable do local currentplayername = Unit.getPlayerName(currentaircraftunit) if currentplayerclearedforac == false and currentplayername == A10Cplayertable[j].name then currentplayerclearedforac =true end end if currentplayerclearedforac == false then local currentplayergroup = Unit.getGroup(currentaircraftunit) local currentplayergroupID = Group.getID(currentplayergroup) trigger.action.outTextForGroup(currentplayergroupID,"1st Warning! You are not cleared for this A/C.",10) timer.scheduleFunction(givewarning, currentaircraftunitname, timer.getTime() + 10) end end end end end end end end return timer.getTime() + 40 end timer.scheduleFunction(checkallreservedA10C, nil, timer.getTime() + 3) function givewarning(unitnametowarn) local currentaircraftunitname = unitnametowarn if Unit.getByName(currentaircraftunitname) == nil then return else local currentaircraftunit = Unit.getByName(currentaircraftunitname) if Unit.getGroup(currentaircraftunit) == nil then return else local currentplayergroup = Unit.getGroup(currentaircraftunit) local currentplayergroupID = Group.getID(currentplayergroup) trigger.action.outTextForGroup(currentplayergroupID,"2nd Warning! You are not cleared for this A/C. Choose another A/C",10) timer.scheduleFunction(removeAC, currentaircraftunitname, timer.getTime() + 10) end end end function removeAC(unitnametoremove) local currentaircraftunitname = unitnametoremove if Unit.getByName(currentaircraftunitname) == nil then return else local currentaircraftunit = Unit.getByName(currentaircraftunitname) if Unit.getGroup(currentaircraftunit) == nil then return else local currentplayergroup = Unit.getGroup(currentaircraftunit) local currentplayergroupID = Group.getID(currentplayergroup) trigger.action.outTextForGroup(currentplayergroupID,"Aircraft is removed!",10) currentplayergroup:destroy() end end end There you also see how to get the playername... PS: Corrected the code above, so it should be ok now.
×
×
  • Create New...