Jump to content

Recommended Posts

Posted
15 hours ago, Grimes said:

I can't fix you. 

I'm fine, it's you that didn't follow English. 

Let's start again.

 

THE RADIO ENUM DOESN'T EXIST BUT YOUR DOCUMENT SAYS IT SHOULD.

  • TEMPEST.114 changed the title to This doesn't exist - enum radio
Posted (edited)

@Elphaba Are you saying that the radio.modulation enum is not working for you? I did a quick test mission using trigger.action.radioTransmission() and it was working for both AM and FM. Are you seeing an error in the dcs.log somewhere regarding this enum? Would you please explain how you are using this, if not similar to what I'm doing?

local zone = trigger.misc.getZone("test")
trigger.action.radioTransmission("l10n/DEFAULT/test1.ogg", zone.point, radio.modulation.AM, true, 123000000, 100, "testAM")
trigger.action.radioTransmission("l10n/DEFAULT/test2.ogg", zone.point, radio.modulation.FM, true, 30000000, 100, "testFM")

Both sounds were heard on their respective frequencies (123MHz AM & 30MHz FM) using an A-10CII hot-start on the runway of Batumi and the trigger zone out in the sea a few miles away.

 

Scripting doc about radio enum

image.png

Edited by Chump
Added reference
  • Thanks 1
Posted
8 hours ago, Elphaba said:

I'm fine, it's you that didn't follow English. 

Let's start again.

 

THE RADIO ENUM DOESN'T EXIST BUT YOUR DOCUMENT SAYS IT SHOULD.

See what happens when you use more than two words to describe a problem? It is possible to actually answer it. 

local m = {"radio"}
for n, tbl in pairs(radio) do
  m[#m+1] = "\n      "
  m[#m+1] = n
  if type(tbl) == 'table' then 
     for n2V, n2T in pairs(tbl) do
        m[#m+1] = "\n            "
        m[#m+1] = n2V
        m[#m+1] = " : "
        m[#m+1] = n2T
      end
   end
end
local msg = table.concat(m)
env.info(msg)
trigger.action.outText(msg, 20)

 

You posit that radio does not exist. Allow me to retort. 

You're wrong. 

radio_modulation_enum.jpg

 

  • Like 3

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted
9 hours ago, Grimes said:

See what happens when you use more than two words to describe a problem? It is possible to actually answer it. 

local m = {"radio"}
for n, tbl in pairs(radio) do
  m[#m+1] = "\n      "
  m[#m+1] = n
  if type(tbl) == 'table' then 
     for n2V, n2T in pairs(tbl) do
        m[#m+1] = "\n            "
        m[#m+1] = n2V
        m[#m+1] = " : "
        m[#m+1] = n2T
      end
   end
end
local msg = table.concat(m)
env.info(msg)
trigger.action.outText(msg, 20)

 

You posit that radio does not exist. Allow me to retort. 

You're wrong. 

radio_modulation_enum.jpg

 

Your rudeness, hostility and arrogance knows no bounds does it? A little humility might be in order to counter all the people on here singing your praises constantly. 
 

see @Chump’s reply for how someone with empathy, patience and manners comports themselves. 

9 hours ago, Chump said:

@Elphaba Are you saying that the radio.modulation enum is not working for you? I did a quick test mission using trigger.action.radioTransmission() and it was working for both AM and FM. Are you seeing an error in the dcs.log somewhere regarding this enum? Would you please explain how you are using this, if not similar to what I'm doing?

local zone = trigger.misc.getZone("test")
trigger.action.radioTransmission("l10n/DEFAULT/test1.ogg", zone.point, radio.modulation.AM, true, 123000000, 100, "testAM")
trigger.action.radioTransmission("l10n/DEFAULT/test2.ogg", zone.point, radio.modulation.FM, true, 30000000, 100, "testFM")

Both sounds were heard on their respective frequencies (123MHz AM & 30MHz FM) using an A-10CII hot-start on the runway of Batumi and the trigger zone out in the sea a few miles away.

 

Scripting doc about radio enum

image.png

 

When I type it in visual studio code, I get there yellow squiggly lines under it and a warning that I need to fix. I don’t get that with everything else, so I took that that it didn’t exist anymore. 
I’m still new and learning but THANK YOU for showing me it is working and how to use it. As always, deepest respect for your help and tutelage. 

Posted
1 hour ago, Elphaba said:

Your rudeness, hostility and arrogance knows no bounds does it? A little humility might be in order to counter all the people on here singing your praises constantly.

 

1 hour ago, Elphaba said:

When I type it in visual studio code, I get there yellow squiggly lines under it and a warning that I need to fix. I don’t get that with everything else, so I took that that it didn’t exist anymore.

What we got here is failure to communicate. Just a short breakdown. 

1. The thread had a title with "this doesn't exist: URL to wiki".

2. I responded with image of said wiki page. 

3. You clarified it wasn't the website, but something else. 

4. I asked what that was.

5. You provided zero new information

6. I upon realizing it was basically 1 post-reply a day going nowhere said something sarcastic. 

7. You were rude in response, but provided enough information.

8A. Another person chimes in with an answer

8B. I make an example showing radio existing in DCS, and be a little rude back. 

9. You reveal the problem is with your IDE. 

 

Perhaps you could look past any opinions you have of me as a person and realize that I do try to answer your questions in good faith. I'll try to dial back the "matter of factness" of my answers and to be more inquisitive when the problem isn't made clear. I matched the tempo with my first reply and it never recovered. I'd be nice to think even as much as a second question could've resolved it sooner. Suppose you do got me on the arrogance bit with me thinking I don't need to plainly ask for a track in every bug report in order to figure out what is going on.

  • Like 3

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • ED Team
Posted
2 hours ago, Elphaba said:

Your rudeness, hostility and arrogance knows no bounds does it? A little humility might be in order to counter all the people on here singing your praises constantly. 

please stop, Grimes is trying to help you. 

In the future please add as much detail to the initial post as possible, it will save any confusion when requesting help, reporting a bug or looking for assistance. 

thank you

  • Like 3

smallCATPILOT.PNG.04bbece1b27ff1b2c193b174ec410fc0.PNG

Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status

Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, PIMAX Crystal

Posted

It is Friday.  Happy face and onwards 🙂

  • Like 2

OS: Win10 home 64bit*MB: Asus Strix Z270F/

CPU: Intel I7 7700k /Ram:32gb_ddr4

GFX: Nvidia Asus 1080 8Gb

Mon: Asus vg2448qe 24"

Disk: SSD

Stick: TM Warthog #1400/Saitek pro pedals/TIR5/TM MFDs

[sIGPIC][/sIGPIC]

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...