Smaug in Russian

Posted by Sergey on Thu 09 May 2002 11:57 PM — 5 posts, 20,187 views.

Ukraine #0
Help me please with Smaug code. I am porting Smaug to Russian. At present my Smaug-russian code can understand russian in playing mode (CON_PLAYING). In other words, the write_to_buffer and read_from_buffer functions is working good when I turn telnet to 8-bits mode before entering to playing mode.

The problem is: If I turn telnet to 8-bits mode before entering CON_PLAYING (for example at CON_GET_NAME etc.) then the read_from_buffer function works incorrect. The first char in input string disappears even though in English. That why I can not use russian names and russian names of classes and other. But in CON_PLAYING mode all is good if turn to 8-bits mode happens directly before CON_PLAYING!

Help me please understand possible errors!

= Sergey
#1
hum smaug in russian
now thats an interesting idea



I don't under stand your question though
but let me see if I understand

[1.] you want your mud in russian ?
[2.] or the code in russian ?
[3.] or both?


1. change all the text outputs to russian
2. your crazy
3. your really crazy


otherwise I have no idea how you are going to do that.....
Australia Forum Administrator #2
There was a very recent post about fixing the input routine (for someone doing a German SMAUG) so that it allows all characters through.
Czech Republic #3
The problem is simple he needs 8 bit input and output.
In English, 7 bit output is used, because ASCII defines first 128 characters always same, and next 128 (with 8th bit set)
are used to graphics and national characters. They is different for many codepages.

I solved it by writting my snippet called codepage. It is old now and not actual, and not for begginers. Because no one has been interested, I didnt released it again.

You can download my original snippet at http://pihhan.wz.cz/mud/snippets/codepage.rar ,but it is buggy.

If you still looking for it, cotact me: pihhan @ atlas.cz

I may guide you to apply my code to your codebase.
Ukraine #4
Thanks!

But this problem is not actual for me now.

As about last answer: correct codepage translation and 8-bit encoding was made. But problem was still existed. I have posted my question because I could not find solution for my problem.

But now we have great NW game without any problem with localization :)