Category Archives: DevBlog

Vijesti o vitezovoj konobi

Knights Province Alpha 11 uskoro će biti spremna i vrijeme je za razgovor o još jednoj jedinstvenoj funkciji koju će imati: Knights Tavern!
[Taverna Scena, 1658, David Teniers II]
Knights Tavern (ukratko KT) je kodno ime za poslužitelj računa koji razvijamo od 2019. Računi su jedna od najčešćih traženih značajki u KaM Remakeu, ali nikada nismo imali stručnost ili hrabrost da to stvarno implementiramo (dobro, za brojne razloga). Učinjeni su pokušaji za KP, no to im nije uspjelo tek nedavno, kad je stigla sretna prilika (u obliku članka (https://habr.com/ru/post/491272/) i spremište koda (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.
Rezultati za misiju
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:
  • Prijatelji, izravne poruke, pozivi u lobi, klanovi itd
  • Ocjene i ugled igrača, bodovanje ELO-a itd.
KT nam predstavlja nove izazove:
  • Morate ga kodirati na asinhroni način kako ne bi zahtjevi za podatke usporili ili zamrznuli igru.
  • Podaci o igraču moraju biti pohranjeni i sigurno pohranjeni (već koristimo soli i hashe)
  • Trebat ćemo sačuvati podatke o igračima o nadogradnjama i između inačica igre
Najbolje od svega - već možete isprobati KT i pomoći nam da ga poboljšamo! Pogledajte najnovije verzije KP wip verzija (dostupno na Discord https://discord.gg/cEwJFSY). Molimo prijavite bilo kakve pogreške ili nedostatke. Otvoreni smo i za prijedloge o KT funkcionalnosti. Može ga usmjeriti u više smjerova i najbolje bi bilo odabrati one koji su više traženi.