Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add character param type #23

Open
ghosty2004 opened this issue Mar 27, 2022 · 3 comments
Open

Add character param type #23

ghosty2004 opened this issue Mar 27, 2022 · 3 comments

Comments

@ghosty2004
Copy link

ghosty2004 commented Mar 27, 2022

Hi, can you add character param type for events call ? "c" (when you have free time 馃槄)

@dockfries
Copy link

dockfries commented Jul 26, 2022

Same requirement as issue #2. @AmyrAhmady
The callNatives with the a flag can realize the one-way internationalized different character set transfer from server to client, but the callback events in the client, such as OnPlayerText, OnPlayerCommandText, OnRconCommand, OnDialogResponse
The content returned with s as the marker is the result of wrong encoding and processing, at this time the translation by byte stream has lost its meaning, can we add or rewrite the native callback function marker or the result of the string passed as "a", that is, the native byte array of unprocessed string, like [97, 98, ...].

@dockfries
Copy link

"abc0123浣犲ソ"
utf8 [ 97, 98, 99, 48, 49, 50, 51, 228, 189, 160, 229, 165, 189];
gbk [ 97, 98, 99, 48, 49, 50, 51, 196, 227, 186, 195]

@dockfries
Copy link

dockfries commented Jan 3, 2023

It may be more complex to implement directly from the framework.

I wrote some small libraries, you can see my infernus and infernus-starter template repository.

I implemented the correct way to internationalize different character sets for windows by decorating gamemode with a "polyfill"(as I call it, like babel.js), but it was still up to the player to choose the character set, and there was still a problem if the player chose the wrong one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants