Page MenuHomeFeedback Tracker

customChat command does not work
Feedback, NormalPublic

Description

Hello,

when creating a custom channel and using the customChat command, there is no message shown. If you open the chat manually.
You can post in the custom channel.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. Open Editor and place a unit
  2. Start into a local multiplayer lobby
  3. Select unit
  4. Start game
  5. Open debug console and set of the following command

_channel = radioChannelCreate [[0.9,0.1,0.1,1],"Admin","Admin",[],true];
_channel radioChannelAdd [player];
_channel radioChannelSetCallSign format ["MEH0", "MEH"];
player customChat [_channel, "ADADADA"];

  1. Check the chat

Event Timeline

mrzorn added a subscriber: mrzorn.Fri, Oct 11, 7:09 PM
diwako added a subscriber: diwako.Fri, Oct 11, 7:12 PM

Yes, since 2.18

works in internal, try profiling should be fixed there too

dedmen changed the task status from New to Feedback.Wed, Oct 23, 4:44 PM

Can confirm it works in SP until you use the command radioChannelRemove and wait before you add to the channel again.

The custom chat does not work at all when hosted through listen server through 3den.

Code I tried it with with local execution, similar to working code prior to 2.18

// post init
if (isNil "diw_chatChannel") then {
    diw_chatChannel = radioChannelCreate [[0.9,0.1,0.1,1], "Chat", "Chat", [], true];
    publicVariable "diw_chatChannel"; // not needed for test
};

// simulate FPARMA usecase for receiving whispered messages
[] spawn {
    // get whisper message sent
    diw_chatChannel radioChannelAdd [player];
    diw_chatChannel radioChannelSetCallsign "Some schmuck";
    player customChat [diw_chatChannel, format ["Hey this works!! %1", time]];
    diw_chatChannel radioChannelRemove [player];
    sleep 1; // get another message
    diw_chatChannel radioChannelAdd [player];
    diw_chatChannel radioChannelSetCallsign "Some schmuck";
    player customChat [diw_chatChannel, format ["This doesn't!! %1", time]];
    diw_chatChannel radioChannelRemove [player];
    sleep 1;
    comment "see if new channel works, for some reason // breaks here";
    private _channel = radioChannelCreate [[0.9,0.1,0.1,1],"Admin","Admin",[],true];
    _channel radioChannelAdd [player];
    _channel radioChannelSetCallSign format ["MEH0", "MEH"];
    player customChat [_channel, "Hey I work! 1"];
    player customChat [_channel, "Hey I work! 2"];
    _channel radioChannelRemove [player];
    _channel radioChannelAdd [player];
    player customChat [_channel, "Hey I work! 3"];
    _channel radioChannelRemove [player];
    sleep 1;
    _channel radioChannelAdd [player];
    player customChat [_channel, "Aaaand borke it 1"];
    player customChat [_channel, "Aaaand borke it 2"];
};