Commit graph

4059 commits

Author SHA1 Message Date
Pat Hartl
9b2464e6f2 Fix actions not presenting if not connected 2024-05-19 17:34:32 -05:00
Pat Hartl
7c54228d75 Ignore unmatched properties when deserializing manifests 2024-05-13 18:41:40 -05:00
Pat Hartl
339b938749 Validate API version when doing requests 2024-05-13 18:41:00 -05:00
Pat Hartl
6428c72689 Remove user information from SDK game details 2024-05-13 01:53:41 -05:00
Pat Hartl
11c7cd81fa Added version number to each response 2024-05-13 01:30:38 -05:00
Pat Hartl
a03c0dd9ec
Update installermanifest.yaml 2024-05-10 21:55:49 -05:00
Pat Hartl
da61034514
Merge pull request #67 from dalbitresb12/fix/expansions-mods
Some checks failed
LANCommander Release / build (push) Has been cancelled
Expansions/mods installation and uninstallation fixes
2024-05-10 19:37:17 -07:00
Pat Hartl
de89075463 Null check for manifests that may not have actions 2024-05-10 20:50:37 -05:00
dalbitresb12
a8a488712f
Ensure proper uninstallation of expansions/mods
The manifests are now read in reverse, ensuring that the expansions/mods scripts are executed before the base game scripts.

This change also add the code to remove the expansions/mods files. Previously, these files were left behind, but now they are properly removed.
2024-05-10 06:00:54 -05:00
dalbitresb12
6641069c4a
Set BaseGame for extensions/mods before running scripts
The server sets `BaseGame` to null to avoid a circular dependency, but if this is not set then the expansions/mods won't find their scripts

There's probably a better way of doing this, like changing the `Run*Script` functions to receive the game ID, just like the `GameService.Install` already does, but this temporary change fixed the script issue for now
2024-05-10 05:53:14 -05:00
Pat Hartl
426a675fdc Initial commit, basic auth and library list 2024-05-09 20:44:40 -05:00
Pat Hartl
651cc4d439
Update installermanifest.yaml 2024-05-08 01:18:40 -05:00
Pat Hartl
9faa47adcd Fixed import of genres, publishers, developers, tags, and collections
Some checks failed
LANCommander Release / build (push) Has been cancelled
2024-05-07 23:56:26 -05:00
Pat Hartl
70d2c94bb6 Fix imports for FusionCache 2024-05-07 23:11:07 -05:00
Pat Hartl
0a55c944a8 Fix dependent game update checking 2024-05-07 23:09:33 -05:00
Pat Hartl
64d28c6a33 Switch cache invalidation to service logic 2024-05-07 23:08:22 -05:00
Pat Hartl
f7c77ea140 Revert "Invalidate mapped cache on game update/create"
This reverts commit 5d348a248b.
2024-05-07 23:06:27 -05:00
Pat Hartl
5d348a248b Invalidate mapped cache on game update/create 2024-05-07 20:36:32 -05:00
Pat Hartl
a14b7cdeac Slim down responses from game imports
Reduced the amount of data being sent to the client from the API which results in smaller, somewhat faster requests. In a library of ~250 games the requests went from 5.6MB to 3.3MB.
2024-05-07 20:08:07 -05:00
Pat Hartl
286ec3f415 Fix MultiplayerMode and Collection mapping 2024-05-07 20:06:28 -05:00
Pat Hartl
e56c8f6c2a Cache automapped games
Greatly reduces the time to transmit the list of games to client by caching the results from Automapper.
2024-05-07 20:06:16 -05:00
Pat Hartl
b3ef0e754e Run uninstall scripts for mods/expansions 2024-05-07 18:08:59 -05:00
Pat Hartl
9d8df90155 Import games using Game type instead of manifest
Games now import using the Game type instead of manifest. The manifest is fine for locally caching the game (though who knows, this could change as well), but for providing complex information like dependent games versioning it just doesn't have enough data.

Importing has been changed to provide the "Update Available" title change on games where the main game or mod/expansion has a new version available.

Notes now get populated on import, not just install.

Reworked population of game menu items to include non-primary actions from mods/expansions.

Simplified and fixed certain scripts not running for mods/expansions.
2024-05-07 01:47:00 -05:00
Pat Hartl
86393deeea Restructure how dependent manifest actions are loaded 2024-05-06 22:55:25 -05:00
Pat Hartl
dcf42d85a8 Merge branch 'main' of https://github.com/LANCommander/LANCommander 2024-05-06 22:53:33 -05:00
Pat Hartl
1bf18a17cd
Update installermanifest.yaml 2024-05-04 23:39:05 -05:00
Pat Hartl
c8bb3623c1
Update installermanifest.yaml 2024-05-04 01:25:11 -05:00
Pat Hartl
4beaa114f8 Add mod/expansion actions to action list
Some checks failed
LANCommander Release / build (push) Has been cancelled
2024-05-04 01:07:06 -05:00
Pat Hartl
8cc8122d13 Install dependent expansions/mods 2024-05-01 23:58:07 -05:00
Pat Hartl
99a2063656 Merge branch 'main' of https://github.com/LANCommander/LANCommander 2024-05-01 21:32:26 -05:00
Pat Hartl
827f04f1e0 Added setting for max upload chunk size, fix uploading of large chunk sizes 2024-05-01 21:32:21 -05:00
Pat Hartl
f8f23ff7e9
Update installermanifest.yaml 2024-04-29 21:24:50 -05:00
Pat Hartl
4006bbd266 Fix notes not importing
Some checks failed
LANCommander Release / build (push) Has been cancelled
2024-04-29 19:32:44 -05:00
Pat Hartl
c2bb912ba3 Fix file picker inputs losing their value 2024-04-29 19:29:38 -05:00
Pat Hartl
c32116512e Write all scripts on install 2024-04-29 18:33:31 -05:00
Pat Hartl
f14064da6a
Update ScriptHelper.cs 2024-04-25 13:57:12 -05:00
Pat Hartl
fe4a199a2f
Update README.md 2024-04-04 20:08:01 -05:00
Pat Hartl
ba280c4633
Update README.md 2024-04-04 20:00:32 -05:00
Pat Hartl
a436e79c7c Fix sorting on servers that have no game specified
Some checks failed
LANCommander Release / build (push) Has been cancelled
2024-03-30 18:29:39 -05:00
Pat Hartl
d032254deb Disable local file button if in progress or not valid 2024-03-30 14:58:32 -05:00
Pat Hartl
9b2a1c7b13 Allow selection of local files for archive uploads 2024-03-30 14:55:16 -05:00
Pat Hartl
884933a9d3 Fix check for .lcx file extension 2024-03-30 14:54:44 -05:00
Pat Hartl
9ea1878289 Allow importing games via local file 2024-03-30 14:42:04 -05:00
Pat Hartl
1559b50c7f Move main file picker functionality to button 2024-03-30 14:41:30 -05:00
Pat Hartl
97ed6890f5 Added pages for managing companies, engines, genres, tags 2024-03-30 13:07:27 -05:00
Pat Hartl
d19583e748 Update redistributable import dialog to new uploader 2024-03-30 12:31:25 -05:00
Pat Hartl
ed0462ff5d Update archive uploader to support new chunk uploader 2024-03-30 12:29:26 -05:00
Pat Hartl
0b786211fa Update Chunk Uploader and Import Dialog
The chunk uploader has been updated with a drag and drop interface as the old UI was always a bit temporary. The import dialog has been updated to support the new UI. Clearing now works and opening the import dialog for a second time does not have the previous file populated.
2024-03-30 12:23:56 -05:00
Pat Hartl
11a41e922a Fix import failing when updating actions 2024-03-30 11:55:57 -05:00
Pat Hartl
ace6f3f475 Fix users not deleting if only one administrator exists 2024-03-29 20:15:25 -05:00