设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 65|回复: 0

[制作教程] How to get Cyrillic Characters in RPG Maker XP

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    前天 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4471

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    22949
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28314

    灌水之王

    发表于 7 天前 | 显示全部楼层 |阅读模式
    Brief:
    RPG Maker XP does not have any native Cyrillic support. If you've ever tried to input Cyrillic characters in RPG Maker XP, you'll quickly realise it replaces any such characters with "???". Fortunately with the help of somebody on Reddit we were able to find a workaround for this. The hope is to allow for more RPG Maker XP games to support languages such as Russian and Ukrainian.

    By the end of this guide you should be able to use Cyrillic Characters in your RPG Maker XP game.

    Please note I will be assuming your operating on a blank RPG Maker XP project

    Requirements:

    There aren't much in terms of requirements for this tutorial. The most you'll need is the ability to access the script section of RPG Maker XP. You will also need to install a font aswell as a tool from another tutorial on these forums.
    The General Idea:
    The idea at the heart of this is we effectively write in "gibberish" english. A fontfile which maps ASCII characters to Cyrillic will then display the equivelant.

    For example: "rt4itt" might map onto "Привет". Or more precisely:

                    Code:       
    A --> АB -->БC --> Ц


    The full list can be found here, if you're curious: https://pastebin.com/Z3Sz9HZe don't worry about mapping it all yourself and learning to write in this gibberish, we'll be automating this later on.

    This is an effective solution to the lack of Cyrillic support.

    The Tutorial:

    Step 1:


    Firstly, we'll need users to be able to use our fontfile without installing it onto their own computer. To do this I would follow the following amazing tutorial by Zeriab, this serves far better justice to the topic and includes a license. I do not think, both for simplicity and out of respect for the original author that it would be appropriate to place anything beyond a link here.

    Distributing RPG Maker XP games with custom fonts

    Distributing RPG Maker XP games with custom fonts            Installing fonts is such a bother and requires admin privileges, so let us not do that              When developing our games it is very possible we want to use another font. This information is already present elsewhere, but as a quick reminder it...

                                            forums.rpgmakerweb.com                               




    After following on those steps you should have a project which looks like this:





    Step 2:

    Next we'll need to download our mapping fontfile u/GlitteringUse390 on Reddit created.



    CyrillicASCII - NotoSans

    MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
                                            www.mediafire.com                               




    Insert this into the Fonts folder.

    Step 3:

    This is the final part of the basic tutorial:
    Go to your "Main" script and insert the following code at the top:

                    Code:       
    Font.default_name = "CyrillicASCII - Noto Sans"


    Congratulations your mostly done. Upon booting your game you should be met by:





    Step 4: Automation

    This isn't a very effective solution, you'll have to translate to your chosen language, then look at the map for the first character, write that down. Look at the map for your second character, write that down... It's all just a whole big mess.

    The following python code can be run on most online websites or any IDE you have installed:
    You can try it out on: https://www.online-python.com/

                    Python:       
    string = input("Enter Cyrillic Here: ")cyrtoascii = {    "А": "A", "Б": "B", "В": "V", "Г": "G", "Д": "D", "Е": "E", "Ж": "J", "З": "Z",    "И": "I", "Й": "Y", "К": "K", "Л": "L", "М": "M", "Н": "N", "О": "O", "П": "P",    "Р": "R", "С": "S", "Т": "T", "У": "U", "Ф": "F", "Х": "X", "Ц": "C", "Ч": "H",    "Ш": "W", "Щ": "Q", "Ё": "^", "Ъ": "(", "Ы": ")", "Ь": "\"", "Э": "_", "Ю": "+", "Я": "?",    "а": "a", "б": "b", "в": "v", "г": "g", "д": "d", "е": "e", "ж": "j", "з": "z",    "и": "i", "й": "y", "к": "k", "л": "l", "м": "m", "н": "n", "о": "o", "п": "p",    "р": "r", "с": "s", "т": "t", "у": "u", "ф": "f", "х": "x", "ц": "c", "ч": "h",    "ш": "w", "щ": "q", "ё": "`", "ъ": "{", "ы": "}", "ь": "'", "э": "~", "ю": ";", "я": "/"}newstring = ""for i in string:    if i in cyrtoascii:        newstring += cyrtoascii    else:        newstring += iprint(newstring)


    Testing:
    Let's try to translate this Russian Proverb into our map "Волко́в боя́ться - в лес не ходи́ть.". I'll use the python link above for simplicity

    In our output we get:




    Now let's put that in our game:





    Upon booting up our game we're greeted with:






    本贴来自国际rpgmaker官方论坛作者:Partyhardy处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/how-to-get-cyrillic-characters-in-rpg-maker-xp.179496/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-14 18:01 , Processed in 0.062771 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表