[Scummvm-git-logs] scummvm-sites multiplayer -> c1b17c2471ed1abfeccafdc774a0aab9a626da42
LittleToonCat
noreply at scummvm.org
Fri Nov 24 01:38:34 UTC 2023
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm-sites' repo located at https://github.com/scummvm/scummvm-sites .
Summary:
072dda1e9a MULTIPLAYER: Remove debug print.
c1b17c2471 MULTIPLAYER: Comment out poll handling.
Commit: 072dda1e9a6c5566c5d06f30c8c5fd37af1bcf7a
https://github.com/scummvm/scummvm-sites/commit/072dda1e9a6c5566c5d06f30c8c5fd37af1bcf7a
Author: Little Cat (toontownlittlecat at gmail.com)
Date: 2023-11-23T21:37:00-04:00
Commit Message:
MULTIPLAYER: Remove debug print.
Changed paths:
lobby/net/DatabaseMessages.js
diff --git a/lobby/net/DatabaseMessages.js b/lobby/net/DatabaseMessages.js
index 7e8bb0d..d4206ad 100644
--- a/lobby/net/DatabaseMessages.js
+++ b/lobby/net/DatabaseMessages.js
@@ -91,14 +91,13 @@ server.handleMessage("login", async (client, args) => {
// Parse version date and check against the timestamp in the config.
// The substr call is to remove the first bracket from the date string.
- console.log(`${versionArray[2].substr(1)} ${versionArray[3]} ${versionArray[4]} UTC`)
const clientTimestamp = Date.parse(`${versionArray[2].substr(1)} ${versionArray[3]} ${versionArray[4]} UTC`);
const serverTimestamp = Date.parse(server.versionRestrictions[client.versionNumber])
const isBuildCompatable = clientTimestamp >= serverTimestamp
if (!isBuildCompatable) {
// Outdated build.
- logEvent('outdatedLogin', client, version, {'username': username, 'game': game, 'server_version': server.versionRestrictions[client.versionNumber]});
+ logEvent('outdatedLogin', client, version, {'username': username, 'game': game, 'client_version': `${versionArray[2].substr(1)} ${versionArray[3]} ${versionArray[4]} UTC`, 'server_version': server.versionRestrictions[client.versionNumber]});
client.send("login_resp", {error_code: 1,
id: 0,
sessionServer: "",
Commit: c1b17c2471ed1abfeccafdc774a0aab9a626da42
https://github.com/scummvm/scummvm-sites/commit/c1b17c2471ed1abfeccafdc774a0aab9a626da42
Author: Little Cat (toontownlittlecat at gmail.com)
Date: 2023-11-23T21:38:26-04:00
Commit Message:
MULTIPLAYER: Comment out poll handling.
This was accidentally pushed; the web backend has no poll support yet.
Will uncomment when polls are properly implemented.
Changed paths:
lobby/net/DatabaseMessages.js
diff --git a/lobby/net/DatabaseMessages.js b/lobby/net/DatabaseMessages.js
index d4206ad..a6e0c4f 100644
--- a/lobby/net/DatabaseMessages.js
+++ b/lobby/net/DatabaseMessages.js
@@ -199,14 +199,14 @@ server.handleMessage('set_poll_answer', async (client, args) => {
return;
}
- const user = await redis.getUserById(client.userId, client.game);
- const stats = Stats.ProfileMappers[client.game](user.stats);
- if (!stats.hasOwnProperty('poll')) {
- logger.warn(`Stats for user id ${client.userId} has no poll stat for game ${client.game}! Ignoring.`);
- return;
- }
- stats['poll'] = answer;
- await database.setStats(client.userId, Object.values(stats), client.game);
+ // const user = await redis.getUserById(client.userId, client.game);
+ // const stats = Stats.ProfileMappers[client.game](user.stats);
+ // if (!stats.hasOwnProperty('poll')) {
+ // logger.warn(`Stats for user id ${client.userId} has no poll stat for game ${client.game}! Ignoring.`);
+ // return;
+ // }
+ // stats['poll'] = answer;
+ // await database.setStats(client.userId, Object.values(stats), client.game);
});
server.handleMessage('locate_player', async (client, args) => {
More information about the Scummvm-git-logs
mailing list