Foxtrot1960 Posted Friday at 04:40 PM Posted Friday at 04:40 PM (edited) Here is my problem/request of help: I'm now working since a wile to missions with the Ka-50 (I love it!). I usually adapt the different ADF channels according to the needs in the preset frequency channels in the ARK-22 section of the chopper. I usually pay no attention to the fact that my ADF channel plate in the cockpit is blank... but now. If you are working on a mission in the Persian Gulf or in Syria, completely blank! What I would like to do is to populate the plate with names and channels according to the presets I choose. More, considering that I make often use of FARPs, I would like to add the name of the FARP together with che ADF/NDB channel/freq defined in the mobile beacon used (and added in the ARK-22 of the helo), or adding the information above for AFB present in the map but with no NDB (using as before the mobile one). questions: 1) Is this possible? 2) if yes, can someone give me an example of lua scripting? (not so expert to find out by myself ). I have to say that I failed trying to modify the default ARK.lua file adding a section for the Syria map (the default contains Caucasus and Nevada) and referring to the Syrian beacons.lua file... Thank you Edited Friday at 04:44 PM by Foxtrot1960 Errore di battitura e aggiunta tags
Akiazusa Posted yesterday at 05:16 AM Posted yesterday at 05:16 AM On Caucasus and Nevada map looks like if that as long as the NDB is in Beacon.lua,all u have to do is to change the ARK settings in ME to match the frequency in Beacon.lua and the plate will be automatic updated to match their names and callsigns. I tried messing with ark.lua to make it works the same way for Syria but sadly no luck either...............I will try more tomorrow........................ maybe using a kneeboard is easier. The wisdom of tearmoon empire.
Foxtrot1960 Posted yesterday at 04:17 PM Author Posted yesterday at 04:17 PM (edited) Kneeboard?... Indeed! That's what I do actually, but I would like to have the plate working as I said; mainly for stuff not present in the beacon.lua file or eaven in the map, like FARPs with mobile NDBs. In reference to what you said, I've done the following: on Caucasus I have my home in Sochi-Adler airport. I then changed the ARK-22 frequency of channel 1 (both inner and outer) to 761KHz. Starting the mission the plate, on channel 1 is blank! I then noticed that the ARK.lua file (the one in Cockpit/Scripts) have not changed, keeping date and time of the first Ka-50 installation. I then changed the first line of the NDB channels of the ARK.lua (line 27) to match the corresponding one in the beacons.lua of Caucasus (airfield18_0), bur still nothing! I'm doing something wrong but can't understand what! This sounds like a challange for the community to help me . Edited yesterday at 05:48 PM by Foxtrot1960
Akiazusa Posted 4 hours ago Posted 4 hours ago (edited) Quote In reference to what you said, I've done the following: on Caucasus I have my home in Sochi-Adler airport. I then changed the ARK-22 frequency of channel 1 (both inner and outer) to 761KHz. Starting the mission the plate, on channel 1 is blank! Sochi doesn't work for me either,odd...but for some airport it works,(I tried NDB in Maykop-Khanskaya) But if u don't mind modding the game file a bit,I find a way to make the plate displaying things u manually entered. First u need to delete line 152 and line 166 from ARK_MAIN_page.lua,but this file seems can't be packed into the .miz file,so modding the game file is needed. Quote txt_homer_name.controllers = {{"ARK22BeaconName", ch_number, t}} Quote txt_homer_callsign.controllers = {{"ARK22BeaconCallsign", ch_number, t}} (those 2 controllers seems keeps overriding what u entered from ark.lua using their own logic.) And here is my ARK.lua,u can pack it into the .miz file without touching the original game file. ARK.lua in my ark.lua,u could change the name and callsign(in red circle) to what ever u what and the plate in cockpit will display them. for the beacon_id:(airfilexx_xx or world_xx),u can ignore them,I haven't figure out how to use them yet,and they don't seems affect anything for now To edit ADF frequencies,use mission editor,change them to whatever u want(but no automatic update for the the ADF plate after modding),then u can manually change beacon "name" and "callsign" in my ark.lua to match them(or anything u want to be displayed on the plate) .(also u can try adding more functions to it,or merging those theatres into one section) For Syria,I guess it's not called "syria" for lua variable,as "elseif theatre == 'Syria' then" doesn't work for it,but when I change that to "else",things start working. Edited 1 hour ago by Akiazusa The wisdom of tearmoon empire.
Foxtrot1960 Posted 10 minutes ago Author Posted 10 minutes ago Grate job Akiazusa! I don't mind loosing automatic update: in any case is quite poor and for sure it will not work for FARPs. I will follow your instructions and see. Another point is, shal I create the following folders to put the ARK.lua file into the .miz? Scripts\Aircrafts\Ka-50\Cockpit\ARK\ARK.lua I've done it for kneeboards only (kneeboard\images\image.png), so I really don't know how to add the file into the miz. For a week or so I'll not be able to work on it because I'm out for my job and I'll not have access to my "DCS PC". As soon As I'm back I'll do it and let you know. Thank you for your help.
Recommended Posts