Archivi categoria: Devblog

Novità sulla Taverna dei Cavalieri

Knights Province Alpha 11 sarà presto pronto ed è tempo di parlare di un'altra caratteristica unica che avrà: Knights Tavern!
[Scena della taverna, 1658, di David Teniers II]
Knights Tavern (KT in breve) è un nome in codice per il server degli account che sviluppiamo dal 2019. Gli account erano una delle funzionalità più spesso richieste in KaM Remake, ma non abbiamo mai avuto l'esperienza o il coraggio per implementarlo effettivamente (beh, per numerosi motivi). Sono stati fatti dei tentativi per il KP, ma non hanno avuto successo fino a poco tempo fa, quando è arrivata un'occasione fortunata (sotto forma di un articolo (https://habr.com/ru/post/491272/) e un repository di codice (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.
Punteggi migliori per la missione
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:
  • Amici, messaggistica istantanea, inviti alla lobby, clan, ecc
  • Valutazioni e reputazione dei giocatori, punteggio ELO, ecc.
KT ci pone nuove sfide:
  • Deve essere codificato in modo asincrono, in modo che le richieste di dati non rallentino o congelino il gioco.
  • I dati dei giocatori devono essere trasmessi e archiviati in modo sicuro (usiamo già sali e hash)
  • Dovremo preservare i dati dei giocatori sugli aggiornamenti e tra le versioni del gioco
Meglio ancora: puoi già provare KT e aiutarci a migliorarlo! Guarda le ultime build KP WIP (disponibili su Discord https://discord.gg/cEwJFSY). Si prega di segnalare eventuali bug o difetti. Siamo aperti anche a suggerimenti sulla funzionalità KT. Può indirizzarlo in molte direzioni e sarebbe meglio scegliere quelle più desiderate.