Skip to content

Implement Database Synchronization Function for Game Playtime (#586) #1133

Implement Database Synchronization Function for Game Playtime (#586)

Implement Database Synchronization Function for Game Playtime (#586) #1133

Triggered via push October 20, 2024 14:16
Status Success
Total duration 6m 24s
Artifacts 2

build.yml

on: push
Matrix: build-nativeaot
Matrix: build
notify-discord
4s
notify-discord
Fit to window
Zoom out
Zoom in

Annotations

21 warnings
build (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.GeneratedIcons.System.Drawing/SystemDrawingIconGenerator.cs#L73
Populate switch (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0010)
build (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.GeneratedIcons.System.Drawing/SystemDrawingIconGenerator.cs#L99
Populate switch (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0010)
build (Debug, x64, net9.0-windows10.0.22621.0): Hi3Helper.Http/Legacy/Session/SessionManager.cs#L92
'Http.GetHashNumber(long, long, long, long)' is obsolete: 'The file order should've now been in-order rather than randomized with this GetHashNumber method. Use .00x extenstion instead!'
build (Debug, x64, net9.0-windows10.0.22621.0): Hi3Helper.Http/Legacy/Session/SessionManager.cs#L201
'Http.GetHashNumber(long, long, long, long)' is obsolete: 'The file order should've now been in-order rather than randomized with this GetHashNumber method. Use .00x extenstion instead!'
build (Debug, x64, net9.0-windows10.0.22621.0): Hi3Helper.Http/Legacy/Session/SessionManager.cs#L236
'Http.GetHashNumber(long, long, long, long)' is obsolete: 'The file order should've now been in-order rather than randomized with this GetHashNumber method. Use .00x extenstion instead!'
build (Debug, x64, net9.0-windows10.0.22621.0): Hi3Helper.Http/Legacy/Session/SessionMerge.cs#L29
'Http.GetHashNumber(long, long, long, long)' is obsolete: 'The file order should've now been in-order rather than randomized with this GetHashNumber method. Use .00x extenstion instead!'
build (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.NotifyIcon/PopupMenus/PopupMenu.cs#L102
Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
build (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.NotifyIcon/PopupMenus/PopupMenu.cs#L103
Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
build (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.NotifyIcon/PopupMenus/PopupMenu.cs#L104
Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
build (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.NotifyIcon/PopupMenus/PopupMenu.cs#L105
Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): Hi3Helper.Http/Legacy/Session/SessionManager.cs#L92
'Http.GetHashNumber(long, long, long, long)' is obsolete: 'The file order should've now been in-order rather than randomized with this GetHashNumber method. Use .00x extenstion instead!'
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): Hi3Helper.Http/Legacy/Session/SessionManager.cs#L201
'Http.GetHashNumber(long, long, long, long)' is obsolete: 'The file order should've now been in-order rather than randomized with this GetHashNumber method. Use .00x extenstion instead!'
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): Hi3Helper.Http/Legacy/Session/SessionManager.cs#L236
'Http.GetHashNumber(long, long, long, long)' is obsolete: 'The file order should've now been in-order rather than randomized with this GetHashNumber method. Use .00x extenstion instead!'
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): Hi3Helper.Http/Legacy/Session/SessionMerge.cs#L29
'Http.GetHashNumber(long, long, long, long)' is obsolete: 'The file order should've now been in-order rather than randomized with this GetHashNumber method. Use .00x extenstion instead!'
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.GeneratedIcons.System.Drawing/SystemDrawingIconGenerator.cs#L73
Populate switch (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0010)
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.GeneratedIcons.System.Drawing/SystemDrawingIconGenerator.cs#L99
Populate switch (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0010)
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.NotifyIcon/PopupMenus/PopupMenu.cs#L102
Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.NotifyIcon/PopupMenus/PopupMenu.cs#L103
Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.NotifyIcon/PopupMenus/PopupMenu.cs#L104
Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
build-nativeaot (Debug, x64, net9.0-windows10.0.22621.0): H.NotifyIcon/src/libs/H.NotifyIcon/PopupMenus/PopupMenu.cs#L105
Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)
notify-discord
embed field value must be shorter than 1024, got 1576 [`3d53419`](https://github.com/CollapseLauncher/Collapse/commit/3d53419339c3a4e6512f774db006878e4bed641e) Implement Database Synchronization Function for Game Playtime (#586) # Main Goal Synchronize user game playtime to a database that the user can sync with other systems with privacy in mind. Every user needs to have their own SQLite server (eg. Turso https://turso.tech/ free account should be sufficient) then supply all the necessary informations to Collapse (Database URL in https and the token). Collapse will generate the GUIDv7 as a user identifier table inside the database. > [!CAUTION] > Changing User ID without taking notes of your current ID will cause the data to be dangling in the database and not being used anymore. > While you can edit the database yourself, it's a bit tedious, so please do NOT lose your user ID. Playtime synced to the database in a few mechanism: 1. At first region load > When region is loaded, playtime stats is first loaded from your local machine, then the system fetch and compare when the last time that region play time is updated, if the local is out of date then database value will be used and saved locally. If the database is out of date, then local value will be used and saved to the database. 2. At game first launch (force push) 3. Every 5 minutes when the game is running 4. At game close (force push) ## PR Status : - Overall Status : In Progress - Commits : In Progress - Synced to base (Collapse:main) : Yes - Build status : OK - Crashing : Yes - Bug found caused by PR : 0

Artifacts

Produced during runtime
Name Size
aot-experimental_collapse_x64-Debug_net9.0-windows10.0.22621.0_3d53419339c3a4e6512f774db006878e4bed641e
119 MB
collapse_x64-Debug_net9.0-windows10.0.22621.0_3d53419339c3a4e6512f774db006878e4bed641e
59.9 MB