Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
15 user(s) are online (8 user(s) are browsing Forum)

Members: 0
Guests: 15

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +5€

Current balance: -65€
(last updated 10/2019)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 21 users playing Freelancer on 39 servers.
November. 13, 2019

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



Problems with chat commands
Just can't stay away
Joined:
2008/6/16 20:41
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Posts: 312
Offline
Hi,

i have a pretty strange behavior when using commands. For example, when i type into console
Code:

/s hi

prints in system chat <Name>: /: hi --> which is wrong, the /: are too many chars

But when i type in
Code:

/s hello

Then this prints in system chat <Name>: hello.

I tried to debug the SubmitChat and HkCb_SendChat functions. In SubmitChat the chat message is only what i type in the console. But in HkCb_SendChat the BinaryRDLReader extracts <Name>: followed by what should be the chat message.

This behavior is different between debug and release dll, while in release it is not working, it does in debug. And in release its only working if i use 5 or more chars after the shortcut, e.g. /s. I looked through any changes within those two functions and others i made over the past months, but am not able to identify what could cause this strange behavior.

Now has anyone of you a clue where i could look for, and why shorter messages than 5 chars with shortcut commands are not printed correctly into the console.

Which routine adds the name to the extracted text from BinaryRDLReader in HkCb_SendChat while the name is not in the text in SubmitChat. Because i feel something in between those two is causing the misbehavior. Normally the extracted chat message in HkCb_SendChat does not contain the command itself again.

Any hints are welcome. I am really clueless right now and dont want to implement something in HkCb_SendChat to remove shortcuts if they are still detected within the chat message there.

Posted on: 2016/8/2 21:06
Open in new window
Top