-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix 9.30: Fix avatars and py client matchmaking (#436)
* Fix player service query to look at selected avatars only * Switch game connection logging to TRACE level * Allow faction to be passed as int again * Don't crash if icon is null * Add handler for automatic teamkill reporting, and ignore AI teamkills * Improved the inform_player test to verify functionality after logging out * Separate teamkillreport and teamkillhappened * Refactor test to not use mock, but send the correct message to signal hosted game
- Loading branch information
Showing
10 changed files
with
147 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ develop_venv/ | |
.mypy_cache | ||
.pytest_cache | ||
.venv | ||
test-data.sql | ||
/test-data.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
insert into login (id, login, email, password, create_time) values | ||
(50, 'player_service', '[email protected]', SHA2('player_service', 256), '2000-01-01 00:00:00'), | ||
(50, 'player_service1', '[email protected]', SHA2('player_service1', 256), '2000-01-01 00:00:00'), | ||
(51, 'player_service2', '[email protected]', SHA2('player_service2', 256), '2000-01-01 00:00:00'), | ||
(52, 'player_service3', '[email protected]', SHA2('player_service3', 256), '2000-01-01 00:00:00'), | ||
(100, 'ladder1', '[email protected]', SHA2('ladder1', 256), '2000-01-01 00:00:00'), | ||
(101, 'ladder2', '[email protected]', SHA2('ladder2', 256), '2000-01-01 00:00:00'), | ||
(102, 'ladder_ban', '[email protected]', SHA2('ladder_ban', 256), '2000-01-01 00:00:00'), | ||
|
@@ -12,20 +14,28 @@ insert into clan_membership (clan_id, player_id) values | |
|
||
insert into global_rating (id, mean, deviation, numGames, is_active) values | ||
(50, 1200, 250, 42, 1), | ||
(51, 1200, 250, 42, 1), | ||
(52, 1200, 250, 42, 1), | ||
(100, 1500, 500, 0, 1), | ||
(101, 1500, 500, 0, 1), | ||
(102, 1500, 500, 0, 1) | ||
; | ||
|
||
insert into ladder1v1_rating (id, mean, deviation, numGames, is_active) values | ||
(50, 1300, 400, 12, 1), | ||
(51, 1300, 400, 12, 1), | ||
(52, 1300, 400, 12, 1), | ||
(100, 1500, 500, 0, 1), | ||
(101, 1500, 500, 0, 1), | ||
(102, 1500, 500, 0, 1) | ||
; | ||
|
||
insert into avatars (idUser, idAvatar, selected) values | ||
(50, 2, 1); | ||
(50, 2, 1), | ||
(51, 1, 0), | ||
(51, 2, 1), | ||
(52, 1, 1), | ||
(52, 2, 0); | ||
|
||
delete from matchmaker_ban where id = 102 and userid = 102; | ||
insert into matchmaker_ban (id, userid) values (102, 102); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters