Skip to content

Conversation

@roope-hiironniemi
Copy link

@roope-hiironniemi roope-hiironniemi commented Jan 15, 2026

Added server call for battle results. Now server is able to track wins and losses.

LobbyManager

  • Added GameConfig.Get()
  • Moved connection to lobby into LobbyManager activation
  • Changed photon id and the accountId should match

ServerManager

  • Renamed method SendDebugLogFile to BattleSendDebugLogFile
  • Added BattleSendResult to send battle results to server

InLobbyController

  • Commented out StartLobby Coroutine

SoulHomeLoad

  • Renamed SendDebugLogFile to BattleSendDebugLogFile

BattleGameViewController

  • Added server call for battle results in QEventOnViewGameOver

@roope-hiironniemi roope-hiironniemi linked an issue Jan 15, 2026 that may be closed by this pull request
7 tasks
@roope-hiironniemi roope-hiironniemi changed the title Battle/feature/win lose server call Battle/feature - Win Lose Server Call Jan 19, 2026
Changed logging to use BattleDebugLogger
Improved code readability
@roope-hiironniemi roope-hiironniemi self-assigned this Jan 19, 2026
@roope-hiironniemi roope-hiironniemi added the Battle battleen liittyvät tehtävät label Jan 19, 2026
@Niklas603619 Niklas603619 self-requested a review January 19, 2026 12:00
Copy link
Contributor

@Niklas603619 Niklas603619 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Battle changes approved
There is some problems with the server call
@BillTheBeast can check the problems and should review ServerManager changes

BillTheBeast and others added 4 commits January 20, 2026 13:52
Changed durationSec from float to int
Changed to only send playerUserIds that are in the game
Improved formatting
Added some comments
Removed unnecessary white space
Disabled Debug.LogWarning since it unnecessarily clutters logs when not debugging this specific method
Copy link
Contributor

@BillTheBeast BillTheBeast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toi for looppi, jossa team1 ja team2 arrayt asetetaan, on varmaankin mahdollista tehdä hieman yksinkertaisemmin kuin mitä tuo nyt on tuossa.
Mutta muuten ihan jees.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Battle battleen liittyvät tehtävät

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task: Voitot ja häviöt serverille

4 participants