Kategorijos archyvai: Devblog

„Knights Tavern“ naujienos

„Knights Province Alpha 11“ netrukus bus paruošta ir atėjo laikas pakalbėti apie dar vieną unikalią savybę, kurią ji turės: „Knights Tavern“!
[Tavernos scena, 1658 m., David Teniers II]
„Knights Tavern“ (sutrumpintai KT) yra paskyrų serverio, kurį kuriame nuo 2019 m., kodinis pavadinimas. Paskyros buvo viena iš dažniausiai prašomų „KaM Remake“ funkcijų, tačiau mes niekada neturėjome patirties ar drąsos ją realizuoti (gerai, daugeliui priežastys). Buvo bandoma į KP, bet jiems nepavyko iki šiol, kai atėjo laimingas šansas (straipsnio pavidalu (https://habr.com/ru/post/491272/) ir kodų saugykla (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.
Rezultatai už misiją
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:
  • Draugai, momentiniai pranešimai, kvietimai fojė, klanai ir kt
  • Žaidėjų reitingai ir reputacija, ELO taškų skaičius ir kt.
KT mums kelia naujus iššūkius:
  • Jį reikia koduoti asinchroniniu būdu, kad duomenų užklausos nesulėtintų ir neužšaldytų žaidimo.
  • Žaidėjo duomenis reikia perduoti ir saugoti saugiai (jau naudojame druskas ir maišą)
  • Turėsime išsaugoti žaidėjų duomenis apie atnaujinimus ir tarp žaidimų versijų
Kas geriausia – jau galite išbandyti KT ir padėti mums ją tobulinti! Peržiūrėkite naujausias KP wip versijas (pasiekiama Discord https://discord.gg/cEwJFSY). Praneškite apie visas klaidas ar trūkumus. Taip pat laukiame pasiūlymų dėl KT funkcionalumo. Jis gali nukreipti jį į daugybę krypčių ir geriausia būtų pasirinkti tas, kurios yra labiau pageidaujamos.