Kategoria: Archiwum: DevBlog

Wiadomości z Tawerny Rycerskiej

Alpha 11 Knights Province będzie wkrótce gotowa i nadszedł czas, aby porozmawiać o jeszcze jednej unikalnej funkcji, którą będzie posiadać: Knights Tavern!
[Scena w tawernie, 1658, autor: David Teniers II]
Knights Tavern (w skrócie KT) to kryptonim serwera kont, nad którym pracujemy od 2019 roku. Konta były jedną z najczęściej żądanych funkcji w KaM Remake, ale nigdy nie mieliśmy wiedzy ani odwagi, aby ją wdrożyć (cóż, dla wielu powodów). Podejmowano próby dla KP, ale udało się to dopiero niedawno, kiedy pojawiła się szczęśliwa szansa (w postaci artykułu (https://habr.com/ru/post/491272/) i repozytorium kodu (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.
Najlepsze wyniki dla misji
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:
  • Znajomi, komunikatory internetowe, zaproszenia do lobby, klany itp
  • Oceny i reputacja graczy, punktacja ELO itp.
KT stawia przed nami nowe wyzwania:
  • Musi być zakodowany w sposób asynchroniczny, aby żądania danych nie spowalniały ani nie zawieszały gry.
  • Dane gracza muszą być przekazywane i bezpiecznie przechowywane (używamy już soli i skrótów)
  • Będziemy musieli zachować dane graczy podczas aktualizacji i pomiędzy wersjami gry
A co najważniejsze – możesz już wypróbować KT i pomóc nam go ulepszyć! Zobacz najnowsze kompilacje wipów KP (dostępne na Discordzie https://discord.gg/cEwJFSY). Prosimy o zgłaszanie wszelkich błędów i wad. Jesteśmy również otwarci na sugestie dotyczące funkcjonalności KT. Może skierować go w wielu kierunkach i najlepiej byłoby wybrać te, które są bardziej pożądane.