Jump to content

is there a work around for MP radio homing bug?


Recommended Posts

Posted

Is there a work around for the MP radio homing bug? Let me describe the scenario: a ground unit emits a radio signal (e.g. at 30MHz FM for the Huey) with the intention that a helicopter (say the Huey) can home in on the signal to find that ground asset. Works perfectly in SP, but not in MP (the radio signal does not get transmitted through the net code, apparently). Has been like that for years, AFAIK. So, chances are very slim that ED will fix it in the near term (has it even been acknowledged yet by moderators?).

 

So, I am asking: is there a work around how to do radio homing in MP? If someone could point me in the right direction, I'd appreciate it. I have quite a bit of experience with lua scripting, so if there is only a work around using scripting, that's fine, doesn't scare me.

 

Muchas gracias, Max

[sIGPIC][/sIGPIC]

 

Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro

Posted (edited)

AFAIK setting up radio beacons using trigger 'zones', CTLD, MOOSE, etc. will work in MP.

 

Bulldog51 - Transmit NDB

 

CTLD

Edited by Ramsay

i9 9900K @4.8GHz, 64GB DDR4, RTX4070 12GB, 1+2TB NVMe, 6+4TB HD, 4+1TB SSD, Winwing Orion 2 F-15EX Throttle + F-16EX Stick, TPR Pedals, TIR5, Win 11 Pro x64, Odyssey G93SC 5120X1440

Posted

Ok. I took a look at the CTLD source code lua file. It seems it sets up radio beacons using the command

 

trigger.action.radioTransmission(_sound, _radio.group:getUnit(1):getPoint(), _radio.mode, false, _radio.freq, 1000)

 

So, does trigger.action.radioTransmission work for MP homing? Or is there another trick to it that I couldn't figure out from looking at the CTLD source code...

[sIGPIC][/sIGPIC]

 

Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro

Posted

I've used radio homing without resorting to CTLD in Nevada and Caucasus without problems in MP.

 

Select unit, advanced waypoint, radio transmission and select a sound file.

 

Select frequency in helicopter, watch needle and fly.

[sIGPIC][/sIGPIC]

 

Commodore 64 | MOS6510 | VIC-II | SID6581 | DD 1541 | KCS Power Cartridge | 64Kb | 32Kb external | Arcade Turbo

Posted

I have had succes by using a flag and timer to effectively restart the homing transmission loop every 5 min or so. It seemed as if the mp clients couldn’t receive the transmission if it was called by another client first - but restarting it always helped. This worked well in my old godfinger mission - not sure if it still works... but yeah, I’d encourage you to look at MOOSE as abolition moving forward

ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 

"This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL

Posted

Unfortunately setting up a radio transmission from a ground unit only works in SP mode and trying the same in MP results in only the host being able to receive the transmissions. My workaround is to use the CTLD script as follows:

 

Create a beacon zone in the ME:

 

attachment.php?attachmentid=170931&stc=1&d=1508520773

 

Create a trigger to activate radio beacons:

 

attachment.php?attachmentid=170932&stc=1&d=1508520773

 

Here is the radio beacon displayed in the cockpit when accessed via the F10 radio menu:

 

attachment.php?attachmentid=170933&stc=1&d=1508520773

 

It provides you with three frequencies to use 1. UHF 2. VHF 3. FM. I like to use the FM frequency personally when navigating with the Huey.

 

All clients in a MP environment have access to this menu during a mission and touch wood it hasn't failed me yet. I hope this is useful. Cheers.

Callsign: NAKED

My YouTube Channel

 

[sIGPIC][/sIGPIC]

Posted

Doing fixed radio beacons in MP can be overcome.

 

When attaching them to moving units, it's a bit more difficult. I spent a lot of time getting this to work.

 

My solution has been thus far to (MOOSE) use the OnSpawnGroup() callback function to attach a beacon to the unit. (Thanks FlightControl!)

 

The TL;DR here is that if MOOSE spawns the unit, you can access this callback function at the instant it is spawned, and do whatever you want.

 

I point out that the DCS part of beacons in MP is still not entirely there. It sort of adds a touch of realism though.... As if there's interference.

 

I'm interested primarily in moving ground units transmitting, and homing in on them. If there are other specific solutions for that, I'm all ears.

 

Banner EDForum2020.jpg

Have fun. Don't suck. Kill bad guys. 👍

https://discord.gg/blacksharkden/

Posted

Suntsag, could you share that mission to take a look?

 

Thanks.

" You must think in russian.."

[sIGPIC][/sIGPIC]

 

Windows 7 Home Premium-Intel 2500K OC 4.6-SSD Samsung EVO 860- MSI GTX 1080 - 16G RAM - 1920x1080 27´

 

Hotas Rhino X-55-MFG Crosswind Rudder Pedals -Track IR 4

Posted

Hi Esac_mirmidon,

 

This particular mission is heavily modded as it is a progressive campaign for the group I fly with. Without the mods your end you would not be able to open it.

 

I could however create a simple .miz file with no mods if that would help at all?

Callsign: NAKED

My YouTube Channel

 

[sIGPIC][/sIGPIC]

Posted

Thanks a lot Suntsag.

 

The basic mission is just what i need.

 

Really appreciated.

" You must think in russian.."

[sIGPIC][/sIGPIC]

 

Windows 7 Home Premium-Intel 2500K OC 4.6-SSD Samsung EVO 860- MSI GTX 1080 - 16G RAM - 1920x1080 27´

 

Hotas Rhino X-55-MFG Crosswind Rudder Pedals -Track IR 4

Posted

Thanks for all the replies. I've gotten it to work with the following code:

 

emitBeacon = function(args)
local unitName = args[1]
local frequency = args[2]
local modulation = args[3]
       local unit = Unit.getByName(unitName)
if unit then
        local unitPosition = Unit.getPosition(unit).p
	trigger.action.radioTransmission('l10n/DEFAULT/beacon.ogg', unitPosition, modulation, false, frequency, 1000)
	timer.scheduleFunction(emitBeacon,{unitName,frequency,modulation},timer.getTime()+31)
end
end

timer.scheduleFunction(emitBeacon,{unitName,value.frequency,value.modulation},timer.getTime()+1)

 

beacon.ogg is the 30s long beacon audio file used by CTLD. The script sets up a radiotransmission at the unit's location. The position will be updated every 30 seconds. This works also in MP, but unfortunately often the audio file cannot be heard, but the homing still works.

[sIGPIC][/sIGPIC]

 

Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro

Posted

I came up with this in Moose. It (Mostly) works around the issue when attaching the beacons to moving ground units. Confirmed with a client attached that we are hearing the same music and pointing at the correct target.

 

Also pointing out that presently in the Mi-8, radio homing on any user created beacon with the ARC-9 is completely non-functional. The ARK-UD seems to still work on some freqs as does the 828.

 

 



ZoneTable = { ZONE:New( "Zone1" ), ZONE:New( "Zone2" ), ZONE:New( "Zone3" )}

remainingcount = 10

target2 = SPAWN:New( "target11" )
 :InitLimit( 1, 10 )
 :InitRandomizeRoute( 1, 4, 5000 )
 :InitRandomizeZones( ZoneTable )
 :OnSpawnGroup(
  

 function( SpawnGroup )
   remainingcount = (remainingcount - 1)
   MESSAGE:New("There are " .. remainingcount .. " Vehicles left",10,"COMMAND: "):ToAll()
   local beacon = SpawnGroup:GetBeacon()
   beacon:RadioBeacon("onebeep.ogg", 243, radio.modulation.FM, 20)

  end
  )

:SpawnScheduled( 2, 1 )

 

Banner EDForum2020.jpg

Have fun. Don't suck. Kill bad guys. 👍

https://discord.gg/blacksharkden/

  • Recently Browsing   0 members

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