Commas Being Parsed Out When Relaying

chemical77

Active Member
I have chat text being passed from session 1 into the uplink, and then on to session 2. Any chat text that contains commas has the commas removed and the text truncated.

Here is the function running on session 1. I echo it before it goes and everything looks fine:
Code:
atom(script) EQ2_onIncomingChatText(int ChatType, string Message, string Speaker, string ChatTarget, string SpeakerIsNPC, string ChannelName)
{ 
  if "${Speaker.NotEqual[${Me.Name}]}"
  {
   echo "----> ${Message}"
   Uplink ccChat "${ChatType}" "${Message}" "${Speaker}" "${ChatTarget}" "${SpeakerIsNPC}" "${ChannelName}" "${sessNum}"
  }
}
Once the text arrives in the uplink's function, I echo again and it still looks ok. Here's the uplink's function that receives the text from session 1 (just the relevant piece):

Code:
atom(global) ccChat(int ChatType,string Message,string Speaker,string ChatTarget,string SpeakerIsNPC,string ChannelName,int sessionNum,string toSession)
{
  switch ${ChatType}
    {
      case 8
        echo "----> ${Message}"
        relay "${MC_sessionName}" Script[controller]:ExecuteAtom[updateCharChat,${sessionNum},"${Speaker} ${pipChatChannel} ${Message}"]
        break
    }
}
And finally, here's the receiving function in session 2:

Code:
atom(script) updateCharChat(int sessionNum, string Message)
{
  UIElement[Char${sessionNum}Console@${tabName[${sessionNum}]}@CharTabs@controller]:Echo["${Message.Escape}"]
}

These are the generic versions, but I've tried every combo of .Escape and \ to a depth of 3 with no luck getting the full, comma'd, untruncated text to appear in this final function.

I reverted back to my original code and posted them above so someone could take a stab at helping me figure out how to get the text working properly.

Any help understanding what's going on would be great!

~c
 

mycroft

Script Author: MyPrices
I think Innerspace does some unwanted extra processing on text right now.

Anything with a comma (reading from a text box , sending text to another function etc innerspace is assuming the comma is a delimiter for a second paramater.

I have a similar problem in myprices , I don't think we can do anything about it just now and I'm waiting for Lax to track down the problem or make a workaround available myself.
 

chemical77

Active Member
This issue was fixed, at least in my case, with IS build 4603 (I can relay chat between sessions intact even if it includes commas, and the original text is now preserved).

Although I am having a hard time passing multi-word NPC names through relay now...

I think there's still something going on with IS, but I thought the comma thing specifically had been fixed since the extra escaping had been resolved.
 

mycroft

Script Author: MyPrices
This issue was fixed, at least in my case, with IS build 4603 (I can relay chat between sessions intact even if it includes commas, and the original text is now preserved).

Although I am having a hard time passing multi-word NPC names through relay now...

I think there's still something going on with IS, but I thought the comma thing specifically had been fixed since the extra escaping had been resolved.
I updated to the latest developer version of IS but it still won't read a text box fully if it contains a comma.
 
Top Bottom