Reminder: Internet Explorer 6 or below are NOT supported.





There are currently 44 users playing Freelancer on
40 servers. | April. 12, 2021 |
The Starport Forum Index
>
The Shipyard
>
Speciality Modding
>
FLHook Development
>
Problems with chat commands
Browsing this Thread:
1 Anonymous Users
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
![]() |
Hi,
i have a pretty strange behavior when using commands. For example, when i type into console Code:
prints in system chat <Name>: /: hi --> which is wrong, the /: are too many chars But when i type in Code:
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
|
|||
![]() |
||||
|