Jump to content

Special chars in Quest files causing "Connection Refused"


Recommended Posts

Hello everyone, what I am at this moment trying to solve is using special chars in quests. I'm talking about chars such as (ěščřžýáíé). Every time I use one of those chars in one of my quests, reload it and restart the server, I only get connection refused, even though there were no errors given during the compilation.
I kinda figured this out, by adding a space at the end of every line containing one of those special chars. That seems to be working and not causing the issue, but I honestly believe, there is a better way to fix that and that is what I want to know.

To explain the issue better, I'm adding an example.
say("Ahoj, jak se máš?") - There's no space at the end of the string, so this would cause the connection refused error.
say("Ahoj, jak se máš? ") - This would not as there is a space at the end of the string, right after the question mark.

I tried to use ANSI and UTF-8, none of them worked without the space.

//Note: special chars are being displayed correctly in the game.

  • Love 1
Link to comment
Share on other sites

So there is one more thing I would like to add to this.
I'm trying to translate locale_string.txt, but it also seems to not be working as expected. First of all, I have set the charset in charset.txt to utf-8 and even tried ansi/cp1250, none of those worked.
For example, I'm trying to translate the error message saying command does not exist to czech language, which should look like "Tento příkaz neexistuje". But there's a problem with the encoding. When I type a wrong command in the game, I only get "Tento p?ikaz neexistuje", or after I change the charset of the locale_string.txt to ANSI/CP1250 in Notepad++, it only displays me the original chinese error output - "그런 명령어는 없습니다";

This is my current settings:
locale_string.txt (UTF-8)
 

"그런 명령어는 없습니다";
"Tento příkaz neexistuje. ";

charset.txt

utf-8


Gamechat output
 

Tento p?ikaz neexistuje.

What I don't understand is why do quests work fine with the ANSI encoding enabled and a space at the end of every line as stated above.
This for some reason does not work as expected and when things go wrong it starts displaying the chinese message or my message with ? instead of ř. I even tried to remove the chinese error output, it still found it somewhere and gave me the chinese output, so it must be stored somewhere else I suppose... I honestly would like to remove all the chinese outputs to only display the translated ones, but what I also don't understand is the system choosing the messages from the file, as there are no variables at all, so how does it know what to choose? Does it count lines?

I honestly hope you can help me out with this, because I don't think I can solve this on my own.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.