LetMePickThat Posted April 26, 2021 Share Posted April 26, 2021 Hi all, Working on a SAM mod, I was wondering if it is possible to add custom RWR codes to the modules, ideally without breaking IC ? I have a vague idea of how to add weapon system codes in the sim, but then using these custom codes to trigger RWR warnings is above my skillset... Has anyone ever tried to do this? In the meantime, we resorted to using older, sometimes unused codes when these matched with the systems added by the mod (e.g 105 and 106 for the S-300V/SA-12). Thanks ! Link to comment Share on other sites More sharing options...
patpatpowercat Posted April 27, 2021 Share Posted April 27, 2021 (edited) I know at least for the Hornet, the symbols are in the "AN_ALR_SymbolsBase.lua" (located in Scripts/Aircraft/_Common/Cockpit). However, looking in it, I don't know what it is referencing (ie model, lua, etc) when it states something like {MiG_31_, "31"} in the table. However, it does also have a symbols string section. Not sure if something as simple as adding ["S-300PMU2 92H6E tr" = '20'] would really do it, as I am not sure how it is referencing the radars/vehicles in the lua. But I am off today, and maybe I'll try and fidget around in it later. Additionally, obviously this would also break the IC check with HDS, maybe two versions in the future? Thanks for your mod btw, it is amazing! Edited April 27, 2021 by patpatpowercat Link to comment Share on other sites More sharing options...
patpatpowercat Posted April 27, 2021 Share Posted April 27, 2021 Ok, I added this to the end of the symbols string section of the lua. --High Digit SAMS ['SA-17 Buk TR'] = '17', ['S-300PS 64H6E TRAILER sr'] = 'BB', ['S-300PS SA-10B 40B6MD MAST sr'] = 'CS', ['S-300PS SA-10B 40B6M MAST tr'] = '10', ['S-300PS 40B6M MAST tr'] = '10', ['S-300PS 30N6 TRAILER tr'] = '10', ['S-300PMU1 30N6E tr'] = '20', ['S-300PMU1 40B6M tr'] = '20', ['S-300PMU2 64H6E2 sr'] = 'BB', ['S-300PMU2 92H6E tr'] = '20', It did not change anything, the Grave Stone still tracked as a 10, and the Grizzly as an 11. Link to comment Share on other sites More sharing options...
LetMePickThat Posted April 27, 2021 Author Share Posted April 27, 2021 19 minutes ago, patpatpowercat said: Ok, I added this to the end of the symbols string section of the lua. --High Digit SAMS ['SA-17 Buk TR'] = '17', ['S-300PS 64H6E TRAILER sr'] = 'BB', ['S-300PS SA-10B 40B6MD MAST sr'] = 'CS', ['S-300PS SA-10B 40B6M MAST tr'] = '10', ['S-300PS 40B6M MAST tr'] = '10', ['S-300PS 30N6 TRAILER tr'] = '10', ['S-300PMU1 30N6E tr'] = '20', ['S-300PMU1 40B6M tr'] = '20', ['S-300PMU2 64H6E2 sr'] = 'BB', ['S-300PMU2 92H6E tr'] = '20', It did not change anything, the Grave Stone still tracked as a 10, and the Grizzly as an 11. Thanks for your investigation. I think that you need to declare your custom units with a custom code for it to work. For instance, we managed to get RWR alerts for the SA-12 by using the old 105 and 106 codes that date back from LOMAC, when we had an SA-12 ingame. I reckon we need to use a custom code, e.g 999 for the SA-17 for instance, for it to work. Then, declare the system as you did in SymbolsBase.lua. The code will be used to fetch the exact system type, and will also be used by the HTS to target HARM missiles at the site. Link to comment Share on other sites More sharing options...
patpatpowercat Posted April 28, 2021 Share Posted April 28, 2021 I could see that, I just don't know how that would be defined, if it is from the vehicle/sensor in the mod or in the RWR definitions somewhere 1 Link to comment Share on other sites More sharing options...
patpatpowercat Posted May 16, 2021 Share Posted May 16, 2021 Were you ever able to figure out any more about how to define the radars to add them to the symbols.lua? Link to comment Share on other sites More sharing options...
Recommended Posts