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:
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):
And finally, here's the receiving function in session 2:
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
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}"
}
}
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
}
}
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