每月档案: 2020 年 4 月

骑士酒馆新闻

Knights Province Alpha 11 即将准备就绪,是时候谈谈它将拥有的另一项独特功能:Knights Tavern!
[酒馆场景,1658 年,大卫·特尼尔斯二世著]
Knights Tavern(简称 KT)是我们自 2019 年以来一直在开发的帐户服务器的代号。帐户是 KaM Remake 中最常被要求的功能之一,但我们从来没有专业知识或勇气来实际实施它(好吧,对于许多原因)。为 KP 进行了尝试,但直到最近才成功,当幸运的机会到来时(以文章的形式(https://habr.com/ru/post/491272/) 和代码库 (https://github.com/Cooler2/ApusEngineExamples)). Now, knowing that the backend server can be developed in the same language as the game, KT is finally taking its chance to come true. Neat thing about KT, is that it can be used for both KaM Remake and Knights Province. Both games are very much alike in terms of accounts info they provide and can benefit from. So we can safely build KT in such a way that it allows for a single account for both Knights Province and KaM Remake. Register once and play twice. KP is our testground for the KT. Once it is sufficiently tested, KaM Remake can be upgraded and start using it too. You can help with KT playtesting right now, but more on that later. Basic auth functionality is mostly covered: KT has player accounts that can be registered, activated, logged in to and logged out of, forgotten passwords can be reset. For a proof of concept, KT can report how many player accounts it has and how many players were active within the last hour. The first useful feature in KT are mission highscores. If a single-player mission was prepared by the mapmaker in a specific way (2 lines of script, one dynamic and one static), the game can submit the mission’s winning score to KT and later on show the player his ranking in that mission.
任务的高分
Word of caution, KT is still in beta and might have bugs in all different areas. We hope to iron them out over time. That’s why we start testing with simple functionality, so flaws in the authentication (which there must be) can be fixed. So, since there might be bugs and weak spots, do not use your everyday life passwords for KT. KT future allows for many interesting things:
  • 好友、即时通讯、大厅邀请、部落等
  • 玩家评分和声誉,ELO得分等。
KT给我们带来了新的挑战:
  • 它需要以异步方式编码,以便数据请求不会减慢或冻结游戏。
  • 需要安全地传递和存储玩家数据(我们已经使用了盐和哈希)
  • 我们将需要保留有关升级和游戏版本之间的玩家数据
最重要的是——您已经可以试用 KT 并帮助我们改进它!查看最新的 KP wip 构建(可在 Discord 上获得 https://discord.gg/cEwJFSY)。请报告任何错误或缺陷。我们也愿意接受有关 KT 功能的建议。它可以将其引导到多个方向,最好选择更需要的方向。