| Blockland Forums > Modification Help |
| RTB Development |
| << < (170/889) > >> |
| M:
--- Quote from: Ephialtes on February 02, 2010, 06:48:48 AM ---This is something I'd do in C++ for sure, passing every character to be sent through a function like that would be a bit of a nightmare in terms of performance. --- End quote --- So it's a good thing that it should only need to be done once per startup (and assumedly each time you change your name). Not like you need to do it every 33ms or anything. |
| Ephialtes:
No - All XML CData will be UTF-8 encoded as per XMPP RFCs which means all chat messages too. |
| M:
Then if you were running only characters that can't be sent under UTF-8 encoding through this (perhaps placing them in their appropriately escaped sequences and then using whatever that torque function to convert escaped backslashes into their sequences was) and sending them that way, that would help, perhaps? For example: Before: "Hello wörld" After: "Hello w\xF6rld" Edit: Assumedly sending them this way also, so just checking a stripos(%char,"abcdefghijklmnopqrstuvwxyz012 34567890-_=+[]{}\\|;:'\",.<>/?!@#$%^&*()") would work, right? You still need to loop the string but that shouldn't be too bad in and of itself. I admit that my knowledge of it is limited but my basic understanding is that any character on a key on a standard US keyboard is supported by UTF-8, and I believe that's everything that could be entered. (`~ are omitted due to console) Edit2 - did I get the stripos args backwards? I think I did. God dammit. |
| Ephialtes:
Trust me, this is not feasible in TorqueScript. |
| heedicalking:
--- Quote from: Ephialtes on February 02, 2010, 07:04:56 AM ---Trust me, this is not feasible in TorqueScript. --- End quote --- If the character translation just forgets up performance, don't bother. People will wind up changing their names so they can use RTB. If not, that's their loss. |
| Navigation |
| Message Index |
| Next page |
| Previous page |